Logarithm Calculator

Log of any number in base 10, e, 2 or a custom base.

Base
log base 10(1,000)
3
ln
6.90775528
log₁₀
3

How it works

Change of base: log_b(x) = ln(x) / ln(b).

Worked example

Using these inputs: number 1,000 and base 10.

The result is log base 10(1,000): 3.

  • ln: 6.90775528
  • log₁₀: 3

Formula reviewed November 2026 · How we build calculators

Frequently asked questions

What is a logarithm?

The power you raise a base to in order to get a number. log₁₀(1000) = 3 because 10³ = 1000.

What is the difference between log and ln?

log usually means base 10; ln is the natural logarithm with base e ≈ 2.71828.

What is log base 2 used for?

Computer science and information theory. log₂(1024) = 10, which is why 1,024 bytes make a kilobyte in binary terms.

Can you take the log of a negative number?

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

Esc