🧮
🧮 Math & statistics

Exponential Equation Solver (a·bˣ = c)

Results update as you type.

Your numbers

Understanding the exponential equation solver — concept and principle

An exponential equation has the unknown in the exponent. This solver handles the common form a · bˣ = c and returns the exact value of x using logarithms. Equations of this type appear whenever something grows or decays by a constant factor: compound interest, population growth, radioactive decay, doubling time, half-life and cooling problems.

Solving 5 times 2 to the x equals 160Starting at 5 and doubling five times gives 10, 20, 40, 80, 160, so x = ln 32 ÷ ln 2 = 5.5 · 2ˣ = 160: how many doublings?×2×2×2×2×25x = 010x = 120x = 240x = 380x = 4160x = 55 doublings reach 160 → x = 5x = ln(160 ÷ 5) ÷ ln 2 = ln 32 ÷ ln 2= 3.466 ÷ 0.693 = 5
The exponent x simply counts how many times 5 must double to reach 160.

How it is calculated

Divide both sides by a, then take the logarithm of both sides:

Here a is the starting value, b is the growth factor per step (b > 1 grows, 0 < b < 1 decays) and c is the target value. x is the number of steps, in whatever unit one step represents (years, periods, half-lives).

The principle

The logarithm is the inverse of exponentiation: ln b asks "what power of e gives b?". Its key property ln(bˣ) = x · ln b turns an unknown exponent into an ordinary multiplication, which is easy to solve. Any logarithm base works, because the ratio ln(c/a) ÷ ln b equals log(c/a) ÷ log b in base 10 or any other base. This is the change-of-base formula: x = log_b(c ÷ a).

Worked example

  1. Default inputs: a = 5, b = 2, c = 160, so the equation is 5 · 2ˣ = 160.
  2. Divide by 5: 2ˣ = 32.
  3. Take logarithms: x = ln 32 ÷ ln 2 = 3.4657359 ÷ 0.6931472.
  4. Result: x = 5. Check: 5 · 2⁵ = 5 · 32 = 160.
How x changes with aHow x changes with a45671.252.53.7556.257.510Example: 5a
Each point is the calculator re-run with only “a” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
ax
1.257
2.56
3.755.415037499
55
6.254.678071905
7.54.415037499
104

How to read the result

A positive x means c is reached after x steps forward; a negative x means c lay in the past relative to a (for growth, c is smaller than a). A non-integer x is perfectly normal: x = 4.3 means 4.3 periods. Because x = log_b(c ÷ a), doubling the target c always adds the same amount, ln 2 ÷ ln b, to x; with b = 2 that is exactly one more step.

Common mistakes

Keep in mind: The solver requires c ÷ a > 0, b > 0 and b ≠ 1. Outside these conditions there is no real solution and the result will be undefined or meaningless.

Frequently asked questions

How do I solve an equation like 3ˣ = 2ˣ⁺¹?

Take logs of both sides: x ln 3 = (x + 1) ln 2, so x = ln 2 ÷ (ln 3 − ln 2) ≈ 1.7095.

How long does money take to double at 5% per year?

Solve 1.05ˣ = 2: x = ln 2 ÷ ln 1.05 ≈ 14.2 years (ignoring tax and fees).

Is the "rule of 72" accurate?

It is an approximation: 72 ÷ rate in percent. At 5% it gives 14.4 years against the exact 14.2.

Sources: NIST Digital Library of Mathematical Functions, §4.2 Logarithm, Exponential, Powers (dlmf.nist.gov) · Stewart, J., Calculus: Early Transcendentals, §1.5 Inverse Functions and Logarithms

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →