Skip to main content
🔢 Logarithms

Logarithm Calculator

Find the logarithm of a number to any base using the change-of-base rule — plus the natural log (ln), common log (base 10) and binary log (base 2) all at once.

Any base
Natural log (ln)
log₁₀ & log₂
Change of base
100% Free
🔢 Open All Math Calculators 📖 Read the Guide

Logarithm — Quick answer

A log asks "what power gives this number?". Any base comes from the change-of-base rule.

log_b(x) = ln(x) / ln(b)
because b^(log_b x) = x

Worked example: log₂(8) = 3 (since 2³ = 8).

Common logarithms

ExpressionValue
log₂(8)3
log₁₀(1000)3
log₁₀(100)2
ln(e)1

Used for: decibels, pH, Richter, computing, growth, calculus.

🔢 Logarithm Calculator

Enter a positive number and a base (default 10). You'll also get ln, log₁₀ and log₂.

log_b(x)
Natural log (ln)
log₁₀ (common)
log₂ (binary)

⚠️ The number must be positive; the base must be positive and not 1. log_b(x) is found by change of base: ln(x) ÷ ln(b).

A logarithm is the inverse of a power: log_b(x) answers "to what power must the base b be raised to get x?". So log₂(8) = 3 because 2³ = 8. Any base can be computed from the change-of-base rule, log_b(x) = ln(x) / ln(b), which is how calculators handle custom bases. The three everyday bases are e (natural log, ln), 10 (common log) and 2 (binary log). Logs turn multiplication into addition and powers into multiplication, which is their enduring usefulness.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the change-of-base rule and logarithm laws.

The logarithm rules

Definition
log_b(x) = y means b^y = x
Change of base
log_b(x) = ln(x) / ln(b) = log(x) / log(b)
Laws
log(xy) = log x + log y · log(x/y) = log x − log y · log(xⁿ) = n log x

Because the logarithm undoes exponentiation, log_b(b) = 1 and log_b(1) = 0 for any valid base. The change-of-base rule lets you compute a log to any base from natural or common logs — divide the log of the number by the log of the base. The product, quotient and power laws step every operation down a level: products become sums, quotients become differences, and exponents come out front as multipliers, which is exactly what makes logs so handy for simplifying.

Worked example — log base 2 of 8

Scenario: compute log₂(8).

By definition
2^? = 8 → 2³ = 8, so log₂(8) = 3
By change of base
ln(8) / ln(2) = 2.0794 / 0.6931 = 3

Both routes give 3: 2 raised to the power 3 is 8. The change-of-base check uses ln(8) ≈ 2.0794 and ln(2) ≈ 0.6931, whose ratio is exactly 3. For the same number 8, the other standard logs are ln(8) ≈ 2.0794 and log₁₀(8) ≈ 0.9031. Clean powers of the base give whole-number logs — log₁₀(1000) = 3 and log₁₀(100) = 2 — while ln(e) = 1 because e is the natural base raised to the first power.

Frequently Asked Questions

What is a logarithm?

The power a base needs to reach a number. log₂(8) = 3 since 2³ = 8. Inverse of exponents.

Log to any base?

Change of base: log_b(x) = ln(x)/ln(b). log₂(8) = 2.0794/0.6931 = 3.

ln, log₁₀, log₂?

Bases e, 10 and 2. For 8: ln ≈ 2.0794, log₁₀ ≈ 0.9031, log₂ = 3.

Log rules?

log(xy)=log x+log y; log(x/y)=log x−log y; log(xⁿ)=n log x.

Log of 0 or negative?

Undefined for reals — bˣ is always positive. Enter x > 0.

Ready to perform complete calculations?

Use the full AI Calculator suite for logarithms, algebra and math with a professional PDF report.

🔢 Open Math Calculators — Free

No registration required · 350+ calculators · PDF report export