LN function
Returns the natural logarithm (base e) of a positive number; the inverse of EXP.
Available in All versions of Excel, Excel for the web, Excel for Mac
In every Excel versionWorks in Google Sheets
Syntax
LN(number)| Argument | What it means | |
|---|---|---|
number | Required | A positive number. |
Returns: The power to which e must be raised to get number.
How LN works
LN answers the question "e to what power gives this number?". LN(EXP(3)) is 3 and LN(1) is 0. Natural logarithms turn multiplication into addition and growth into straight lines, which is why they are used for continuously compounded returns, doubling times, elasticity and log-scale regressions.
In finance the log return LN(new/old) is popular because log returns of consecutive periods simply add up. In planning, LN(2)/rate gives the time needed to double at a continuous growth rate. The argument must be greater than zero; zero or negative values return #NUM!. For base-10 logarithms use LOG10, for any base LOG.
Examples
1Doubling time at continuous growth
| A | B | |
|---|---|---|
| 1 | Input | Value |
| 2 | Growth rate | 0.07 |
| 3 | 9.90 |
Result: 9.90
At 7% continuous growth a quantity doubles in about 9.90 years (2 decimals).
2Log return of a share
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Share | Price start | Price end | |
| 2 | ACME | 50 | 54 | 7.70% |
Result: 7.70%
LN(1.08) ≈ 0.0770, shown as 7.70% with a percentage format. The simple return is 8%.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | The number is 0 or negative. | Check the data; prices and quantities must be positive. |
Tips
- Turn a log back into a value with EXP.
- Plot
LN(sales)to see whether growth is steady: a constant growth rate becomes a straight line.
Google Sheets
LN also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
LN in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Finnish | LUONNLOG |