March 27, 20265 min read

Logarithm Calculator — Calculate Log, Ln, Log₂ of Any Number

Calculate logarithms instantly — log base 10, natural log (ln), log base 2, or any custom base. Understand log rules, properties, and real-world applications.

logarithm calculator log calculator natural log log base 2 calchub
Ad 336x280

A logarithm answers the question: "What power do I raise the base to, to get this number?" If 10² = 100, then log₁₀(100) = 2. Simple concept, endlessly useful in science, engineering, finance, and computing.

The CalcHub Logarithm Calculator computes logarithms in any base instantly.

Common Logarithm Values

Log Base 10 (Common Log)

xlog₁₀(x)Why
1010⁰ = 1
20.3010
30.4771
50.6990
10110¹ = 10
100210² = 100
1,000310³ = 1,000
10,000410⁴ = 10,000
0.1−110⁻¹ = 0.1
0.01−210⁻² = 0.01

Natural Log (ln, Base e ≈ 2.718)

xln(x)xln(x)
10102.3026
20.6931202.9957
31.0986503.9120
e (2.718)11004.6052
51.60941,0006.9078

Log Base 2 (Binary Log)

xlog₂(x)Context
102⁰ = 1
212¹ = 2
422² = 4
832³ = 8
1642⁴ = 16
3252⁵ = 32
6462⁶ = 64
12872⁷ = 128
25681 byte (8 bits)
1,024101 KB
1,048,576201 MB

Log Properties (Rules)

RuleFormulaExample
Product rulelog(a × b) = log(a) + log(b)log(20) = log(4) + log(5)
Quotient rulelog(a / b) = log(a) − log(b)log(25) = log(100) − log(4)
Power rulelog(aⁿ) = n × log(a)log(1000) = 3 × log(10) = 3
Change of baselog_b(x) = log(x) / log(b)log₂(8) = log(8)/log(2) = 3
Log of 1log(1) = 0Any base
Log of baselog_b(b) = 1log₁₀(10) = 1, ln(e) = 1
Inverseb^(log_b(x)) = x10^(log₁₀(100)) = 100

Where Logarithms Are Used

Earthquakes (Richter Scale)

Each whole number on the Richter scale = 10× more amplitude. A magnitude 7 earthquake is 10× stronger than magnitude 6 and 100× stronger than magnitude 5. This is a log₁₀ scale.

Sound (Decibels)

dB = 10 × log₁₀(P₁/P₀)
SoundDecibelsTimes Louder Than Threshold
Whisper30 dB1,000×
Normal conversation60 dB1,000,000×
Rock concert110 dB100,000,000,000×

pH (Chemistry)

pH = −log₁₀[H⁺]

pH 7 = neutral, pH 3 = 10,000× more acidic than pH 7.

Computing (Algorithm Complexity)

Binary search has O(log₂ n) complexity. Searching 1 billion items takes only log₂(1,000,000,000) ≈ 30 steps.

Finance (Rule of 72)

Doubling time ≈ 72 / interest rate (which comes from ln(2)/r ≈ 0.693/r)

At 8% interest, money doubles in ~9 years.

Information Theory (Bits)

The information content of an event with probability p is −log₂(p) bits. A coin flip (p=0.5) contains 1 bit of information.

How to Use the Calculator

  1. Open the CalcHub Logarithm Calculator
  2. Enter the number (x)
  3. Select the base (10, e, 2, or custom)
  4. See: logarithm value, with step-by-step explanation

Can you take the log of a negative number?

Not with real numbers. log(−5) is undefined in real number math. In complex analysis, it's defined using Euler's formula, but that's advanced mathematics. For practical purposes: log requires a positive input.

What's the difference between log and ln?

"log" usually means log base 10 (common log). "ln" means log base e ≈ 2.718 (natural log). In some fields (especially pure math and computer science), "log" means ln. Context matters — always check which base is intended.

Why is ln used more than log in calculus?

Because the derivative of ln(x) is simply 1/x, and the derivative of eˣ is eˣ — the cleanest possible formulas. Base 10 doesn't have this elegant property. Natural log is "natural" because it makes calculus simpler.


Ad 728x90