Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Logarithmic Equation Solver

log

Solve equations with logarithms step by step

Enter equation...
Log
Var
Num
Op

Select an equation type or enter your own equation, then click Solve to see the step-by-step solution.






Getting Started

The solver shows an equation display at the top with a blinking yellow caret marking the cursor position. Click anywhere in the display to place the cursor, or use arrow keys, Home, and End for keyboard navigation. Type directly or use the button panel below.

Three quick experiments:

• Click the "log₂" button, type (x)=5(x) = 5, and press Enter — the right panel converts to exponential form x=25x = 2^5 and returns x=32x = 32.
• Click the "Natural Log" example template — an equation lnx=c\ln x = c loads. The solver returns x=ecx = e^c.
• Try log2(3x1)=4\log_2(3x - 1) = 4 to see the linear-argument pathway: the solver converts to 3x1=163x - 1 = 16, then solves to x=17/3x = 17/3.

The Solve button is disabled until you enter something. Pressing Enter on the display is equivalent to clicking Solve. The Log row offers ln, log (base 10), and bases 2, 3, and 5; the special row offers ee.

Building Equations with Buttons and Keyboard

The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.

• Log row — ln, log (base 10), log base 2, log base 3, log base 5. Each button inserts the function and an opening parenthesis for the argument.
• Variable row — xx, yy, nn. The solver picks up whichever variable appears in the log argument.
• Number row — digits 0 through 9 and the decimal point.
• Operator row — plus, minus, multiplication, division, caret, equals.
• Special row — ee for natural-base contexts, and brackets.

To enter a custom-base log via keyboard, type log_b\text{log}\_b where bb is the base number. For example, log7(x)\log_7(x) is typed as log_7(x)\text{log}\_7(x). The underscore separates the function name from the base subscript.

Keyboard shortcuts: type letters and digits directly, use star or slash for multiplication and division, and press Enter to solve. Ctrl+Z undoes up to fifty edits back; Backspace deletes the character before the cursor; Delete removes the one after it; Escape clears the display.

Try an Example — Eight Form Templates

Click the "Try an Example" header to expand the template panel. Each card generates a random equation of that form. Clicking again produces a new random version.

• Simple — logb(x)=c\log_b(x) = c. The base case; converts to x=bcx = b^c.
• Natural Log — ln(x)=c\ln(x) = c. Same idea with b=eb = e.
• With Coefficient — alogb(x)=ca \cdot \log_b(x) = c. Requires dividing both sides by aa first.
• Linear Argument — logb(mx+n)=c\log_b(mx + n) = c. After conversion, solves a linear equation in xx.
• With Constant — logb(x)+c=d\log_b(x) + c = d. Subtracts cc to isolate the log before conversion.
• Natural Linear — ln(mx+n)=c\ln(mx + n) = c. Natural-log variant of Linear Argument.
• Same Base Both Sides — logb(f(x))=logb(c)\log_b(f(x)) = \log_b(c). Applies the equal-logarithms property to skip the conversion step.
• Natural with Coefficient — aln(x)=ca \cdot \ln(x) = c. Coefficient case with natural log.

Roughly 80 percent of generated equations produce clean integer or rational solutions; the rest exercise decimal cases where bcb^c is irrational.

Reading the Step-by-Step Solution

The solution panel shows each algebraic move as a labeled step.

• Equal Logarithms Property (when applicable) — for equations of the form logb(A)=logb(B)\log_b(A) = \log_b(B), the solver equates the arguments directly and skips the exponential conversion.
• Rearrange Equation — if the logarithm is on the right side, the solver swaps sides for clarity.
• Evaluate Constant — reduces the non-log side to a single number if arithmetic is involved.
• Isolate Logarithm — divides by a coefficient or subtracts an additive constant until the logarithm sits alone on one side.
• Convert to Exponential Form — rewrites logb(A)=c\log_b(A) = c as A=bcA = b^c, the key step that removes the logarithm.
• Evaluate Exponential — computes bcb^c as a number.
• Solve Linear Equation (when argument is linear) — solves the resulting mx+n=bcmx + n = b^c for xx.
• Isolate Variable — final algebraic step to get xx alone.

Each step renders the before-and-after equation using a math layout that displays fractions, exponents, and log subscripts in their standard typographic form.

Two Solving Strategies

Logarithmic equations split into two strategic cases. The solver picks whichever applies.

• Strategy 1: Equal logarithms property. When the equation has the form logb(A)=logb(B)\log_b(A) = \log_b(B) with matching bases on both sides, equate the arguments directly: A=BA = B. This works because the logarithm is one-to-one: equal outputs imply equal inputs. No exponential conversion needed.

Example: log3(2x+1)=log3(7)\log_3(2x + 1) = \log_3(7) becomes 2x+1=72x + 1 = 7, giving x=3x = 3.

When it works: both sides are single logarithms with the same base. Sums and differences of logs can be combined into single logs first using log(A)+log(B)=log(AB)\log(A) + \log(B) = \log(AB) and log(A)log(B)=log(A/B)\log(A) - \log(B) = \log(A/B).

• Strategy 2: Exponential conversion. When the equation has a logarithm on one side and a constant (or non-logarithmic expression) on the other, isolate the logarithm and convert to exponential form:

logb(A)=c    A=bc\log_b(A) = c \iff A = b^c


Example: log2(x3)=4\log_2(x - 3) = 4 becomes x3=24=16x - 3 = 2^4 = 16, giving x=19x = 19.

This always works after isolating the logarithm. The conversion step is the inverse of the logarithm definition.

Domain check. After finding a candidate solution, verify that every logarithm argument in the original equation is positive at that value. A logarithm of zero or a negative number is undefined, so any candidate that violates this is extraneous and must be rejected.

For deeper coverage see logarithm properties and change of base formula.

What is a Logarithmic Equation?

The logarithm logb(x)\log_b(x) is defined as the inverse of the exponential function with base bb: it answers the question "to what power must bb be raised to give xx?"

logb(x)=y    by=x\log_b(x) = y \iff b^y = x


with b>0b > 0, b1b \neq 1, and x>0x > 0.

A logarithmic equation contains at least one logarithm with the variable in its argument. Standard forms include:

• Basic — logb(x)=c\log_b(x) = c.
• Linear argument — logb(mx+n)=c\log_b(mx + n) = c.
• Equal logarithms — logb(f(x))=logb(g(x))\log_b(f(x)) = \log_b(g(x)).
• Mixed — alogb(x)+d=ca \cdot \log_b(x) + d = c.

Common bases.

• Natural log — lnx=logex\ln x = \log_e x with e2.71828e \approx 2.71828. The standard log of calculus and continuous-growth contexts.
• Common log — logx=log10x\log x = \log_{10} x. Historically dominant before calculators; still used in chemistry (pH) and acoustics (decibels).
• Binary log — log2x\log_2 x. Common in computer science and information theory.

Domain and range. logb(x)\log_b(x) accepts positive xx only and returns any real number. The graph passes through (1,0)(1, 0), has a vertical asymptote at x=0x = 0, and grows without bound but very slowly.

Logarithmic equations appear when solving exponential equations for the exponent, when computing time-to-double or half-life, in information theory (entropy), and in many engineering scales (decibels, Richter scale, magnitudes).

For deeper coverage see logarithms, natural logarithm, and logarithmic functions.

The Solving Process Explained

Four steps solve any logarithmic equation. The first three transform the equation; the fourth verifies the result.

• Step 1: Combine multiple logarithms (if any). Use the log properties to merge sums and differences into a single logarithm. The product rule: logb(A)+logb(B)=logb(AB)\log_b(A) + \log_b(B) = \log_b(AB). The quotient rule: logb(A)logb(B)=logb(A/B)\log_b(A) - \log_b(B) = \log_b(A/B). The power rule: clogb(A)=logb(Ac)c \cdot \log_b(A) = \log_b(A^c).

• Step 2: Isolate the logarithm. Move every non-logarithmic term to the other side. For logb(A)+d=c\log_b(A) + d = c, subtract dd to get logb(A)=cd\log_b(A) = c - d. For alogb(A)=ca \cdot \log_b(A) = c, divide by aa to get logb(A)=c/a\log_b(A) = c/a.

• Step 3: Convert to exponential form. Rewrite logb(A)=c\log_b(A) = c as A=bcA = b^c. This removes the logarithm and leaves an algebraic equation. If the argument AA is linear, the result is a linear equation; if quadratic, a quadratic equation.

• Step 4: Solve and check the domain. Solve the resulting equation. For each candidate solution, substitute back into every logarithm in the original equation and confirm each argument is strictly positive. Reject any candidate that fails this check.

Alternative: same-base shortcut. If both sides of the original equation are single logarithms with the same base, skip steps 1 through 3 and use the equal-logarithms property: equate the arguments directly. Still perform the domain check at the end.

Edge cases the solver handles.

• Negative or zero argument after solving: rejects the candidate as extraneous.
• Coefficient of zero on the logarithm: invalid equation, error.
• Different bases on both sides: requires change-of-base; not currently supported.

For comprehensive treatment see solving logarithmic equations, logarithm properties, and the change of base formula.

Related Concepts

Logarithmic Functions — functions of the form f(x)=logb(x)f(x) = \log_b(x). The graph is the reflection of bxb^x across the line y=xy = x.

Natural Logarithm — lnx=logex\ln x = \log_e x. The logarithm with base ee; the inverse of exe^x.

Common Logarithm — logx=log10x\log x = \log_{10} x. The logarithm with base 10, historically used for hand computation and still used in chemistry and physics scales.

Exponential Equations — the inverse problem. Solving bx=cb^x = c requires taking a logarithm: x=logbcx = \log_b c.

Change of Base Formula — logb(x)=ln(x)/ln(b)\log_b(x) = \ln(x) / \ln(b). Converts any logarithm to a natural log, which calculators compute directly.

Logarithm Properties — the algebraic rules: product rule, quotient rule, power rule. Essential for combining and separating logs before solving.

Logarithmic Inequalities &mdash; same form as logarithmic equations but with <<, >>, \leq, or \geq. Solved by the same methods, with attention to whether the base is greater or less than 1.

Domain of a Logarithm &mdash; the set of inputs for which the logarithm is defined: strictly positive real numbers. Critical for checking solutions.

pH, Decibels, and Magnitudes &mdash; real-world scales defined as logarithms: pH measures hydrogen ion concentration; decibels measure sound intensity; the Richter scale measures earthquake amplitude. Each translates a multiplicative quantity into an additive scale.

Entropy &mdash; in information theory, the information content of a probability distribution is computed using log2\log_2.