Log Calculator
Calculate logarithms in any base – log base 10, natural log (ln), log base 2 – and the antilog.
How to use the Log Calculator
- Enter number (x).
- Enter base (b).
- Your results update instantly: log_b(x), log₁₀(x), ln(x), log₂(x).
What is a logarithm?
log_b(x) answers “b to what power gives x?”. log₁₀(1000) = 3 because 10³ = 1000.
log_b(x) = ln(x) ÷ ln(b)
Log rules
- log(ab) = 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
Logarithms appear in pH, decibels, the Richter scale, compound interest and algorithm complexity.
Frequently asked questions
What is ln?
The natural logarithm, with base e ≈ 2.71828.
Can you take the log of a negative number?
Not in real numbers. The input must be greater than zero.
Last updated 16 November 2026. Results are estimates for general information and are not financial, tax, legal or medical advice.