The formula
log_b(x) = ln(x) ÷ ln(b)
A logarithm answers the question “what power do I raise the base to, to get this number?” log₁₀(1000) is 3 because 10³ = 1000. The change-of-base rule lets you compute a log in any base from natural logs.
How to use this calculator
- Enter number.
- Enter base.
- Read the answer on the right. It updates as you type, and the numbered steps underneath show how it was worked out.
Worked example
Using Number: 1000; Base: 10.
- Change of base: ln(1,000) ÷ ln(10)
- = 6.9077553 ÷ 2.3025851 = 3
- Check: 10^3 = 1,000
log base 10 of 1,000: 3
Common questions
What is the difference between log and ln?
log usually means base 10 and ln means base e (about 2.718). They differ by a constant factor: ln(x) = 2.3026 × log₁₀(x).
Why can’t I take the log of a negative number?
No real power of a positive base gives a negative result, so the logarithm is undefined in the real numbers.