Find the logarithm of any number, with any base - including natural log (base e) and common log (base 10).
Log Calculator
LiveThe formula
log base 2 of 32: since 2⁵ = 32, log₂(32) = 5. The common log (base 10) of 32 is approximately 1.50515.
Step-by-step guide
- Enter the number you want to find the logarithm of.
- Choose a base - base 10 (common log), base e (natural log), base 2, or any custom base.
- Read the result.
What a logarithm actually asks
A logarithm answers a simple question phrased backward from what you might expect: "what power do I need to raise this base to, to get this number?" Log base 2 of 32 asks "2 raised to what power equals 32?" and the answer is 5, since 2⁵=32. This is exactly why logarithms are the inverse operation of exponentiation, and why they're so useful for working with quantities that grow or shrink exponentially - like earthquake magnitudes, sound decibels, and pH levels, all of which are logarithmic scales.
Common mistakes
Frequently asked questions
What's the difference between log and ln?
"log" (without a specified base) conventionally means base 10 in most everyday and engineering contexts, while "ln" specifically means the natural logarithm, base e (approximately 2.71828) - a base that shows up naturally throughout calculus and continuous growth problems.
Why is e used as a base at all?
The number e arises naturally from continuous growth processes (like continuously compounding interest or population growth), and the natural logarithm has especially clean mathematical properties in calculus, which is why it appears so frequently in higher mathematics and science.
How does the change of base formula work?
It lets you calculate any base's logarithm using only natural log or common log (which calculators readily provide): log base b of x equals ln(x) divided by ln(b) - the same ratio regardless of which common base you use for the calculation.
Related calculators
See the full list of Math calculators, or try: