Calculators4All
Home / Math / Log calculator
Math calculator

Log calculator

Calculate the logarithm of a number in any base — including common log (base 10) and natural log (base e).

Result
Natural log (ln x)
Common log (log₁₀ x)
Base-2 log (log₂ x)

What a logarithm actually asks

A logarithm answers one question: "what power do I need to raise the base to, in order to get this number?" So log base 10 of 100 equals 2, because 10² = 100. Every log calculation is really just an exponent problem written backwards.

The formula this calculator uses

Since browsers only compute natural log directly, every other base is found with the change-of-base formula:

Common log bases and where they show up

BaseNameTypical use
10Common logpH scale, decibels, Richter scale
e (≈2.718)Natural logCalculus, compound growth, half-life
2Binary logComputer science, information theory