Logarithm Calculator

Calculate logarithms in base 10, base e (natural log), base 2 or any custom base.

  • Reviewed November 2026
  • Formula and worked example below
  • Free, no sign-up, runs in your browser
Enter your numbers to see the result.

What a logarithm answers

A logarithm asks: to what power must the base be raised to get this number? log₁₀(1000) = 3 because 10³ = 1000.

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

Useful rules

  • log(a × b) = log a + log b
  • log(a ÷ b) = log a − log b
  • log(aⁿ) = n × log a
  • log_b(1) = 0 and log_b(b) = 1

Where logs show up

  • Finance: the time to reach a savings goal with compound interest is t = ln(goal ÷ start) ÷ ln(1 + r).
  • Science: pH, decibels and the Richter scale are logarithmic; each step of 1 is a tenfold change.
  • Computing: log₂ tells how many bits are needed or how many steps a binary search takes.

Doubling time: how long does money take to double at 5% a year? Choose a custom base of 1.05 and enter 2: log₁.₀₅(2) = ln 2 ÷ ln 1.05 = 0.6931 ÷ 0.0488 ≈ 14.2 years. The rule of 72 gives a quick estimate: 72 ÷ 5 = 14.4.

Exact answers and the change-of-base formula

Calculators work with ln, so a log in any other base is computed as ln(x) ÷ ln(b), and the result panel shows that step. When the answer is a simple fraction, it is shown exactly as well: log₈(4) = 2/3, because 8^(2/3) = (∛8)² = 2² = 4. Results that are whole numbers, such as log₁₀(1000) = 3 or log₃(81) = 4, are shown without rounding noise.

Antilog

The antilogarithm reverses a log: the antilog of y in base b is bʸ. Choose "Antilog" to calculate it. The antilog of 2.5 in base 10 is 10^2.5 ≈ 316.23, and the natural antilog of 3 is e³ ≈ 20.09. Antilogs turn decibels, pH values and Richter magnitudes back into ordinary ratios.

Characteristic and mantissa

Printed log tables split a common log into a whole-number part (the characteristic) and a decimal part (the mantissa). For 345, log₁₀ = 2.5378: the characteristic 2 says the number has three digits before the decimal point, and the mantissa 0.5378 depends only on the digits 3, 4, 5, so 3.45 and 34,500 share it.

Frequently asked questions

What is ln?

The natural logarithm, a logarithm with base e ≈ 2.71828.

Can you take the log of a negative number?

Not with real numbers. Logarithms are defined only for positive inputs.

What is log 2 base 10?

About 0.30103.

Add this calculator to your website

Copy this code into your page:

Last reviewed November 2026.