Math & trig function

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)
ArgumentWhat it means
numberRequiredA 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

B3fx=LN(2)/B2
AB
1InputValue
2Growth rate0.07
39.90

Result: 9.90

At 7% continuous growth a quantity doubles in about 9.90 years (2 decimals).

2Log return of a share

D2fx=LN(C2/B2)
ABCD
1SharePrice startPrice end
2ACME50547.70%

Result: 7.70%

LN(1.08) ≈ 0.0770, shown as 7.70% with a percentage format. The simple return is 8%.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
FinnishLUONNLOG