Logarithm Calculator

Calculate logarithms in any base, with ln, log₁₀, log₂ and e^x for context.

Calculated in your browser. No data sent to servers.

Formula reviewed Nov 2026

Try an example

logb(x)

-

-

Natural log (ln)

-

log base 10

-

log base 2

-

Exponential e^x

-

How to use this calculator

Enter a number and a base. The calculator returns log of that number in the base, plus natural log, log base 10, log base 2, and e raised to that power.

The formula behind this result

log_b(x) = ln(x) / ln(b). Natural log ln(x) uses base e ≈ 2.718. log₁₀ is the common logarithm. log₂ is used in computing. e^x is the inverse of ln(x).

Frequently asked questions

What is a logarithm?

The logarithm base b of x is the power you must raise b to get x. log₂(8) = 3 because 2³ = 8.

Why can't log of a negative number be computed?

Because b^y is always positive for positive b. The log of a negative number has no real answer (its complex answer uses imaginary numbers).

Explore more