Solve for Exponents Calculator (bⁿ = y)
Solve b^n = y for the unknown exponent n given any positive base (other than 1) and positive result, using logarithms, with full steps shown.
Solving an equation for its exponent
Given an equation of the form — a known base and a known result — this calculator solves for the unknown exponent . The tool for isolating an exponent is the logarithm:
For example, has the solution , because . The exponent you are solving for is the logarithm — there is no separate technique for "solving for an exponent" beyond recognizing that a logarithm already does exactly this.
Why the logarithm is the right tool
Exponentiation and logarithms are inverse operations, the same way multiplication and division undo each other. Three numbers — the base , the exponent , and the result — are related by both:
| Known | Unknown | Solve with |
|---|---|---|
| , | Exponentiation: | |
| , | Logarithm: |
Because a logarithm undoes exponentiation, plugging the solved exponent back in always recovers the original result: . This calculator's "The defining identity" section shows this plugged-in check for every answer.
Why the base and result have restrictions
The equation only has a real solution for when the base satisfies and , and the result :
- is invalid. Raising a negative base to a non-whole exponent (which most solutions are) is not a real number.
- is invalid. for every , so there is no unique exponent that solves unless is already 1 — and even then, every works, so the equation is left undefined.
- is invalid. A positive base raised to any real power always stays positive, so no real makes zero or negative.
This calculator reports any of those combinations as out of range instead of guessing at a misleading number.
Exact exponents vs. decimal approximations
When the result is an exact power of the base — like or — the exponent is a whole number, computed exactly. Most results are not exact powers, so the exponent is an irrational decimal, rounded here to 6 decimal places.
Example 1 (exact): , since .
Example 2 (exact): , since .
Example 3 (exact): , since .
Example 4 (decimal approximation): , since .
Where solving for an exponent shows up
Solving for an unknown exponent is how you answer "how many times / how long / how many periods" questions in exponential growth and decay — compound interest asking how many years to double, radioactive decay asking how many half-lives have passed, or population growth asking how many generations to reach a target size. In every case the growth rate is the base, the target is the result, and the unknown number of steps is the exponent you solve for with a logarithm. For the reverse question — raising a known base to a known power — see the Exponents calculator and the Fractional Exponents calculator.
Frequently asked questions
- How do you solve for an exponent?
- To solve for the exponent , take the logarithm of both sides in base : . For example, solving gives , because .
- Why does taking a logarithm solve for the exponent?
- A logarithm is defined as the inverse of exponentiation: is, by definition, the power you raise to in order to get . So and are two ways of writing the exact same relationship — the logarithm just isolates .
- Why must the base be positive and not equal to 1?
- If the base , raising it to most real powers is not a real number (a negative base to a fractional power is undefined over the reals). If , then for every , so there is no single exponent that solves the equation — it is left undefined rather than guessed at.
- Why must the result be positive?
- A positive base raised to any real power always stays positive, so there is no real exponent that makes equal zero or a negative number when . If the result you are solving for is , the equation has no real solution.
- Is the exponent always a whole number?
- No. The exponent is only a whole number when the result is an exact power of the base, like giving . Most equations do not work out this cleanly — solving gives an irrational decimal, , which this calculator rounds to 6 decimal places.
- How is this different from the Logarithm calculator?
- It is the same computation, framed differently. The [Logarithm calculator](/en/calculators/algebra/logarithm) is written as directly; this calculator is written as the equation that you are solving for . Both compute under the hood.