Category: FUNCTION | Updated: 2026-11-22
[LN Function] How to Calculate the Natural Logarithm of a Number
Syntax
=LN(value)
- value: A positive real number for which you want to calculate the natural logarithm.
Example Table
Examples of calculating natural logarithms for growth rate analysis and mathematical computations.
| Target Number (Col A) | Formula | Output | Explanation |
|---|---|---|---|
| 1 | =LN(A2) |
0 | Since e⁰ = 1, the result is 0 |
| 2.718281828 | =LN(A3) |
1 | Nearly equal to base e, so the result is 1 |
| 10 | =LN(A4) |
2.302585093 | e raised to approx. 2.3026 equals 10 |
=EXP(3) |
=LN(A5) |
3 | Inverse operation of the EXP function |
Common Errors and Caveats
- #NUM! error: Passing
0or a negative number returns a#NUM!error. If your cells may contain zero or negative values, handle them beforehand using a conditional function likeIF. - #VALUE! error: Occurs if you pass a text string instead of a number.
Frequently Asked Questions
Q. What is the difference between the LN and LOG functions?
A. LN is dedicated to the natural logarithm with a fixed base of Euler's number e (approx. 2.71828). LOG lets you specify any base, so "=LOG(number, EXP(1))" produces the same result as LN.
Q. Can you calculate the natural logarithm of 0 or a negative number?
A. No. Mathematically, the argument of a logarithm must be a positive number, so passing 0 or a negative value returns a #NUM! error.