Natural Logarithm Calculator - ln(x) with Steps

Plain numbers, scientific notation (4.7e6), fractions (1/3) and constants (e, pi) all work.

Natural logarithm

ln(1,000) = 6.907755279

Check it backwards: e raised to 6.907755 gives 1,000 — the number you started with, which is exactly what “logarithm” means.

log₁₀(x) — common log

3

ln(x) ÷ 2.302585 — the “log” key on a school calculator.

log₂(x) — binary log

9.96578428

ln(x) ÷ 0.693147 — bits needed to index x items.

e raised to x

1.9701 × 10⁴³⁴

Past the range of a normal double, so this is computed from its exponent instead.

Where your value sits on the ln curve

05001,0000246
y = ln(x) your value landmarks: (1, 0) and (e, 1)

The same answer, split the way you would do it on paper

x = 1 × 10³

ln(x) = ln(1) + 3 × ln(10)

ln(x) = 0 + 6.907755 = 6.907755

Only the mantissa needs a lookup — the exponent contributes whole multiples of ln(10) = 2.302585. This is also the only way to get ln of a number too large to store, such as 10⁴⁰⁰.

Reciprocal

ln(1/x) = −ln(x) = −6.90775528

Slope of ln at this point

d/dx ln(x) = 1/x = 0.001

How to Use This Calculator

  1. Pick a tab. Evaluate ln(x) takes a number and gives its logarithm, Solve for x digs x back out of an equation, and ln ⇄ log moves one value between bases.
  2. In Value of x you can type more than a plain number: 4.7e6, 1/3, 2^32 and e^3 are all read correctly.
  3. Read the emerald box for ln(x), then the three cards underneath for log₁₀(x), log₂(x) and e raised to the same input. Open Reference values when you need ln 1 to ln 10 for hand working.
  4. To solve an equation, match it to a·ln(b·x + c) + d = k and fill the five coefficient boxes — for the bare equation ln(x) = k, that is a = 1, b = 1, c = 0, d = 0. The preset buttons load worked shapes.
  5. The numbered steps show exactly what to write in an exam: strip d, divide by a, exponentiate, then finish with ordinary algebra.
  6. In ln ⇄ log, tell the selector which quantity you already hold. Enter 3 as a log₁₀ value and it recovers x = 1000 and ln(x) = 6.907755.

Share this calculator

Help others solve their calculations

Found this calculator helpful? Share it with your friends, students, or colleagues who might need it!

Natural Logarithm Calculator: What Makes Base e the Natural Choice

About the Author

Marko Šinko - Co-Founder & Lead Developer

Marko Šinko

Co-Founder & Lead Developer, AI Math Calculator

Lepoglava, Croatia
Advanced Algorithm Expert

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, ensuring precise mathematical computations and reliable calculator tools.

📅 Published:
Natural logarithm calculator graphic showing the ln curve climbing steeply from zero, crossing the axis at x = 1, then flattening out

A natural logarithm calculator and the log key on the same keypad disagree by a factor of 2.302585, and both are right. ln(1000) = 6.907755. log(1000) = 3. They answer different questions, and pressing one where the other belongs is the quietest way a decay problem, a pH figure or a growth rate ends up wrong without ever looking wrong.

The definition itself is short: ln(x) asks what power of e = 2.718281828 produces x. Everything below follows from that — where the strange base comes from, how to move between ln and log, how to pull x back out from inside a logarithm, and the two places where a natural log calculator quietly drops digits you were relying on.

Why Would Anyone Pick 2.71828 as a Base?

Nobody picked it. It fell out of a compounding question. Put $1 somewhere paying 100% a year and split the year into n equal pieces, and after a year you hold (1 + 1/n)n. Splitting the year finer keeps paying more, but the extra shrinks fast:

Compoundedn$1 becomesGain over the row above
Annually12.000000
Quarterly42.441406+0.441406
Monthly122.613035+0.171629
Daily3652.714567+0.101532
Hourly8,7602.718127+0.003559
Continuously2.718282+0.000155

That ceiling is e. It matters because of what happens when you differentiate. The derivative of ex is ex — the function equals its own rate of change, and no other base does that. Try base 2 and you drag a constant along forever: d/dx 2x = 2x × 0.693147. The mirror image holds for logs, where d/dx ln(x) = 1/x exactly while d/dx log₁₀(x) = 1/(x × 2.302585). Every stray 0.693 and 2.303 in a calculus problem is the price of using a base that is not e. If you want to poke at the (1 + 1/n)n side directly, the exponent calculator handles powers of any size. The full history is on Wikipedia’s natural logarithm page, where the notation is traced back to Nicholas Mercator in 1668.

ln, log or log₂ — Which One Does Your Keypad Mean?

“log” is not one symbol. It is three, wearing the same coat, and which base it means depends entirely on who wrote it down.

WrittenBaseWhere you meet itTo get ln, multiply by
ln xeCalculus, growth and decay, statistics1
log x10School maths, pH, decibels, Richter2.302585
log xePure maths papers, Python’s math.log, R1
lg x, log₂ x2Computer science, information theory0.693147
log_b xbAnything elseln(b)

One identity covers the whole table: logb(x) = ln(x) ÷ ln(b). Check it on a number. log₁₀(50) = 1.698970 and ln(50) = 3.912023; divide and you land on 2.302585 to the last digit shown, which is exactly ln(10). The ratio never depends on x — that is why a single fixed multiplier converts an entire column of logs. For bases outside 10, 2 and e, hand it to the change of base calculator rather than reaching for a table.

Splitting a Number Before You Take Its Log

Write x in scientific notation and its logarithm falls apart into two easy pieces. For x = 4.7 × 106:

ln(4,700,000) = ln(4.7) + 6 × ln(10)

= 1.5475625 + 13.8155106

= 15.3630731

Only the mantissa needs looking up, and it is always between 1 and 10. Nine values cover every number you will ever meet:

x2345678910
ln x0.69311.09861.38631.60941.79181.94592.07942.19722.3026

Notice ln 4 = 2 × ln 2 and ln 8 = 3 × ln 2 and ln 9 = 2 × ln 3, so you really only need ln 2, ln 3, ln 5 and ln 7. This split is not just a party trick for exams — it is the only route to the logarithm of a number too large to store. A browser gives up somewhere past 1.8 × 10308, so 10400 never exists as a number at all, yet its logarithm is a perfectly ordinary 400 × 2.302585 = 921.034. The scientific notation calculator is the quickest way to get a messy figure into mantissa-and-exponent form first.

Getting x Out From Inside ln

There is one move: make the equation read ln(something) = a number, then raise e to both sides. Take 3ln(2x − 1) + 4 = 10.

3ln(2x − 1) = 6

ln(2x − 1) = 2

2x − 1 = e² = 7.389056

x = 4.194528

Check it: 2(4.194528) − 1 = 7.389056, ln of that is 2, times 3 is 6, plus 4 is 10. Because e raised to anything is positive, the argument 2x − 1 comes out positive automatically — a single-logarithm equation cannot produce a false root.

Two logarithms is a different story. Solve ln(x) + ln(x − 3) = ln(10). Combining the left side gives ln(x² − 3x) = ln(10), so x² − 3x − 10 = 0, so (x − 5)(x + 2) = 0 and x = 5 or x = −2. Now test them. At x = 5 both original terms are defined: ln(5) + ln(2) = 1.609438 + 0.693147 = 2.302585 = ln(10). ✓ At x = −2 the very first term is ln(−2), which does not exist over the reals. That root is an artefact of the combining step, not a solution, and it has to be thrown away. The combining itself belongs to the log laws — the condense logarithms calculator merges terms into one and the expand logarithms calculator breaks them back apart.

Why Economists Write Every Growth Rate as a Log Difference

Subtract two natural logs and you get something very close to a percentage change: ln(b) − ln(a) ≈ (b − a)/a. Revenue moving from 120 to 132 gives ln(132) − ln(120) = 0.095310, and the true change is 10%. Close, but not equal, and the gap grows:

Actual changeLog differenceUnderstates by
+1%0.0099500.5%
+5%0.0487902.4%
+10%0.0953104.7%
+20%0.1823228.8%
+50%0.40546518.9%
+100%0.69314730.7%

So under about 10% the approximation is fine and past 20% it is not. Economists keep using log differences anyway, for a reason that has nothing to do with the approximation: they are symmetric and they add. A 10% rise followed by a 10% fall leaves you at 99, not 100 — but +0.09531 followed by −0.09531 is exactly zero. And four quarterly log changes sum to the annual log change, whereas four percentage changes have to be compounded. That is also why stock charts get drawn on log axes: equal vertical distances then mean equal proportional moves, no matter where on the chart they sit.

ln(2) = 0.693 Is Where the Rule of 70 Comes From

Anything growing continuously at rate r doubles when ert = 2, so t = ln(2)/r = 0.693147/r. Express r as a percentage and that is 69.3/r — which somebody rounded to 70 because it divides more nicely, and somebody else rounded to 72 because 72 has more whole-number factors.

RateExact ln(2)/rRule of 70Rule of 72
2%34.66 yr35.036.0
5%13.86 yr14.014.4
7%9.90 yr10.010.3
15%4.62 yr4.674.80

Decay is the same equation with the sign flipped: half-life = ln(2)/λ. Carbon-14 decays at λ = 1.2097 × 10−4 per year, and 0.693147 ÷ 0.00012097 = 5,730 years — the number quoted in every archaeology paper, derived from one logarithm. Run your own isotope through the half-life calculator if you would rather not do the division by hand.

Where a Natural Logarithm Calculator Quietly Loses Digits

Two failure modes, and neither announces itself. The first is arguments very close to 1. A double holds about 15.9 significant digits, so 1 + 1×10−17 is stored as exactly 1 — the information is gone before the logarithm is ever computed, and ln returns 0 instead of 1×10−17. Even at 1 + 1×10−9, where the answer survives, you have thrown away nine of your digits to the cancellation. This is why every serious numerical library ships a separate log1p function that takes the small quantity directly. If you are computing ln(1 + δ) for δ below about 10−7 — continuously compounded interest on a daily basis, small returns, perturbation terms — feed δ to log1p rather than handing 1 + δ to ln.

The second is the opposite end. Nothing above 1.8 × 10308 exists as a double, so an expression like ln(200!) computed by first forming 200! returns Infinity. Split it instead, exactly as in the mantissa section above, and the answer is a comfortable 863.232. The calculator on this page does the same thing internally: when e raised to your input would overflow, it reports the answer as a mantissa and an exponent rather than throwing up its hands.

Two boundaries are worth committing to memory. ln(0) is undefined — the curve dives to −∞ as x approaches zero from the right, but never gets there. And ln of a negative number has no real value at all, since e to any real power stays positive. Over the complex numbers it does exist, with ln(−1) = πi, which is Euler’s identity in another outfit. Once you are differentiating expressions with logarithms in them rather than just evaluating them, the logarithmic differentiation calculator takes over — taking ln first turns an ugly product into a sum, which is kinder to your algebra and to the floating-point arithmetic underneath it.

Frequently Asked Questions

Still Have Questions?

The detailed content on this page provides comprehensive explanations and examples to help you understand better.