Raise a number to a power, keeping integer and simple fractional exponents exact - 8^(2/3) is reported as exactly 4.
Natural Log Calculator
Compute a natural logarithm to a stated precision, with ln(1) reported as exactly 0.
- Free
- No sign-up
- Runs in your browser
Input
Must be greater than zero.
How many digits to show when the answer is irrational. An exact answer ignores this.
Banker’s rounding; the IEEE default
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter a positive number. The natural logarithm appears to the precision you set.
Questions about Natural Log Calculator
What makes e a natural base?
The function e^x is its own derivative, which makes it the base where growth and rate of growth coincide. That is why it turns up wherever a quantity grows in proportion to its own size - compound interest, radioactive decay, population models - and why calculus is simpler in base e than in any other.
Is ln(1) exactly 0?
Yes, and it is reported as exact. Any base raised to the power 0 gives 1, so the logarithm of 1 is 0 in every base. It is the only input for which the natural logarithm is rational.
How are the digits computed?
By reducing the argument into the range 1 to 2 and then using the series for the inverse hyperbolic tangent, which converges about one decimal digit per term there. The implementation is checked against mpmath at 40 digits, including for arguments as small as 0.001 and as large as 10^30.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Natural Log Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Natural Log Calculator keeps working with the network switched off and nothing is ever sent to a server.
Related tools
Other tools you might reach for next.
Find a square root, reported exactly for a perfect square and to a stated precision otherwise.
Find a cube root, including of negative numbers, reported exactly for a perfect cube.
Find any integer root of a number, reported exactly when the number is a perfect power of that index.
Compute a logarithm in any base, reporting an exact whole number when there is one - log10(1000) is exactly 3.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.