Excel
LN function in Excel
Returns the natural logarithm of a number
=LN(number)LN syntax and parameters
One argument, one required.
- numbernumberRequired
The positive real number for which you want the natural logarithm.
LN examples
Formulas you'll actually reuse.
The continuous growth rate from start value, end value, and years:
=LN(C2 / B2) / D2Result
0.0488Years to double at rate B2:
=LN(2) / LN(1 + B2)Result
14.21
LN in Google Sheets
Same name — your formula ports as-is.
Try LN in the playground
Edit the example — nothing to install.
Preloaded with the LN formula from Example 1 — change anything and watch it respond.
Loading the editor…
LN errors
What they mean — and the fixes.
#NUM!The number is zero or negative — LN is only defined for positive values.
Related functions
More ways Excel gets this done.
- ABSReturns the absolute value of a numberMathGoogle Sheets
- ACOSReturns the arccosine of a numberMathGoogle Sheets
- ACOSHReturns the inverse hyperbolic cosine of a numberMathGoogle Sheets
- ACOTReturns the arccotangent of a numberMathGoogle Sheets
- ACOTHReturns the hyperbolic arccotangent of a numberMathGoogle Sheets
- AGGREGATEReturns an aggregate in a list or databaseMathNo Google Sheets equivalent