Logarithm Calculator

log, ln and log₂ - and logarithms to any base

Calculate the logarithm of a number to base 10, base e (natural log), base 2 or any base, with the change-of-base steps.
Share
Try an example:
Your result will appear here as you type.

About Logarithm Calculator

Formula

log_b(x) = ln(x) ÷ ln(b)

log_b(x) = y ⇔ b^y = x

Worked examples

log(1000)

10³ = 1000, so log(1000) = 3.

ln(20)

ln(20) ≈ 2.995732, because e^2.995732 ≈ 20.

How it works

  1. log_b(x) is the power you raise b to, to get x.
  2. Any base is worked out with the change-of-base rule: log_b(x) = ln(x) ÷ ln(b).

What you need

  • A positive number and a base (positive, not 1).

Tips

  • log₁₀ counts digits: log(1000) = 3.
  • ln is used in growth and decay problems; log₂ in computing.

Limitations

  • Logarithms of zero or negative numbers are not defined.

Runs in your browser. Calculations run in your browser - nothing you enter is sent anywhere.

Definitions

Natural log (ln)
Logarithm to base e ≈ 2.71828.
Common log
Logarithm to base 10.

Frequently asked questions

What is the difference between log and ln?+

log usually means base 10 and ln means base e. Calculators and this tool follow that convention.

Was this calculator helpful?