Natural Logarithm Calculator

Take the natural logarithm of any positive number, to the full precision a computer can hold, including the one case where almost every calculator quietly gets it wrong. The usual definition — "log to the base e" — has the story backwards, and it makes e look like an arbitrary constant somebody pic...

ln x = the area under y = 1/t from t = 1 to t = x

e is not picked first and the log built around it. e is the value of x at which that area first reaches 1 — the base comes out of the definition rather than going into it.

THE NUMBER

LN x

0.693147180559945

e raised to that gives 2 — exactly x again, to the last bit.

LOG₁₀ x

0.301029996

LOG₂ x

1.000000000

LOG BASE 10

0.301029996

QuantityValueWhat it is
ln x0.693147180559945the area under 1/t from 1 to x
log₁₀ x0.301029995663981ln x divided by ln 10
log₂ x1ln x divided by ln 2
e^(ln x)2x again, exactly
d/dx at x0.5the slope of ln there, which is 1/x
ln(x²)1.38629436111989exactly twice ln x, since powers come down in front

Why this one is the natural logarithm. Every logarithm is a constant multiple of every other, so as curves they are all the same shape — ln x divided by log₁₀ x is 2.302585092994046 whatever x you choose. What singles this one out is that its slope at x is exactly 1/x, with no leftover constant in front. Base 10 is convenient for counting digits and base 2 for halving, but only base e makes the calculus come out clean, which is why it turns up wherever something grows at a rate proportional to its own size.

Multiplication becomes addition, which is the entire point. ln of 2 squared is 1.38629436112, exactly twice the figure above — no multiplication was performed to get it. That is what logarithms were invented for, and it is still why they are used: numbers far too large to hold can be multiplied by adding their logs, growth at a constant percentage becomes a straight line, and quantities spanning many orders of magnitude become comparable.

THE AREA

THE NATURAL LOG IS THIS AREAthe region under y = 1/t between t = 1 and t = x1area = 0.000000e is simply the value of x at which this area first reaches exactly 1no base was chosen to get here, which is what makes this logarithm the natural one

Drag the slider and watch the area accumulate. The number it reaches is the logarithm — not an approximation of it, but what it means. Sweeping past 1 in the other direction accumulates negative area, which is why numbers below 1 have negative logs.

THE ONE PLACE THIS CALCULATION GOES WRONGrelative error of ln(1 + d), computed both ways, as d gets small1e01e-41e-81e-121e-161e11e51e91e131e17dforming 1 + d first throws away the digits; at d = 1e16 it returns exactly zerothe dashed line is half an ulp, the best any method can manage; log1p stays at or below it throughout
EVERY LOGARITHM IS THIS ONE, RESCALEDthe horizontal axis is logarithmic, which is why all three plot as straight lines through x = 1their slopes differ by a constant and nothing else: ln x ÷ log₁₀ x is 2.302585092994046 at every x

Live calculation · updates as you type

Created with❤️byeaglecalculator.com

HOW TO USE

  1. 1

    Type any positive number into x. The natural log appears immediately, along with log base 10, log base 2, and a log in whatever base you put in the base box.

  2. 2

    If your number is very close to 1, tick the box and enter d instead, where x = 1 + d. This is not a convenience — it is the only way to get the right answer, and the page shows you what the ordinary calculation would have returned.

  3. 3

    Check the round-trip line under the answer. It raises e back to the logarithm and reports how far that lands from your x, measured in units in the last place, so you can see the arithmetic close rather than take it on trust.

  4. 4

    Drag the slider to sweep the area out from 1 to x. That accumulating area is not a picture of the logarithm, it is the definition of it — which is why numbers below 1 come out negative, the region being swept the other way.

REFERENCE FORMULAS

RuleFormulaWhat it is for
Definitionln x = ∫₁ˣ dt / tThe area under 1/t from 1 to x. Everything else follows from this one line.
What e isln e = 1e is the x at which that area first equals 1. The base is a consequence, not a choice.
Productln(ab) = ln a + ln bMultiplication becomes addition. The reason logarithms were invented at all.
Quotientln(a/b) = ln a − ln bAnd division becomes subtraction, which is the same statement.
Powerln(aⁿ) = n · ln aExponents come down in front. This is what makes log scales linear in growth rate.
Change of baselogᵇ x = ln x / ln bEvery logarithm is ln scaled by a constant, so all of them have the same shape.
Derivatived/dx ln x = 1/xThe only base for which this is true with no stray constant. That is "natural".
Near oneln(1 + d) ≈ d − d²/2 + d³/3For small d, ln(1 + d) is very nearly d itself — and log1p is how to compute it.
Doubling timet = ln 2 / rContinuous growth at rate r doubles in this time. ln 2 = 0.6931471805599453.
Inversee^(ln x) = xChecked on this page every time you type, and reported in units in the last place.

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE ALGEBRA CALCULATORS

Was this calculator helpful?

Last updated: August 3, 2026 · Checked against a 60-digit fixed-point series · log1p used for values near 1 · every answer round-tripped through e^x