Excel LN Function – Calculating Natural Log in Excel

Sumit Bansal
Written by

Sumit Bansal is the founder of TrumpExcel.com and a 13-time Microsoft Excel MVP. He started this site in 2013 to share his passion for Excel through easy tutorials, tips, and training videos, helping you master Excel, boost productivity, and maybe even enjoy spreadsheets!

Last updated

Excel has a dedicated function to calculate the natural logarithm of a number: the LN function.

While not as common, this is a useful function for many Excel users working with scientific, engineering, statistics, or financial data.

In this article, I will show you how to use the LN function to calculate the natural log value in Excel.

Follow along with the example file

LN Function Examples.xlsx

Download

Excel LN Function – Syntax

Below is the syntax of the LN function in Excel:

=LN(number)

where the number is the argument where you provide the positive number for which you want to calculate the natural log value. This could also be a cell reference that contains the number.

The LN function can only take positive numbers as arguments. If you use zero or a negative number within this function, it returns the #NUM! error.

The natural logarithm is the logarithm to the base of the mathematical constant e (called Euler’s number with an approximate value of 2.71828).

In mathematics, the natural logarithm is the power to which e must be raised to obtain a given positive value. For example, LN(10) is approximately 2.302585, so e raised to that power is approximately 10.

Calculating Natural Log in Excel

Now, let me show you an example of how to use the LN function.

Below, I have a data set where I have some numbers in column A, and I want to calculate their natural log value and get the result in column B:

Dataset to calculate natural log in Excel using the Excel LN function

The following formula would do this:

=LN(A2)

Enter this formula in cell B2, and then copy it for all the other cells in the column.

Excel LN Function

If you have Excel 365 or Excel 2021, you can enter this single formula in cell D2 instead:

=LN(A2:A6)

Here are a couple of interesting things to note:

  • The natural log of the number 1 is 0 (as e raised to power 0 would give us 1)
  • In cell A3, I have an approximation of e, 2.718281828. Its natural log is very close to 1 and displays as 1 after rounding. The natural log of e itself is exactly 1.

Interesting Fact: The LN function in Excel is the inverse of the EXP function, which takes a number and gives us e raised to the power of that number. So if I use =LN(EXP(10)), it would give me the result as 10.

Another similar function in Excel is the LOG function that returns the logarithm of a given number using the base you specify in the formula.

In this article, I showed you how to use the Excel LN function to calculate the natural log of values.

I hope you found this article helpful.

If you have any questions about the Excel LN function or if you have any suggestions for me, do let me know in the comments section.

Other Excel articles you may also like:

Sumit Bansal

Sumit Bansal

13x Microsoft Excel MVP

Hey! I'm Sumit Bansal, founder of trumpexcel.com and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

Get the FREE 51 Excel Tips Ebook

Enter your details and the free PDF is on its way to your inbox.

Hmm, that didn't go through. Please check your email and try again.

No spam. You'll also get my weekly Excel newsletter. Unsubscribe anytime.

Check your inbox!

The ebook is on its way to your email. It usually lands within a couple of minutes.