Log Calculator
Calculate logarithms with any custom base, natural logarithm (base e), common log (base 10), and binary log with change-of-base rules.
All formulas and computation matrices for this calculator execute directly in your browser with zero latency. Enter your parameters to see instant results.
Who Uses This Calculation & Why Accuracy Matters
Acoustic engineers, seismologists, biochemists, computer scientists, and mathematicians use this logarithm calculator to evaluate natural logarithms (ln), common logarithms (log₁₀), binary logarithms (log₂), and custom-base logarithms (log_b x), solve logarithmic equations, and compute decibels, pH, and Richter magnitudes.
A biochemist measuring hydrogen ion concentration [H⁺] = 3.2 × 10⁻⁵ M in a laboratory enzymatic buffer solution.
A software engineer determining maximum comparison steps required to search an ordered array of 1,000,000 elements.
A geophysicist comparing a magnitude 7.0 earthquake to a magnitude 4.0 tremor.
Common Logarithmic Bases & Real-World Applications
The primary logarithmic bases utilized across scientific disciplines.
| Base Notation | Mathematical Name | Base Constant (b) | Inverse Operation | Primary Scientific Domain |
|---|---|---|---|---|
| log₁₀(x) | Common / Briggsian Logarithm | 10 | 10ˣ | Acoustic Decibels (dB), Chemistry pH, Earthquake Richter scale |
| ln(x) or log_e(x) | Natural / Napierian Logarithm | e ≈ 2.71828... | eˣ | Calculus, continuous compounding, physics radioactive decay |
| log₂(x) or lb(x) | Binary Logarithm | 2 | 2ˣ | Computer science, Shannon information entropy, binary search trees |
| log_b(x) | Arbitrary Base Logarithm | Any b > 0, b ≠ 1 | bʸ | General exponential equation solving, music pitch semitones (base 2^(1/12)) |
* ISO 80000-2 designates lb for base 2, ln for base e, and lg for base 10.
Logarithm Properties & Change of Base Theorem
A logarithm answers the question: "To what power must base b be raised to equal x?" The Change of Base formula resolves arbitrary bases using natural or common logarithms.
Positive real number not equal to 1.
Must be strictly positive (x > 0) in the real number system.
The resulting exponent.
Step-by-Step Worked Examples with Real Numbers
Worked Example 1: Evaluating Arbitrary Base Using Change of Base
Exact integer result.
Change of base verification.
Worked Example 2: Chemistry pH Calculation
Common log evaluation.
Result indicates strong dietary acidity.
Assumptions, Edge Cases & Common Calculation Mistakes
ℹ Underlying Algorithm Assumptions
- Assumes real-valued domain; arguments must be strictly positive (x > 0).
- Assumes base is positive and not equal to 1 (b > 0, b ≠ 1).
- Assumes base-10 when "log" is written without an explicit subscript in engineering.
⚠ 3 Common Mistakes to Avoid
- Attempting to evaluate log of zero or a negative number in real mode, which returns an error.
- Distributing logarithm across addition: log(a + b) is NOT equal to log(a) + log(b).
- Confusing `ln` (base e) with `log` (base 10); using the wrong key causes a 2.3026x scaling error.