Logarithms: LOG, LN, and LOG10

Excel Formulas › Math

All versionsLOG

Logarithms answer “what power gives this number?” LN is the natural log (base e), LOG10 is base 10, and LOG lets you pick any base — for growth rates, decibels, and pH.


Quick formula: log of A2 in a chosen base B2:
=LOG(A2, B2)
LOG(value, base). LN(value) is base e; LOG10(value) is base 10.

Functions used (tap for the full reference guide):

The example

LOG of 1000 base 10 = 3.

AB
1ExpressionResult
2LOG10(1000)3
3LN(e)1

The formula

The formula:

=LOG(A2, B2) // any base

How it works

How it works:

  1. LN(value) is the natural log (base e) — used in continuous growth and decay.
  2. LOG10(value) is base 10 — orders of magnitude, decibels, pH.
  3. LOG(value, base) takes any base.
  4. Logs turn multiplication into addition — the reason they power growth-rate and compounding math (e.g. doubling time = LN(2)/LN(1+rate)).

Change of base: any log can be written with another — LOG(x, b) = LN(x)/LN(b). And the inverse of LN is EXP; of LOG10 is 10^x; of LOG(,b) is b^x.

Try it: interactive demo

Live demo

Value and base.

LOG · LN

Variations

Natural log

Base e:

=LN(A2)

Base 10

Magnitude:

=LOG10(A2)

Doubling time

Logs in action:

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

Pitfalls & errors

Positive inputs only. Logs of zero or negative numbers error.

Base ≠ 1. LOG with base 1 is undefined.

LN vs LOG. LN is base e; LOG defaults to base 10 if you omit the base.

Practice workbook

📊
Download the free Logarithms: LOG, LN, and LOG10 practice workbook
A logarithm sheet with the LN, LOG10, and doubling-time variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I calculate a logarithm in Excel?
Use =LOG(value, base) for any base, =LN(value) for natural log (base e), or =LOG10(value) for base 10.
How do I change the base of a log?
Use the change-of-base rule: =LN(x)/LN(b) equals LOG(x, b).
Why does LOG return an error?
The value must be positive and the base can't be 1. Logs of zero or negatives are undefined.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Nth root & powers · Doubling time & Rule of 72 · Powers & roots

Function references: LOG · LN