Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Exponential Equation Solver

How to use Exponential Equation Solver
  1. Build the equation in the display at the top: click the Var, Num and Op buttons, with ^ for the exponent and e for the natural base, or type on the keyboard; wrap a multi-term exponent in brackets. Learn more about building equations
  2. Clear empties the display, the curved arrow undoes the last edit and the ⌫ button deletes the character before the caret. Learn more about editing
  3. Click Solve, or press Enter in the display, once the equation is complete; an expression without an equals sign, or with a right side of zero or below, is refused. Learn more about solving
  4. Open Try an Example and click a card to load a random equation of that form. Learn more about the templates
  5. The right panel lists the steps from isolating the exponential to matching bases or taking a logarithm, and the answer card gives the value marked Exact or Approximate; the box under the solver explains the method. Learn more about the solution
  6. A right side that is a whole power of the base gives an exact answer; any other gives a logarithm, marked Approximate. Learn more about the two methods
x

Solve equations with variables in exponents

Enter equation...
Var
Num
Op

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

How the solver works

The solver reads one equation in xx, yy or nn with the variable in an exponent, such as acdotbf(x)=ca cdot b^{f(x)} = c with a positive base $b
eq 1.Itisolatestheexponentialterm,thentriestowrite. It isolates the exponential term, then tries to write casawholepowerof as a whole power of bandequatetheexponents;whenthatfailsittakesthenaturallogarithmofbothsidesanddividesby and equate the exponents; when that fails it takes the natural logarithm of both sides and divides by ln b$. A linear exponent leaves a linear equation to finish. Answers from base matching are Exact, answers from logarithms Approximate, and a right side of zero or below has no solution. Learn more about exponential equations





Getting Started

Demo2^x = 32, Solve, Clear, 2^x = 5
Step 0 of 4
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:

• Type 2x=322^x = 32 and press Enter — the right panel recognizes 32 as 252^5, matches bases, and returns the exact answer x=5x = 5.
• Click the "Natural Base" example template — an equation ex=ce^x = c loads into the display. The solver applies the natural log to give x=ln⁡cx = \ln c.
• Try 32x+1=813^{2x + 1} = 81 to see the base-matching pipeline with a linear exponent: the solver finds 81=3481 = 3^4, equates 2x+1=42x + 1 = 4, and solves to x=3/2x = 3/2.

The Solve button is disabled until you enter something. Pressing Enter on the display is equivalent to clicking Solve. The special row offers ee for the natural base. An expression without an equals sign is refused with "Input must be an equation (use = sign)", a right side of zero or below with "Exponential equations cannot equal zero or negative numbers", and exponentials on both sides are not yet supported. 2x=52^x = 5 has no base match and gives x=2.321928x = 2.321928 by logarithms. What makes an equation exponential is explained in what is an exponential equation.

Building Equations with Buttons and Keyboard

DemoA bracketed exponent, undo, delete, Solve
Step 0 of 4
The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.

• Variable row — xx, yy, nn. The solver picks up whichever variable appears in the exponent.
• Number row — digits 0 through 9 and the decimal point.
• Operator row — caret operator (rendered as xnx^n on the button), multiplication, division, plus, minus, equals.
• Special row — the constant ee for natural-base equations, and bracket buttons.

To enter bxb^x, type the base, the caret, then the exponent. The display renders the exponent as a proper superscript. For multi-term exponents like 2x+12x + 1, wrap them in parentheses: 3^(2x+1)3 \hat{} (2x + 1).

Keyboard shortcuts: type letters and digits directly, use star or slash for multiplication and division, type a lowercase ee for Euler's number (the tokenizer distinguishes it from a variable), and press Enter to solve. The ⌫ button deletes the character before the caret. Why the base must be positive and not 11 is explained in what is an exponential equation. Ctrl+Z undoes up to fifty edits back; Backspace deletes the character before the cursor; Delete removes the one after it.

Try an Example — Eight Form Templates

DemoOpen the templates, load two forms
Step 0 of 4
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 — bx=cb^x = c. Basic form where cc is often a power of bb.
• With Coefficient — a⋅bx=ca \cdot b^x = c. Requires dividing both sides by aa first.
• Linear Exponent — bmx+n=cb^{mx + n} = c. Combines base-matching with a linear equation in the exponent.
• Same Base — bf(x)=bnb^{f(x)} = b^n. Same base on both sides; equate the exponents directly.
• Convertible — ax=ba^x = b where aa and bb are powers of the same number. Demonstrates the power-of-power rule.
• With Constant — bx+c=db^x + c = d. Requires isolating the exponential first.
• Natural Base — ex=ce^x = c. Applies the natural log directly.
• Natural Linear — emx+n=ce^{mx + n} = c. Same as Linear Exponent but with base ee.

Roughly 80 percent of generated equations produce clean integer or rational solutions via base matching; the rest exercise the logarithm fallback. Loading a template clears the previous solution; click Solve to work the new equation. The two methods applied to every template are compared in base matching vs logarithms.

Reading the Step-by-Step Solution

DemoA coefficient and a base match, then a natural log
Step 0 of 3
The solution panel shows each algebraic move as a labeled step. The exact step sequence depends on whether base matching or logarithms are used.

• Rearrange Equation — if the exponential is on the right side, the solver swaps sides for clarity.
• Evaluate Constant — reduces the non-exponential side to a single number if arithmetic is involved.
• Isolate Exponential Term — divides by coefficients or subtracts additive constants until the exponential sits alone on one side.
• Recognize Perfect Power (when applicable) — if the right side equals bkb^k for integer kk, the solver detects this and prepares to match bases.
• Match Bases — when both sides share a base, equate the exponents to get a polynomial equation in xx.
• Apply Logarithm — when no perfect-power match exists, the solver takes the natural log or log base bb of both sides.
• Simplify — uses the identity log⁡b(bx)=x\log_b(b^x) = x to bring the variable out of the exponent.
• Calculate — substitutes the logarithm value and reports the numerical answer.
• Solve for Variable — for linear exponents, solves the resulting linear equation.

Solutions from base matching are flagged as exact; solutions from logarithms are flagged as approximate. 5⋅2x=405 \cdot 2^x = 40 is divided by 55 first, 8=238 = 2^3 is recognised and x=3x = 3 is Exact; ex=20e^x = 20 takes the natural log and gives x=2.995732x = 2.995732, Approximate. The box under the solver, How the solver works, summarises the method in a few lines and links to the theory below. The three stages are set out in the solving process explained.

Base Matching vs Logarithms

Two distinct techniques solve exponential equations. The solver tries the cleaner method first and falls back to the more general one when needed.

• Base matching. Works when both sides can be written as powers of the same base. The principle: if bp=bqb^p = b^q for any positive base b≠1b \neq 1, then p=qp = q. The exponential function is one-to-one, so equal outputs imply equal inputs.

Example: 4x=644^x = 64. Recognize 64=4364 = 4^3 (or rewrite both sides as 22x=262^{2x} = 2^6), then x=3x = 3. Exact integer answer.

When it works: cc is exactly an integer power of the base bb. The solver enumerates powers b1,b2,…b^1, b^2, \ldots up to cc and reports a match if found.

• Logarithms. Works in every case. The principle: applying log⁡b\log_b to both sides converts bxb^x to xx via the identity log⁡b(bx)=x\log_b(b^x) = x. The most common choice is the natural log (ln⁡\ln, with base ee), because calculators evaluate it directly.

Example: 2x=52^x = 5. Take ln⁡\ln of both sides: xln⁡2=ln⁡5x \ln 2 = \ln 5, so x=ln⁡5/ln⁡2≈2.32x = \ln 5 / \ln 2 \approx 2.32. Approximate answer.

Logarithms always work but rarely produce clean integer answers. They are essential whenever cc is not a perfect power of the base.

For linear exponents bmx+n=cb^{mx + n} = c, apply the log to both sides, giving (mx+n)ln⁡b=ln⁡c(mx + n) \ln b = \ln c. Then solve the linear equation in xx.

For deeper coverage see exponential and logarithmic functions and change of base formula.

Both methods have their own lesson sections, method: matching bases and method: using logarithms; the logarithms used are common and natural logarithms, and the choice between them is discussed in choosing common or natural logarithm.

What is an Exponential Equation?

An exponential equation contains the variable in an exponent. The defining form for a single exponential term is:

a⋅bf(x)=ca \cdot b^{f(x)} = c


where b>0b > 0 and b≠1b \neq 1 is the base, aa is a constant coefficient, f(x)f(x) is the exponent (typically linear in xx), and cc is a constant. Two common special cases:

• Basic form — bx=cb^x = c with a=1a = 1 and f(x)=xf(x) = x.
• Natural exponential — ex=ce^x = c where the base is Euler's number e≈2.71828e \approx 2.71828.

Domain and range. The function bxb^x is defined for every real xx, but its range is the positive reals (0,∞)(0, \infty). This means bx=cb^x = c has a solution only when c>0c > 0. Setting bxb^x equal to zero or a negative number gives no real solution.

Inverse relationship. The exponential function with base bb has the logarithm with base bb as its inverse: blog⁡bx=xb^{\log_b x} = x and log⁡b(bx)=x\log_b(b^x) = x. This pairing is what makes logarithms the universal tool for solving exponential equations.

Exponential equations appear in compound interest, population growth, radioactive decay, cooling laws, pH calculations, and any model where a quantity changes by a constant multiplicative factor over equal time intervals.

For deeper coverage see exponential functions, the number e, and growth and decay models.

The form is defined in what is an exponential equation and its variants in forms of exponential equations; the function behind it is exponential functions, and the inverse pairing with the logarithm is inverse identities.

The Solving Process Explained

Three stages solve any exponential equation. The first stage is mandatory; the second and third are alternatives.

• Stage 1: Isolate the exponential term. Move every non-exponential term to the other side. If the equation contains 2⋅3x+5=232 \cdot 3^x + 5 = 23, subtract 5 to get 2⋅3x=182 \cdot 3^x = 18, then divide by 2 to get 3x=93^x = 9.

• Stage 2a: Try base matching. If the isolated right side is an integer power of the base, equate the exponents directly. 3x=93^x = 9 becomes 3x=323^x = 3^2, hence x=2x = 2. This produces an exact integer (or rational) answer.

• Stage 2b (fallback): Apply a logarithm. When no clean base match exists, take the natural log of both sides:

ln⁡(bf(x))=ln⁡c\ln(b^{f(x)}) = \ln c


Using ln⁡(bu)=uln⁡b\ln(b^u) = u \ln b:

f(x)⋅ln⁡b=ln⁡cf(x) \cdot \ln b = \ln c


Solve for f(x)f(x), then for xx. The answer is typically a decimal approximation.

• Stage 3: For linear exponents. When f(x)=mx+nf(x) = mx + n, the logarithm step produces (mx+n)ln⁡b=ln⁡c(mx + n) \ln b = \ln c, a linear equation in xx. Solve by subtracting nln⁡bn \ln b and dividing by mln⁡bm \ln b.

Edge cases the solver handles.

• Right side zero or negative: no solution, exit immediately.
• Base 1 or non-positive: invalid equation, error.
• Multiple exponential terms on the same side or different bases on each side: not currently supported; throws a clear error.

For comprehensive treatment see solving exponential equations, logarithms, and change of base.

The stages are worked in preparing the equation, solving methods overview and solving exponential equations via logarithms; the final check is checking solutions.