Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Exponential Equation Solver

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.






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:

• 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=lncx = \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.

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.

• 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. 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

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 — abx=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.

Reading the Step-by-Step Solution

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 logb(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.

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 b1b \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 logb\log_b to both sides converts bxb^x to xx via the identity logb(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: xln2=ln5x \ln 2 = \ln 5, so x=ln5/ln22.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)lnb=lnc(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.

What is an Exponential Equation?

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

abf(x)=ca \cdot b^{f(x)} = c


where b>0b > 0 and b1b \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 e2.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: blogbx=xb^{\log_b x} = x and logb(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 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 23x+5=232 \cdot 3^x + 5 = 23, subtract 5 to get 23x=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))=lnc\ln(b^{f(x)}) = \ln c


Using ln(bu)=ulnb\ln(b^u) = u \ln b:

f(x)lnb=lncf(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)lnb=lnc(mx + n) \ln b = \ln c, a linear equation in xx. Solve by subtracting nlnbn \ln b and dividing by mlnbm \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.

Related Concepts

Exponential Functions &mdash; functions of the form f(x)=abxf(x) = a \cdot b^x. The graph is increasing for b>1b > 1 and decreasing for 0<b<10 < b < 1. Always positive.

Logarithmic Equations &mdash; the inverse problem to exponential equations. Solving logbx=c\log_b x = c requires converting to exponential form x=bcx = b^c.

Natural Exponential &mdash; exe^x, the exponential function with base e2.71828e \approx 2.71828. The most important exponential in calculus and continuous-growth models.

Natural Logarithm &mdash; lnx\ln x, the logarithm with base ee. Inverse of exe^x.

Change of Base Formula &mdash; logbx=lnx/lnb\log_b x = \ln x / \ln b. Converts any logarithm into a natural log, which calculators compute directly.

Exponent Rules &mdash; properties used to simplify expressions before solving: bmbn=bm+nb^m \cdot b^n = b^{m+n}, (bm)n=bmn(b^m)^n = b^{mn}, bn=1/bnb^{-n} = 1/b^n.

Compound Interest &mdash; A=P(1+r/n)ntA = P(1 + r/n)^{nt}, an exponential growth formula. Solving for tt requires the exponential-equation techniques on this page.

Continuous Compounding &mdash; A=PertA = P e^{rt}, the natural-base limit of compound interest as compounding frequency increases. Solving for tt uses the natural log.

Exponential Growth and Decay &mdash; N(t)=N0btN(t) = N_0 \cdot b^t models populations, radioactive isotopes, and any process with constant multiplicative rate.

Exponential Inequalities &mdash; same form with <<, >>, \leq, or \geq. Solved by the same methods, with attention to whether the base is greater or less than 1 (which flips inequality direction).