Logarithm Calculator

Calculate logarithms with any base. Compute log, ln, log₂, and log₁₀ of any number.

How to Use This Calculator

Enter the value (x) you want to take the logarithm of, and the base. Leave the base as 10 for common logarithm (log₁₀), enter "e" (≈ 2.71828) for natural logarithm (ln), or enter 2 for binary logarithm (log₂). The calculator uses the change-of-base formula internally.

Formula

log_b(x) = ln(x) / ln(b)  |  Inverse: b^(log_b(x)) = x

The Three Most Common Logarithms

Key Logarithm Properties

These properties allow simplification of complex logarithmic expressions:

Real-World Applications

Logarithms compress large ranges of numbers into manageable scales. pH (acidity) uses log₁₀: each unit change represents a 10× change in hydrogen ion concentration. Sound intensity (decibels) uses log₁₀: a 10 dB increase means 10× more power. Earthquake magnitude (Richter) uses log₁₀: a magnitude 6 quake releases 32× more energy than a magnitude 5. Compound interest and population growth use ln. In data science, the log transform is frequently applied to skewed data before modeling to make distributions more symmetric.

Frequently Asked Questions

What is a logarithm?

A logarithm is the inverse of exponentiation. log_b(x) = n means b^n = x. For example, log₁₀(100) = 2 because 10² = 100.

What is the natural logarithm?

The natural logarithm (ln) uses the mathematical constant e (~2.71828) as its base.

More Algebra Tools