Log Calculator

Enter a positive number to get log base 10, natural log (ln), log base 2, and any custom base.

Logarithm — Guide

What is a logarithm?

logᵉ(x) = y  ⇔  by = x  —  "To what power must b be raised to get x?"

Key identities

log(a × b) = log a + log b  •  log(a / b) = log a − log b  •  log(an) = n × log a

Change of base

logᵉ(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b)

Quick reference

xlog₁₀(x)ln(x)log₂(x)
1000
20.3010.6931
1012.3033.322
10024.6056.644
100036.9089.966

Related Calculators

Common Uses of Logarithms

Logarithms convert multiplication into addition and exponentiation into multiplication, which made them indispensable before calculators existed. Today they appear in: the Richter scale for earthquakes (each unit = 10× more energy), decibels for sound (a 10 dB increase = 10× louder), pH in chemistry (pH = −log[H⁺]), and information theory (Shannon entropy uses log₂). In finance, continuous compounding uses the natural logarithm: A = Pe^(rt), and ln is its inverse.

In machine learning, log-loss (cross-entropy) measures how well a probability model predicts outcomes. Log scales are also used in charts when data spans many orders of magnitude.

Logarithm Rules Quick Reference

RuleFormulaExample
Productlog(ab) = log a + log blog(100×10) = 2+1 = 3
Quotientlog(a/b) = log a − log blog(1000/10) = 3−1 = 2
Powerlog(aⁿ) = n·log alog(10³) = 3·1 = 3
Change of baselog_b(x) = ln x / ln blog₂(8) = ln8/ln2 = 3
Have Feedback or a Suggestion? Contact Us
Top