Logarithm calculator
log of any number to any base, with the change-of-base step.
10
- log base 2 1,024 = log₁₀ 1,024 / log₁₀ 2
- = 3.0103 / 0.30103 = 10
- Check: 2^10 ≈ 1,024
How it works
logₐ x = y means aʸ = x. A calculator only knows log₁₀ and ln, so use change of base: logₐ x = log x / log a.
Worked example
With Number x = 1024, Base a = 2:
- log base 2 1,024 = log₁₀ 1,024 / log₁₀ 2
- = 3.0103 / 0.30103 = 10
- Check: 2^10 ≈ 1,024
Answer: 10
Questions
- Why can’t I take the log of a negative number?
- No power of a positive base is negative, so there is no real answer.