Logarithm Calculator (ln, log10, log2, logb)
Evaluate natural logarithms (ln), common logarithms (log₁₀), binary logarithms (log₂), and custom base logarithms (log_b) with step-by-step change of base formulas and interactive function curve plots.
| Input Argument (x) | 100 |
| Selected Base (b) | 10 (Common Log) |
| Calculated Logarithm (y) | 2 |
| Exponential Verification | 10² = 100 |
| Natural Logarithm ln(x) | 4.605170 |
| Binary Logarithm log₂(x) | 6.643856 |
| Characteristic & Mantissa | Char: 2 | Mant: 0.000000 |
| Reciprocal Base Log (log_x(b)) | log₁₀₀(10) = 0.5 |
log₁₀(100) = ln(100) ÷ ln(10)
log₁₀(100) = 4.605170 ÷ 2.302585 = 2.000000
bʸ = x ⟺ 10² = 100
Base 10 raised to the power 2 yields exactly 100.
d/dx [log₁₀(x)] = 1 ÷ (x · ln(10))
d/dx [log₁₀(100)] = 1 ÷ (100 · 2.302585) ≈ 0.004343
Logarithmic Scale Benchmarks & Reference Table
Compare how standard orders of magnitude behave across Common (log₁₀), Natural (ln), and Binary (log₂) logarithmic systems.
| Argument (x) | log₁₀(x) (Common) | ln(x) (Natural) | log₂(x) (Binary) | Active Base (log₁₀) | Domain & Scientific Meaning |
|---|---|---|---|---|---|
| 0.001 (10⁻³) | -3.000000 | -6.907755 | -9.965784 | -3.000000 | Milli scale / Strong acid pH 3 |
| 0.01 (10⁻²) | -2.000000 | -4.605170 | -6.643856 | -2.000000 | Centi scale / Stomach acid pH 2 |
| 0.1 (10⁻¹) | -1.000000 | -2.302585 | -3.321928 | -1.000000 | Deci scale / 10% attenuation (-10 dB) |
| 0.5 (1/2) | -0.301030 | -0.693147 | -1.000000 | -0.301030 | Half-life interval (-3.01 dB) |
| 1 (Unity) | 0.000000 | 0.000000 | 0.000000 | 0.000000 | Universal intercept (log(1) = 0, 0 dB) |
| 2 (Doubling) | 0.301030 | 0.693147 | 1.000000 | 0.301030 | 1 octave / 1 bit / +3.01 dB |
| e (≈ 2.718282) | 0.434294 | 1.000000 | 1.442695 | 0.434294 | Euler's constant / 1 natural cycle (ln(e) = 1) |
| 10 (Decade) | 1.000000 | 2.302585 | 3.321928 | 1.000000 | 1 decade / 10 dB power gain |
| 50 | 1.698970 | 3.912023 | 5.643856 | 1.698970 | Medium amplitude scale (17 dB) |
| 100 (Active) | 2.000000 | 4.605170 | 6.643856 | 2.000000 | Century / 2 decades / +20 dB power |
| 1000 (10³) | 3.000000 | 6.907755 | 9.965784 | 3.000000 | Kilo scale / 3 decades / +30 dB power |
About This Calculator
The Logarithm Calculator is an authoritative mathematical utility designed to compute, analyze, and visualize logarithmic expressions across all standard bases—including the Natural Logarithm (ln, base e ≈ 2.718281828459), Common Logarithm (log₁₀, base 10), Binary Logarithm (log₂, base 2), and any arbitrary custom base (log_b). A logarithm answers the fundamental question: "To what power must we raise base b to produce number x?" Mathematically, log_b(x) = y ⟺ bʸ = x.
Mathematical Laws & Practical Worked Examples
Logarithms obey key algebraic properties that compress multiplicative operations into additive operations:
- Product Rule:
log_b(M · N) = log_b(M) + log_b(N) - Quotient Rule:
log_b(M / N) = log_b(M) - log_b(N) - Power Rule:
log_b(M^k) = k · log_b(M) - Change of Base Formula:
log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b) - Identity Rules:
log_b(1) = 0,log_b(b) = 1, andb^(log_b(x)) = x
Real-World Practical Worked Examples:
Example 1 (Acoustics & Sound Decibels): An audio amplifier produces an output power of 100 Watts relative to a 1 Watt reference. What is the power gain in decibels (dB)?
dB = 10 · log₁₀(P_out / P_ref) = 10 · log₁₀(100 / 1) = 10 · 2 = 20 dB.
Example 2 (Chemistry & pH Scale): A laboratory solution has a hydrogen ion concentration of [H⁺] = 1 × 10⁻⁵ mol/L. What is its pH?
pH = -log₁₀[H⁺] = -log₁₀(10⁻⁵) = -(-5) = 5.0 (Acidic).
Example 3 (Computer Science & Binary Search): How many comparisons does binary search take to find an element in a sorted list of 1,000,000 items?
Steps = ⌈log₂(1,000,000)⌉ = ⌈19.931⌉ = 20 comparisons maximum.
How to Use This Calculator
- Select Calculation Mode: Choose between "Evaluate Logarithm", "Antilog / Power (bʸ)", or "Log Equation Solver".
- Choose or Enter Base: Click one of the quick base pills (log₁₀, ln, log₂) or enter a custom base b > 0, b ≠ 1.
- Enter Argument (x): Type any positive number or adjust the range slider to see results and curves update in real time.
- Analyze Algebraic Steps & Curves: Inspect the change-of-base verification, characteristic/mantissa breakdown, and interactive coordinate function plot.
Important Mathematical Terms
Argument (x): The positive input quantity whose logarithm is being evaluated. Logarithms of zero or negative numbers are undefined in real numbers.
Base (b): The reference base raised to an exponent. Must be positive and not equal to 1.
Natural Logarithm (ln): Logarithm with base e (Euler's number, e ≈ 2.718281828459). Found ubiquitously in continuous growth, decay, physics, and calculus.
Common Logarithm (log₁₀): Base-10 logarithm. Basis of scientific notation, the Richter magnitude scale, sound decibels, and chemical pH.
Binary Logarithm (log₂): Base-2 logarithm. Central to information theory, Shannon entropy, computer bit depth, and algorithmic time complexity.
Antilogarithm: The inverse operation of a logarithm: antilog_b(y) = bʸ.
Characteristic & Mantissa: In base 10, the characteristic is the integer part of the logarithm (reflecting the power of 10), and the mantissa is the non-negative decimal fraction.
Frequently Asked Questions
ln(x) = log₁₀(x) · ln(10) ≈ 2.302585 · log₁₀(x). Conversely, log₁₀(x) = ln(x) / ln(10) ≈ 0.434294 · ln(x).ln(125) ÷ ln(5) = 4.828314 ÷ 1.609438 = 3.000000.