Logarithm Calculator

A logarithm answers “what power gives this number?”: log₁₀ 1000 = 3 because 10³ = 1000. Logarithms appear in finance, science, sound (decibels) and computing.

Use 2.718281828 for natural log, or see ln below.
Results update as you type.

log base 10 of 1,000

3

because 10^3 = 1,000

Natural log (ln)
6.907755279
Common log (log₁₀)
3
Binary log (log₂)
9.9657842847

About this calculator

Enter the number and the base.

How to use it

  1. Enter the number.
  2. Enter the base.
  3. Read the logarithms.

The formula

log_b(x) = ln(x) ÷ ln(b)
ln
natural log, base e ≈ 2.718
log
common log, base 10

Worked example

log base 10 of 1000

  1. 10³ = 1000, so the answer is 3.
  2. ln 1000 = 6.908 and log₂ 1000 = 9.966.

What the result means

The antilog is the reverse: 10³ = 1000.

Common and natural logs of 1 to 10

Only log 2, log 3 and log 7 need remembering. The rest follow from the laws below: log 4 = 2 log 2, log 5 = 1 − log 2 and log 6 = log 2 + log 3.

Rounded to 4 decimal places
xlog₁₀ xln x
10.00000.0000
20.30100.6931
30.47711.0986
40.60211.3863
50.69901.6094
60.77821.7918
70.84511.9459
80.90312.0794
90.95422.1972
101.00002.3026

Laws of logarithms

  • log(a × b) = log a + log b: log 6 = 0.3010 + 0.4771 = 0.7781.
  • log(a ÷ b) = log a − log b: log 0.5 = 0 − 0.3010 = −0.3010.
  • log(aⁿ) = n log a: log 8 = 3 × 0.3010 = 0.9031.
  • In any valid base b, log_b b = 1 and log_b 1 = 0.

Mistakes to avoid

  • On scientific calculators and in school textbooks, “log” usually means base 10 and “ln” means base e. In many programming languages, including Python and JavaScript, log() is the natural log.
  • log(a + b) is not log a + log b.
  • Numbers between 0 and 1 have negative logs: log 0.01 = −2.
  • The number of digits in a whole number x is the whole-number part of log₁₀ x, plus 1: log 1,024 ≈ 3.0103, so 1,024 has 4 digits.

Assumptions

  • Positive numbers and bases, base not 1.

Limitations

  • Logarithms of zero or negatives are undefined for real numbers.

Frequently asked questions

What is log 100?

2, in base 10.

What is ln 1?

0.

How do I change the base?

Divide ln of the number by ln of the base.

What is the value of log 2?

log₁₀ 2 ≈ 0.3010299957, usually rounded to 0.3010.

What is ln 2?

About 0.6931471806.

What is log base 2 of 1024?

10, because 2¹⁰ = 1,024.

Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.