Logarithm Calculator — Log, Natural Log & Change of Base

Calculate logarithms of any base instantly. Find common log (base 10), natural log (base e), antilogarithm, and apply logarithm rules. Solve exponential equations.

Logarithm Calculator — Overview

Logarithm is the inverse of exponent. If 2³ = 8, then log₂(8) = 3. Logarithms appear everywhere: measuring earthquake intensity (Richter scale), sound loudness (decibels), pH in chemistry, star brightness in astronomy, and compound interest calculations.

Key Insight: Logarithm answers the question: "What exponent do I need?" For example, "What power of 10 gives 1000?" Answer: 3 (because 10³ = 1000, so log₁₀(1000) = 3).

Common Types:

  • Common Logarithm (log): Base 10. log(100) = 2 (because 10² = 100).
  • Natural Logarithm (ln): Base e ≈ 2.718. ln(e) = 1.
  • Binary Logarithm (log₂): Base 2. log₂(8) = 3 (because 2³ = 8).
  • Any Base: log₅(125) = 3 (because 5³ = 125).
  • Antilogarithm: Inverse operation. If log(x) = 2, then x = 10² = 100.

This calculator handles: (1) common logarithm (base 10), (2) natural logarithm (base e), (3) logarithm of any base, (4) antilogarithm, (5) change of base formula, (6) logarithm properties, and (7) solving exponential equations.

Logarithm Calculator

Find log₁₀(x)

What Is a Logarithm? — Definition & Inverse of Exponents

Logarithm Definition: The exponent to which a base must be raised to produce a given number. Inverse of exponential function.

Relationship to Exponents:

  • Exponential form: base^exponent = result → 2³ = 8
  • Logarithmic form: log_base(result) = exponent → log₂(8) = 3
  • They're inverses: if 2³ = 8, then log₂(8) = 3

Notation:

  • log₁₀(x) or log(x) = common logarithm (base 10)
  • ln(x) or log_e(x) = natural logarithm (base e ≈ 2.718)
  • log₂(x) = binary logarithm (base 2)
  • log_b(x) = logarithm to base b

Key Property: logₐ(b) = c means a^c = b. Logarithm answers: "What power of a gives b?"

Logarithm Formulas Explained

Basic Logarithm Definition

log_b(x) = y ⟺ b^y = x
Example: log₂(8) = 3 because 2³ = 8

Common Logarithm (Base 10)

log(x) = log₁₀(x)
Example: log(1000) = 3 (because 10³ = 1000)

Natural Logarithm (Base e)

ln(x) = log_e(x) where e ≈ 2.71828
Example: ln(e) = 1 (because e¹ = e)

Change of Base Formula

log_b(x) = log_a(x) ÷ log_a(b)
Convert any base to another base. Example: log₂(8) = log₁₀(8) ÷ log₁₀(2)

Antilogarithm (Inverse)

antilog_b(y) = b^y
Example: antilog₁₀(2) = 10² = 100

Calculate Logarithms Manually — Step by Step

Example: Find log₂(8)

Step 1: Set Up the Equation

log₂(8) = ? means 2^? = 8

Step 2: Find What Power Gives Result

2¹ = 2, 2² = 4, 2³ = 8 ✓

Step 3: Result

log₂(8) = 3

Example 2: Find log₁₀(100)

Step 1: Set Up the Equation

log₁₀(100) = ? means 10^? = 100

Step 2: Find What Power Gives Result

10¹ = 10, 10² = 100 ✓

Step 3: Result

log₁₀(100) = 2

Logarithm Properties & Rules

Property 1: Product Rule

log_b(x × y) = log_b(x) + log_b(y)
Logarithm of product = sum of logarithms.
Example: log₁₀(100 × 10) = log₁₀(100) + log₁₀(10) = 2 + 1 = 3

Property 2: Quotient Rule

log_b(x ÷ y) = log_b(x) - log_b(y)
Logarithm of quotient = difference of logarithms.
Example: log₁₀(100 ÷ 10) = log₁₀(100) - log₁₀(10) = 2 - 1 = 1

Property 3: Power Rule

log_b(x^n) = n × log_b(x)
Logarithm of power = exponent times logarithm.
Example: log₁₀(100²) = 2 × log₁₀(100) = 2 × 2 = 4

Property 4: Change of Base

log_b(x) = log_a(x) ÷ log_a(b)
Convert logarithm from one base to another.
Example: log₂(8) = ln(8) ÷ ln(2) ≈ 2.079 ÷ 0.693 = 3

Property 5: Special Values

log_b(1) = 0 (any base to the 0 power = 1)
log_b(b) = 1 (any base to the 1 power = base)
log_b(b^n) = n (base to n power)

Property 6: Inverse Relationship

b^(log_b(x)) = x (exponent "undoes" logarithm)
log_b(b^x) = x (logarithm "undoes" exponent)

Real-World Logarithm Examples

Example A: Richter Scale (Earthquakes)

Richter Scale measures earthquake intensity logarithmically. Each unit represents 10x more energy.

  • Magnitude 5 = 10^5 = 100,000 (relative units)
  • Magnitude 6 = 10^6 = 1,000,000 (10x stronger)
  • Magnitude 7 = 10^7 = 10,000,000 (100x stronger than 5)
  • Formula: M = log₁₀(amplitude)

Example B: Decibels (Sound Loudness)

Sound intensity measured in decibels using logarithm.

  • Whisper: 30 dB
  • Normal conversation: 60 dB (1000x louder than whisper)
  • Jet engine: 140 dB (10,000,000,000x louder than whisper)
  • Formula: dB = 10 × log₁₀(intensity ratio)

Example C: Compound Interest (Continuous)

When money compounds continuously, logarithm helps find time.

  • Formula: A = Pe^(rt) where t is time
  • If $1000 becomes $2000 at 5% annual rate: ln(2) = 0.05t → t = ln(2)/0.05 ≈ 13.86 years
  • Logarithm solves exponential equation

Example D: pH in Chemistry

pH measures acidity/alkalinity using logarithm.

  • pH = -log₁₀[H⁺] where [H⁺] is hydrogen ion concentration
  • pH 7 = neutral (10⁻⁷ mol/L)
  • pH 1 = very acidic (10⁻¹ mol/L) — 1,000,000x more acidic than neutral
  • Each unit difference = 10x change in acidity

Common Log (Base 10) vs Natural Log (Base e)

Common Logarithm (log or log₁₀): Base 10. Used in engineering, chemistry, and practical applications.

  • log(10) = 1, log(100) = 2, log(1000) = 3
  • Easy to remember: log of powers of 10 = the exponent
  • Used in: pH scale, Richter scale, decibels, pH

Natural Logarithm (ln or log_e): Base e ≈ 2.71828. Used in calculus, exponential growth/decay, and higher mathematics.

  • ln(e) = 1, ln(e²) = 2
  • Appears naturally in: compound interest, radioactive decay, population growth
  • The derivative of ln(x) = 1/x, which is elegant in calculus

Why Two Types? Historical reasons and practical convenience. Base 10 is easier for mental math and engineering (powers of 10). Base e appears naturally in mathematics and physics (exponential and logarithmic functions).

Conversion: log₁₀(x) = ln(x) ÷ ln(10) or ln(x) = log₁₀(x) × ln(10)

Common Logarithm Mistakes

Mistake 1: Confusing log and ln

❌ Wrong: "log means natural logarithm"
✅ Correct: In most contexts, log = base 10. ln = natural log (base e)

Mistake 2: Forgetting Logarithm Only Works for Positive Numbers

❌ Wrong: log(-5) = ?
✅ Correct: Logarithm undefined for negative numbers or zero (in real numbers)

Mistake 3: Adding Instead of Multiplying in Product Rule

❌ Wrong: log(2 × 3) = log(2) × log(3)
✅ Correct: log(2 × 3) = log(2) + log(3) (product rule)

Mistake 4: Forgetting Exponent in Power Rule

❌ Wrong: log(2³) = log(2³) = 3 (wrong, didn't apply rule)
✅ Correct: log(2³) = 3 × log(2)

Mistake 5: Misreading Change of Base Formula

❌ Wrong: log_b(x) = log_a(b) ÷ log_a(x) (backwards)
✅ Correct: log_b(x) = log_a(x) ÷ log_a(b) (numerator is number, denominator is base)

Common Logarithm Reference Table

Number log₁₀(x) ln(x) log₂(x)
1 0 0 0
2 0.301 0.693 1
10 1 2.303 3.322
100 2 4.605 6.644
1000 3 6.908 9.966
e ≈ 2.718 0.434 1 1.443

Glossary

  • Logarithm: Exponent to which a base is raised to produce a number. Inverse of exponential.
  • Base: The number that is raised to a power in logarithmic equation.
  • Common Logarithm (log): Logarithm with base 10.
  • Natural Logarithm (ln): Logarithm with base e ≈ 2.71828.
  • Antilogarithm: Inverse of logarithm. If log(x) = 2, then antilog(2) = 10² = 100.
  • Change of Base: Formula to convert logarithm from one base to another.
  • Exponent: Power to which a base is raised. Related to logarithm inversely.
  • Logarithmic Function: Function of form y = log_b(x).
  • Exponential Equation: Equation with variable in exponent. Solved using logarithm.

Frequently Asked Questions

Q: Why is logarithm of negative numbers undefined?

Because no real exponent of positive base gives negative result. 10^x is always positive. Logarithm of negative only exists in complex numbers.

Q: What's special about the number e?

e ≈ 2.71828 is the base that makes exponential and logarithmic functions have elegant mathematical properties. Derivative of e^x is e^x. Appears naturally in compound interest, growth/decay.

Q: How do I solve 2^x = 10 using logarithm?

Take log of both sides: log(2^x) = log(10). Apply power rule: x × log(2) = log(10). Solve: x = log(10) ÷ log(2) = 1 ÷ 0.301 ≈ 3.322.

Q: What's the difference between log and ln?

log = base 10 (common logarithm), ln = base e (natural logarithm). In pure mathematics, "log" often means ln. In engineering/sciences, "log" means base 10.

Q: Can you add logarithms with different bases?

No. Product rule log_b(x) + log_b(y) = log_b(xy) only works for same base. Different bases: convert using change of base formula first.

Related Calculators