Logarithm is defined only for x > 0 and base b > 0, b ≠ 1.
Example
x = 100: log₁₀(100) = 2, ln(100) ≈ 4.605, log₂(100) ≈ 6.644. Custom base 5: log₅(100) = ln(100)/ln(5) ≈ 2.861.
Key insights
log₁₀(1000) = 3 because 10³ = 1000 — the common log counts the number of digits minus 1.
ln(e) = 1 where e ≈ 2.71828 (Euler's number). The natural log is the inverse of exponential growth.
log₂ is fundamental in information theory — log₂(1024) = 10 bits.
Change of base: log_b(x) = ln(x) / ln(b) — any logarithm can be computed from the natural log.
How to interpret your result
Common log (log₁₀)
Used in pH (chemistry), Richter magnitude (earthquakes), and decibel (sound). log₁₀(x) answers '10 to what power equals x?'
Natural log (ln)
Used in calculus, probability, and finance (continuous compounding). It's the inverse of eˣ.
Binary log (log₂)
Fundamental in computer science: the number of bits needed to represent n values is ⌈log₂(n)⌉.
Frequently asked questions
What is a logarithm?
The logarithm log_b(x) is the exponent to which you must raise b to get x. log₂(8) = 3 because 2³ = 8.
What is the difference between log and ln?
log usually means log₁₀ (common logarithm). ln means the natural logarithm with base e ≈ 2.71828.
Why is log undefined for negative numbers?
No real power of a positive base produces a negative result. Logarithms of negative numbers are complex and outside this tool's scope.
Related calculators
Exponent Calculator — Calculate bᵉ for any base and exponent — positive, negative, or fractional — with scientific notation and exponent rules.
Scientific Notation Calculator — Convert any number to scientific notation and perform arithmetic (add, subtract, multiply, divide) on numbers in scientific notation.
Scientific Calculator — Compute powers, square roots, logarithms, trigonometric functions, and factorials with instant scientific notation.