Skip to main content

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.

? The number to take the logarithm of. Must be strictly positive (x > 0).
Logarithm Evaluation
log₁₀(100) = 2
Natural Log: ln(100) ≈ 4.605170 | Binary Log: log₂(100) ≈ 6.643856
Mathematical Breakdown
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
1. Change of Base Formula Proof: log₁₀(100) = ln(100) ÷ ln(10) log₁₀(100) = 4.605170 ÷ 2.302585 = 2.000000
2. Exponential Relationship: bʸ = x ⟺ 10² = 100 Base 10 raised to the power 2 yields exactly 100.
3. Instantaneous Rate of Change (Derivative): d/dx [log₁₀(x)] = 1 ÷ (x · ln(10)) d/dx [log₁₀(100)] = 1 ÷ (100 · 2.302585) ≈ 0.004343
Order of Magnitude Insight: log₁₀(100) = 2 indicates that 100 is 2 orders of magnitude (10²) above unity (1). In scientific notation, 100 = 1.0 × 10². In acoustic or signal decibels (power scale), this represents a gain of 20 dB (10 · log₁₀(100)).
* Exact real-number logarithmic evaluation based on IEEE-754 precision.
Logarithmic Function Curves & Dynamic Coordinate Plot
0 2 4 6 8 1 25 50 75 100 125 (1,0) (100, 2.000) log₁₀(x) [Active: 2.000] ln(x) [4.605] log₂(x) [6.644]

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.000000Milli scale / Strong acid pH 3
0.01 (10⁻²)-2.000000-4.605170-6.643856-2.000000Centi scale / Stomach acid pH 2
0.1 (10⁻¹)-1.000000-2.302585-3.321928-1.000000Deci scale / 10% attenuation (-10 dB)
0.5 (1/2)-0.301030-0.693147-1.000000-0.301030Half-life interval (-3.01 dB)
1 (Unity)0.0000000.0000000.0000000.000000Universal intercept (log(1) = 0, 0 dB)
2 (Doubling)0.3010300.6931471.0000000.3010301 octave / 1 bit / +3.01 dB
e (≈ 2.718282)0.4342941.0000001.4426950.434294Euler's constant / 1 natural cycle (ln(e) = 1)
10 (Decade)1.0000002.3025853.3219281.0000001 decade / 10 dB power gain
501.6989703.9120235.6438561.698970Medium amplitude scale (17 dB)
100 (Active)2.0000004.6051706.6438562.000000Century / 2 decades / +20 dB power
1000 (10³)3.0000006.9077559.9657843.000000Kilo 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, and b^(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

  1. Select Calculation Mode: Choose between "Evaluate Logarithm", "Antilog / Power (bʸ)", or "Log Equation Solver".
  2. Choose or Enter Base: Click one of the quick base pills (log₁₀, ln, log₂) or enter a custom base b > 0, b ≠ 1.
  3. Enter Argument (x): Type any positive number or adjust the range slider to see results and curves update in real time.
  4. 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

Why is the logarithm of a negative number or zero undefined in real numbers?
Because any positive base b raised to any real power y (bʸ) is always strictly positive (bʸ > 0). There is no real power y such that 10ʸ = -5 or 2ʸ = 0. In complex analysis, logarithms of negative numbers involve imaginary numbers: ln(-x) = ln(x) + iπ.
Why cannot the base of a logarithm be equal to 1?
If the base were 1, then 1ʸ = 1 for every real number y. Therefore, log₁(5) has no solution because 1 raised to any power is always 1, never 5. Furthermore, the change of base formula would divide by ln(1) = 0, causing division by zero.
What is the relationship between ln(x) and log₁₀(x)?
By the change-of-base rule, ln(x) = log₁₀(x) · ln(10) ≈ 2.302585 · log₁₀(x). Conversely, log₁₀(x) = ln(x) / ln(10) ≈ 0.434294 · ln(x).
What is an antilogarithm?
An antilogarithm is simply the base raised to the power of the logarithm: if log_b(x) = y, then antilog_b(y) = bʸ = x. For common logs, antilog₁₀(3) = 10³ = 1,000. For natural logs, antiln(2) = e² ≈ 7.389056.
How does the change-of-base formula work on standard calculators?
Standard scientific calculators often only possess buttons for ln and log₁₀. To evaluate a custom base like log₅(125), evaluate ln(125) ÷ ln(5) = 4.828314 ÷ 1.609438 = 3.000000.
✓ Copied to Clipboard!