Calculate logarithms - log, ln, log10, log2
Last updated: November 14, 2026
What logarithms are and why they matter
A logarithm answers the question: 'what power do I raise the base to get this number?' log₂(8) = 3 means 2³ = 8. The logarithm is the inverse operation of exponentiation.
Common logarithm (log₁₀): Base 10, written as 'log'. Used in pH (acidity), Richter scale (earthquakes), and decibels (sound). log(1000) = 3 because 10³ = 1000.
Natural logarithm (ln): Base e (≈ 2.718). Used extensively in calculus, finance (compound interest), population growth, and radioactive decay. ln(e) = 1.
Logarithm rules: log(ab) = log(a) + log(b). log(a/b) = log(a) - log(b). log(aⁿ) = n·log(a). Change of base: logₐ(x) = log(x)/log(a).
Why logarithms matter: They compress very large ranges into manageable scales. The difference between magnitude 6 and 7 earthquakes isn't 1 unit — it's 10x more energy. Log scales make such comparisons intuitive.
Short answers to common questions
A logarithm is the inverse operation of exponentiation. log₁₀(100) = 2 because 10² = 100.
ln is the natural logarithm with base e (approximately 2.71828). It's commonly used in mathematics and science.
log₁₀ uses base 10 while ln uses base e. log₁₀(100)=2 but ln(100)≈4.605
In the real number system, logarithms of negative numbers are undefined. Logarithms are only defined for positive numbers.
log(1) is always 0 regardless of the base, because any number raised to the power 0 equals 1.
log(a×b) = log(a) + log(b), log(a/b) = log(a) - log(b), log(aⁿ) = n×log(a)
log₂(10¹⁰) = 10 × log₂(10) ≈ 10 × 3.3219 = 33.22, using the power rule logₐ(xⁿ) = n × logₐ(x).
log₂(50000) ≈ 15.61. Since 2¹⁵ = 32768 and 2¹⁶ = 65536, the result falls between 15 and 16.
How to Use? Enter the number and base for logarithm calculation. Use e (2.718...) for ln, 10 for log, and 2 for log2.