Skip to content
toolgrid

No tool found. Try another word.

Logarithm Calculator

Calculate the logarithm of any positive number in any base: log10, the natural logarithm ln, log2 or a base of your choice.

The number must be greater than 0; the base must be greater than 0 and not 1 (or e).

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the Logarithm Calculator

  1. 1 Enter the number (greater than 0).
  2. 2 Enter the base: 10 for the common logarithm, e for the natural logarithm, 2 or any other positive number except 1.
  3. 3 Read the logarithm, together with ln, log₁₀ and log₂ of the same number.

About the Logarithm Calculator

The logarithm answers the question "to which power must I raise the base to get this number?". log₁₀(1000) = 3 because 10³ = 1000, and log₂(8) = 3 because 2³ = 8. Logarithms turn multiplication into addition: log(a × b) = log(a) + log(b).

The natural logarithm ln uses Euler’s number e ≈ 2.71828 as its base and appears everywhere in growth, decay and interest calculations. The common logarithm (base 10) is used for decibels, the Richter scale and pH, and log₂ in computer science, for example to count how many bits a number needs.

Any base can be computed with the change-of-base formula: log_b(x) = ln(x) / ln(b). The logarithm only exists for positive numbers, and the base must be positive and not 1. Results are rounded to 12 significant digits.

Frequently asked questions

What is the difference between log and ln?

log usually means the logarithm with base 10 (on calculators) and ln the natural logarithm with base e ≈ 2.71828. In advanced mathematics, log sometimes means ln.

Why is the logarithm of 0 or a negative number undefined?

No power of a positive base gives 0 or a negative number, so there is no exponent that works.

What is log(1)?

0 in every base, because any base to the power 0 is 1.

How do I calculate a logarithm in a different base?

Use log_b(x) = ln(x) / ln(b). For log₅(125): ln(125) / ln(5) = 3.

What is the logarithm used for?

To solve equations with unknown exponents, for scales that span many orders of magnitude (decibels, pH, earthquakes) and to describe exponential growth and halving times.