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

Understanding Logarithms

A logarithm answers the question: to what power must the base be raised to get a given number? log₁₀(1000) = 3 because 10³ = 1000. The natural log (ln) uses base e ≈ 2.718, appearing in continuous growth and decay equations. The binary log (log₂) is used in computer science to measure information and algorithmic complexity. Change-of-base: log_b(x) = log(x)/log(b), letting any calculator compute any base.

Logarithms compress large ranges: the Richter scale, decibel scale, pH scale, and stellar magnitude scale are all logarithmic. A magnitude-7 earthquake is 10× stronger than magnitude-6, not just 1 unit stronger. pH 4 is 10× more acidic than pH 5. Logarithms also solve exponential equations (compound interest, population growth, radioactive decay) and appear in entropy, information theory, and machine learning loss functions.

Key Logarithm Values

ExpressionResultWhy It Matters
log₁₀(1)0Any base: logₐ(1)=0
log₁₀(10)1Base matches argument
log₁₀(100)210²=100
log₂(8)32³=8, used in CS
ln(e)1Natural log of e
ln(1)0ln(1) always = 0

Logarithm Laws and Their Applications

Logarithms obey a set of algebraic laws that simplify complex calculations. The product rule states that the logarithm of a product equals the sum of the logarithms of its factors. The quotient rule states that the logarithm of a quotient equals the difference of the logarithms. The power rule states that the logarithm of a number raised to an exponent equals the exponent multiplied by the logarithm of the base number. These three rules, combined with the change-of-base formula (which expresses any logarithm in terms of natural or common logarithms), allow evaluation of logarithms with arbitrary bases using any scientific calculator. Logarithms appear throughout science and engineering: the Richter scale measures earthquake magnitude logarithmically, decibels measure sound intensity logarithmically, pH measures acidity logarithmically, and information entropy in computer science is calculated using the binary logarithm (base 2). Signal processing, data compression, and machine learning algorithms all rely on logarithmic mathematics. Compound interest calculations use the natural logarithm to find the time required for an investment to reach a target value at a given continuous growth rate.

Logarithm Laws Reference Table

LawFormulaExample (base 10)
Product rulelog(ab) = log a + log blog(100×10) = 2 + 1 = 3
Quotient rulelog(a/b) = log a − log blog(1000/10) = 3 − 1 = 2
Power rulelog(an) = n × log alog(10²) = 2 × 1 = 2
Change of baselogb(x) = ln(x)/ln(b)log2(8) = ln8/ln2 = 3
Identitylogb(b) = 1log10(10) = 1
Zero rulelogb(1) = 0log10(1) = 0
Have Feedback or a Suggestion? Contact Us
Top