ZapKit

Logarithm calculator

Find the logarithm of any positive number in base 10, e, 2 or a base of your choice, with ln, log₁₀ and log₂ shown side by side.

What is a logarithm?

A logarithm answers the question: what power must the base be raised to, to get this number? log₁₀(1000) is 3 because 10³ = 1000. Logarithms turn multiplication into addition and appear in pH, decibels, earthquake magnitudes, compound interest and computer science.

Enter a positive number and choose base 10, base e, base 2 or any other base. The result is shown with the natural, common and binary logarithms beside it, the change-of-base calculation, and a check that raising the base to the answer gives your number back.

How to use the Logarithm calculator

  1. 1.Enter the number

    Any number above 0.

  2. 2.Pick the base

    10, e, 2 or another base.

  3. 3.Read the answer

    With the working and a check.

Example: doubling and acidity

Two everyday uses:

log₂(1,000,000)
19.9315685693
log₁₀(0.001)
−3
log_3(81)
4

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

A million items need 20 halvings to search, and a hydrogen concentration of 0.001 is pH 3.

Change of base

Any logarithm can be worked out from natural logs: log_b(x) = ln(x) ÷ ln(b). The working shows that division, then checks the answer by raising the base to it, so you can see that 3⁴ really is 81.

Logarithms are only defined for numbers above 0, and the base must be positive and not 1. Numbers between 0 and 1 have negative logarithms: log₁₀(0.001) = −3, because 10^−3 = 0.001. Results that are whole numbers are shown without rounding noise.

Frequently asked questions

What's the difference between log and ln?

log usually means base 10; ln is base e, about 2.71828.

Where is log₂ used?

In computing: bits needed, binary search steps and doubling times.

What is an antilog?

Raising the base to a number, the reverse of a log. Use the exponent calculator.

Why can't I take the log of 0?

No power of a positive base equals 0, so it's undefined.

More Utilities tools