Summary

The Excel LN function returns the natural logarithm of a given number.

Purpose
Get the natural logarithm of a number
Return value
The natural logarithm
Syntax
=LN(number)
  • number - A number to take the natural logarithm of.
Microsoft docs

Using the LN function

The LN function returns the natural logarithm of a given number. The natural logarithm is equivalent to log base e of a number, where e is Euler's number, a mathematical constant with the approximate value 2.71828182845904. The LN function is the inverse of the EXP function and is used to model exponential decay.

The LN function takes just one argument, number, which should be a positive number.

Examples

=LN(1) // returns 0
=LN(e) // returns 1
=LN(e^2) // returns 2

The equivalent form of the natural logarithm function is given by:

=LN(number)=LOG(number,e) // Where e ≈ 2.7128 or EXP(1)

Graphs

Below is a graph of the natural log logarithm:

Graph of the natural logarithm function.

The natural logarithm function and exponential function are the inverse of each other, as you can see in the graph below:

Graph of the natural logarithm and exponential function.

This inverse relationship can be represented with the formulas below, where the input to the LN function is the output of the EXP function:

= LN(EXP(1)) // returns 1
= LN(EXP(2)) // returns 2
= LN(EXP(n)) // returns n

See wumbo.net for a more detailed explanation of key math concepts and formulas.

Notes

  • The natural logarithm function can be defined as the area under a hyperbola.
  • The function is used in applications relating to compound interest.

Support Exceljet

Many websites (including Exceljet) have lost over half their traffic in the past year because of the crushing impact of AI on web searches. Exceljet is still at it, publishing free content each week. If you find Exceljet helpful, you can support the site and go ad-free with the Exceljet Lifetime Pass. One payment, no subscription, and ads are gone forever. Plus, you get our Excel Shortcuts video course as a thank you.

Get the Lifetime Pass

Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.