How this calculation works
When the base lies between zero and one, the exponent increases as the target decreases.
bˣ = y gives x = ln(y)/ln(b)A worked example
2 raised to 5 equals 32.
Good to know
Base 1 produces a constant expression.
Reference: OpenStax Algebra and Trigonometry (opens in a new tab) ↗
Take logarithms to isolate the exponent
For 2ˣ = 32, taking natural logarithms gives x ln 2 = ln 32. Dividing by ln 2 gives x = 5. Substituting the result confirms 2⁵ = 32. The graph illustrates the intersection of y = 2ˣ with the horizontal target level y = 32.
The same procedure solves bˣ = y using x = ln(y)/ln(b) for a positive base different from one and a positive target. Both logarithms may use another shared base, since their ratio is unchanged by the logarithm change-of-base formula.
Check bases between zero and one and the constant case
For (1/2)ˣ = 8, the logarithm of the base is negative and the solution is x = −3. The decreasing exponential still reaches every positive target once. A target of one gives x = 0 whenever the base is positive and different from one.
A base of one makes the left side equal to one for every real exponent. The calculator returns All real numbers when the target is also one and No solution otherwise. The Exponential model through two points calculator can estimate a base from positive observations before you solve for an exponent. The input fields restrict base and target to positive values to stay within this real logarithmic model.
A few questions, answered
Can the exponent be fractional?
Yes. For 2ˣ = 3 the real solution is ln 3/ln 2, approximately 1.585.
What does a negative exponent mean?
It gives a reciprocal power. For example, 2⁻³ = 1/8.