GintiCalcEvery calculation

LnCalc

Natural Logarithm Calculator

Enter a number — get ln, log₁₀, and log₂ with the change-of-base formula shown.

Natural log alongside log base 10 and base 2

The natural log uses base e, about 2.71828. All three logarithms of the same number are shown for comparison.

xln xlog10 xlog2 x
10.0000000.0000000.000000
20.6931470.3010301.000000
e1.0000000.4342941.442695
102.3025851.0000003.321928
1004.6051702.0000006.643856
10006.9077553.0000009.965784

Each base gives 1 for its own value - ln e, log10 of 10 and log2 of 2 all equal exactly 1 - and every base gives 0 at x = 1. ln 2 at 0.693147 is worth recognising: it is the constant in every exponential decay half-life formula, and dividing it by a growth rate gives the exact doubling time that the Rule of 72 approximates. The three columns are all proportional to each other, so converting between bases is just a fixed multiplication.

Why natural log uses e

The natural logarithm ln(x) uses base e ≈ 2.71828, Euler's number. It arises naturally in continuous growth/decay: if something grows at 100% per year compounded continuously, it multiplies by e each year. ln(x) answers 'what continuous rate for how long gives factor x?'

Change of base formula

Any logarithm can be converted: log_b(x) = ln(x)/ln(b). So log₁₀(x) = ln(x)/ln(10) and log₂(x) = ln(x)/ln(2). This is useful because most programming languages and calculators provide ln directly.

Frequently asked questions

An investment doubled in 8 years — what was the continuous annual growth rate?

If it doubled, the growth factor is 2. For continuous growth: 2 = e^(r×8), so r = ln(2)/8 ≈ 0.6931/8 ≈ 0.0866 or about 8.66% per year. The natural log converts a growth factor directly into a continuous rate.

How is ln different from log₁₀?

ln uses base e ≈ 2.718 (natural for continuous processes); log₁₀ uses base 10 (natural for orders of magnitude). ln(100) ≈ 4.605 while log₁₀(100) = 2. Calculus and most science use ln; decibels and Richter scales use log₁₀. They're related: ln(x) = log₁₀(x) × ln(10) ≈ log₁₀(x) × 2.3026.

Why does my programming language use 'log' for the natural log instead of 'ln'?

Most programming languages (Python, JavaScript, C) use Math.log() for the natural logarithm. This follows a mathematical convention where 'log' without a base defaults to ln in higher math. For base-10, they provide Math.log10(). The logarithm calculator handles all three common bases.

Last updated: September 6, 2026