Overview

A logarithm answers the question: what power must the base be raised to in order to get this number? Since 10³ = 1,000, log₁₀(1,000) = 3.

Enter a number and a base. The natural log (base e) and binary log (base 2) are shown too.

Worked examples

InputsResult
Number1,000Base10log base 10 of 1,000 = 3Natural log (ln): 6.90776Common log (log₁₀): 3Binary log (log₂): 9.96578
Show 3 more examples
Number100Base10log base 10 of 100 = 2Natural log (ln): 4.60517Common log (log₁₀): 2Binary log (log₂): 6.64386
Number64Base2log base 2 of 64 = 6Natural log (ln): 4.15888Common log (log₁₀): 1.80618Binary log (log₂): 6
Number20Base2.718282log base 2.71828 of 20 = 2.995732274Natural log (ln): 2.99573Common log (log₁₀): 1.30103Binary log (log₂): 4.32193

Logarithm by base

With the calculator's starting values, the result is 3. The table shows how it changes with the base.

BaseLogarithm
63.855291627
83.321928095
10starting value3
122.779885224
142.617508609

Other inputs: Number: 1,000. Change them in the calculator above for your own numbers.

How it works

Any logarithm can be computed with the change-of-base rule: log_b(x) = ln(x) ÷ ln(b).

The formula

log_b(x) = ln(x) ÷ ln(b)
xThe number (must be positive)
bThe base (positive, not 1)

Practical tips

  • Logarithms turn multiplication into addition: log(ab) = log a + log b.
  • Decibels, pH and the Richter scale are all logarithmic.

Frequently asked questions

What is log base 2 of 1,024?

10.

Why can I not take the log of zero or a negative number?

No power of a positive base can give zero or a negative result.