Logarithm Calculator
Find a logarithm, undo it with an exponential, or solve for the base. Built for algebra practice, growth models, and scales that use logs (pH, decibels, orders of magnitude).
Calculate
y = log_b(x)
Result
The formula
A logarithm answers: to what power must base b be raised to get x? The identity is y = log_b(x), the same as x = b^y. Change of base lets you compute any log with natural logs: log_b(x) = ln(x)/ln(b).
Worked example
- Given x = 64 and b = 2.
- Use change of base: y = ln(64)/ln(2).
- Result: y = 6, and check 2⁶ = 64.
Result: log₂(64) = 6
How this logarithm calculator works
Each mode rearranges the same exponential relationship and shows a matching point on y = log_b(x) when the inputs allow it.
Find y = log_b(x)
Enter a positive value x and a valid base b (b > 0, b ≠ 1). The calculator uses change of base via natural logs and flags exact integer powers when b^y matches x within floating-point tolerance.
Find x = b^y
Raise base b to exponent y. Domain: b > 0 and b ≠ 1. Negative exponents produce reciprocals when b > 1.
Find base b = x^(1/y)
Solve for the base from a positive x and a nonzero exponent y. The result must stay positive and not equal to 1.
Exact answers and decimal places
When the power check is tight (for example 2⁶ = 64), the result is labeled Exact. Otherwise choose Automatic decimals or a fixed 0–8 places.
Interesting facts
Change of base is the workhorse identity
Any log can be written as a ratio of natural logs: log_b(x) = ln(x)/ln(b). That is how calculators evaluate uncommon bases.
ln is log base e
Natural log uses e ≈ 2.71828. It appears in continuous growth, half-life models, and many calculus identities.
Common and binary logs are shortcuts
log₁₀ is the common log used in scientific notation and pH. log₂ is the binary log used in information theory and computer science.
Log scales compress wide ranges
Decibels, Richter magnitude, and orders-of-magnitude charts use logs so multiplicative jumps become readable additive steps.
Frequently asked questions
You need x > 0, b > 0, and b ≠ 1. Outside that domain, a real logarithm is undefined.
Yes. A negative exponent means a reciprocal: for example 2^(−3) = 1/8.
1 raised to every power is still 1, so it cannot uniquely identify an exponent for other values of x.
ln always means base e. In science “log” often means base 10; in pure math the base should be written explicitly.
Switch to Find base, enter x and y, and the calculator returns b = x^(1/y) when the inputs are valid.
References
- Logarithms — MathWorld Definition and change-of-base relationships.
- Logarithms and exponentials Logarithm properties and exponential equations.