Exponential Equation Calculator

Solve exponential equations such as a·bˣ = c, 4e²ˣ + 5 = 12 or 5ˣ⁺² = 4ˣ with logarithms, showing every step and a check.

Use 1 if there is nothing in front of the power.
Positive and not 1, e.g. 2, 10 or 0.5.
For a plain x in the exponent, p = 1 and q = 0.
Usually 0. For 4e²ˣ + 5 = 12 use d = 5.

Results

Solution
x = 5
x
5.00
Exact form
x = log₂(32)
log_b(y) = ln y ÷ ln b, so you can use either the ln or the log key.
Steps
3·2ˣ = 96 Divide both sides by 3: 2ˣ = 32 32 = 2⁵, so the exponents must match: x = 5 Check: 3·2^(5) = 96 ✓

How it’s calculated

To solve an equation with x in the exponent, isolate the power, then take a logarithm of both sides. The power rule ln(bʸ) = y·ln b brings the exponent down so you can solve for x.

a · b^(px + q) + d = c b^(px + q) = (c − d) ÷ a (must be positive) px + q = ln((c − d) ÷ a) ÷ ln b x = (ln((c − d) ÷ a) ÷ ln b − q) ÷ p

If both sides can be written as powers of the same base (such as 8 = 2³ and 16 = 2⁴), you can skip the logarithms: equal powers of the same base have equal exponents. With two different bases, take ln of both sides, collect the x terms and divide.

Example: 4e²ˣ + 5 = 12. Subtract 5: 4e²ˣ = 7. Divide by 4: e²ˣ = 1.75. Take ln: 2x = ln 1.75 ≈ 0.5596158. Divide by 2: x = ½·ln(7/4) ≈ 0.2798079.

No solution: a positive base raised to any power is positive, so if (c − d) ÷ a is 0 or negative there is no real solution (for example 3ˣ⁺¹ = −2).

Frequently asked questions

Should I use ln or log to solve an exponential equation?

Either works. log_b(y) = ln y ÷ ln b = log y ÷ log b, so the answer is the same. Use ln when the base is e, because ln(eʸ) = y directly.

Why does 3ˣ = −2 have no solution?

Any positive number raised to a real power is positive, so 3ˣ can never be negative or zero.

How do I solve 8ˣ⁺² = 16ˣ⁺¹?

Write both as powers of 2: 2³⁽ˣ⁺²⁾ = 2⁴⁽ˣ⁺¹⁾. The exponents must be equal, so 3x + 6 = 4x + 4 and x = 2. Choose the two-bases type and enter b = 8, p = 1, q = 2, B = 16, r = 1, s = 1.

How is this different from the exponential growth calculator?

The growth calculator works with a starting amount and a percentage rate. This one solves any equation of the form a·b^(px + q) + d = c, including two different bases, and shows the algebra.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator