Precalculus

Exponential Equation Solver

An exponential equation has the unknown in the exponent. To solve a·bˣ = c, this tool isolates the power, then applies logarithms to bring the exponent down: x = ln(c/a) / ln(b).

Exponential Equation Solver

Solve a·bˣ = c for the exponent x.

Try:
Answerx = 5
  1. Equation1·2^x = 32
  2. Isolate the power2^x = c / a = 32
  3. Take logarithmsx = ln(32) / ln(2)
  4. Solvex = 5

Two steps, shown separately

An exponential equation has the unknown in the exponent rather than in the base. That single difference makes ordinary algebra useless: you cannot divide, factor or take a root to get x out of a power. The tool that works is the logarithm, the inverse of exponentiation, which brings the exponent down to ground level.

This calculator solves the standard form a·bˣ = c. It isolates the power, applies logarithms, and reports x together with the intermediate quantity the answer depends on.

Solving a·bˣ = c has two moves: divide by the coefficient to leave a bare power, then take logarithms. Each gets its own line, which matters because the first is where the equation can become unsolvable and the second is where the arithmetic goes wrong.

The isolated value c/a is worth reading on its own. If it is zero or negative there is no real solution, and seeing the number makes the reason obvious in a way an error message does not.

How to use this calculator

  1. Enter the coefficient a The multiplier in front of the power. It may be negative, but not zero: that would make the left side identically zero regardless of x.
  2. Enter the base b The number being raised to the power. It must be strictly positive and not equal to 1. A base of 1 makes the left side constant, so the equation either has no solution or infinitely many.
  3. Enter the right-hand side c The value the whole expression equals. Any real number is accepted here; whether a solution exists depends on its sign relative to a.
  4. Read the isolated power before the answer The second line reports c/a. That quotient must be positive for a real solution, and reading it explains any no-solution result.

The formula, and where it comes from

a·bˣ = c → bˣ = c/a → x = ln(c/a) / ln(b) requires b > 0, b ≠ 1, c/a > 0

Dividing both sides by a leaves bˣ on its own. This step is pure arithmetic and never changes whether a solution exists — but it does produce the quantity that decides it, which is why the tool reports c/a rather than folding it into the final expression.

Taking the natural logarithm of both sides turns the exponent into a multiplier, because ln(bˣ) equals x·ln(b). Dividing through by ln(b) then isolates x. The natural logarithm is used purely for convenience: any base gives the same result, since the two logarithms in the quotient change by the same factor and cancel.

The conditions on the inputs are not arbitrary restrictions but statements about when the equation has a real answer. A positive base raised to any real power is always positive, so bˣ can never equal a non-positive number — which is exactly why c/a must be greater than zero. And ln(b) is zero when b is 1, making the final division undefined — the algebraic form of the observation that 1ˣ is constant.

What each input means

a Coefficient — form field “Coefficient a”
The multiplier in front of the exponential term. Any non-zero real number, including negatives — a negative a with a negative c still gives a positive quotient and so a real solution.
b Base — form field “Base b”
The number raised to the power x. Must be positive and different from 1. Values between 0 and 1 describe decay rather than growth, and are perfectly valid.
c Right-hand side — form field “Right-hand side c”
The target value of the whole expression. Any real number, though its sign relative to a decides solvability.
x Solution
The exponent that satisfies the equation. Exponential equations of this form have at most one real solution, since the exponential function is strictly monotonic.

Worked examples

Every number below is produced by the same calculation engine the tool above runs. Nothing here is typed by hand, so the walkthrough cannot drift from what you get when you enter the same values yourself.

A power of two, recognisable by inspection

Solve 2ˣ = 32. The coefficient is 1, so the isolating step does nothing, and the answer is a whole number that can be checked mentally.

Inputs Coefficient a = 1, Base b = 2, Right-hand side c = 32

  1. Equation 1·2^x = 32
  2. Isolate the power 2^x = c / a = 32
  3. Take logarithms x = ln(32) / ln(2)
  4. Solve x = 5

Result x = 5

The answer is 5, since 32 is 2 to the fifth power. The logarithm route reaches it the long way round — ln 32 divided by ln 2 — and getting the same number shows the method agrees with direct recognition.

Because the two logarithms are computed in floating point, a whole-number answer here is exact only after display rounding. That is worth knowing before treating a clean result as evidence of an exact power.

A coefficient that has to be divided out first

Solve 3·5ˣ = 75. Here the coefficient is not 1, so the first step genuinely does something and the isolated value is what the logarithm acts on.

Inputs Coefficient a = 3, Base b = 5, Right-hand side c = 75

  1. Equation 3·5^x = 75
  2. Isolate the power 5^x = c / a = 25
  3. Take logarithms x = ln(25) / ln(5)
  4. Solve x = 2

Result x = 2

The isolated power is 75/3 = 25, and 25 is 5 squared, so x = 2. Taking the logarithm of 75 directly, without dividing by 3 first, would give a completely different and wrong answer — the classic error with this equation shape.

Notice that the coefficient never enters the logarithm. It is disposed of entirely by division before any logarithm is taken, which is why the reported quotient line is the one to check when an answer looks wrong.

Reading the result

Why there is at most one solution

An exponential function is strictly increasing or strictly decreasing throughout, so it takes each positive value exactly once. Unlike a quadratic, this equation shape can never have two answers — a second solution found by hand is an error.

When no real solution exists

The tool reports no solution rather than a number when c/a is zero or negative. This is a genuine fact: bˣ is positive for every real x when b is positive, so it cannot reach zero or a negative target.

When you would use this

Finding a doubling or halving time

Growth at a fixed rate per period is exponential, so asking when a quantity reaches a multiple of its starting value is this equation with the multiple as c/a.

Solving for an unknown number of periods

Compound interest, population models and radioactive decay all put the period count in the exponent. When the final amount is known and the term is not, this equation recovers it.

Assumptions and limitations

What this calculator assumes

  • The equation is exactly of the form a·bˣ = c, with a single exponential term and the unknown only in the exponent.
  • The base is positive and not equal to 1, and the coefficient is non-zero.
  • Only real solutions are considered; a non-positive quotient c/a returns no solution rather than a complex answer.

Where it stops being the right tool

  • One exponential term only. Equations such as 2ˣ + 3ˣ = 10, or with an exponential on both sides, are out of scope.
  • The exponent must be x itself, not a linear expression in x, so a form like b^(2x+1) has to be rearranged first.

Common mistakes

Taking logarithms before dividing by the coefficient

Why it happens. The equation reads left to right as a product, so applying ln to the whole side feels natural. But ln(a·bˣ) is ln(a) + x·ln(b), not x·ln(a·b), and skipping the division loses that additive term.

How to avoid it. Divide by a first, always. The isolated-power line shows the value that should be going into the logarithm — compare it with what you used.

Expecting a solution for a negative target

Why it happens. Nothing about the equation looks impossible, and every other input combination returns a number, so a no-solution message reads like a limitation of the tool.

How to avoid it. Check the sign of c/a. A positive base to any real power is positive, so a non-positive target genuinely has no real solution.

Using a base of 1

Why it happens. It looks like a harmless special case, but 1ˣ equals 1 for every x, so the equation is either always true or never true and never determines a single value.

How to avoid it. Choose a base different from 1. If the model really has a base of 1, the quantity is constant and there is nothing to solve for.

Key terms

Frequently asked questions

Why are logarithms needed at all?

Because the unknown is in the exponent, where dividing, factoring and taking roots cannot reach it. The logarithm is the inverse of exponentiation, so applying it converts the exponent into an ordinary multiplier that can be divided out.

When does the equation have no solution?

When c/a is zero or negative. A positive base raised to any real power stays positive, so the left-hand side can never reach a non-positive target. The tool reports that explicitly rather than returning a complex number.

What values can the base take?

Any positive number other than 1. Values above 1 describe growth and values between 0 and 1 describe decay, both of which are valid. A base of 1 makes the left side constant, and a non-positive base is not a real exponential function.

Does the choice of logarithm base matter?

No. The answer is a ratio of two logarithms, so any consistent base gives the same value — the conversion factors cancel. The natural logarithm is used here simply as a convention.