Skip to content
Google Sheets

LN function in Google Sheets

Returns the the logarithm of a number, base e (Euler's number).

=LN(value)

LN syntax and parameters

One argument, one required.

  • valuenumberRequired

    The value for which to calculate the logarithm, base e. value must be positive.

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 Excel

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.