Skip to content
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.

  1. The continuous growth rate from start value, end value, and years:

    =LN(C2 / B2) / D2

    Result0.0488

  2. Years to double at rate B2:

    =LN(2) / LN(1 + B2)

    Result14.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.