Log Calculator

Calculate the logarithm of a number in base 10, base e, base 2 or any base you choose.

Updated . Free, no sign-up, calculated in your browser.

Use 2.718281828 for natural log, or any positive base except 1.
log base 10 of 1000
3
log₁₀3
ln (base e)6.907755279
log₂9.9657842847

What a logarithm is

A logarithm answers “what power do I raise the base to, to get this number?” Since 10³ = 1000, log₁₀ 1000 = 3.

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

The change-of-base formula above lets any calculator find logs in any base. Logarithms measure sound (decibels), acidity (pH) and earthquakes, and they turn multiplication into addition: log(ab) = log a + log b.

Example calculation

Example: with number 1,000, base 10, the result is log base 10 of 1000: 3.

log₁₀3
ln (base e)6.907755279
log₂9.9657842847

Frequently asked questions

What is a logarithm?

It answers the question: what power must the base be raised to, to get this number? Since 10³ = 1000, log₁₀ 1000 = 3.

What is the difference between log and ln?

log usually means base 10; ln is the natural log, base e (about 2.71828).

How do I calculate a log in any base?

Use the change-of-base formula: log_b(x) = ln(x) ÷ ln(b).

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

No power of a positive base gives zero or a negative result, so those logarithms aren’t defined in real numbers.

Results are calculated in your browser for general and educational use. Double-check figures before relying on them for graded work or important decisions.