Function · Powers and logs

Excel LOG function

The Excel LOG function returns a logarithm in the base you choose. LOG(1000, 10) is 3. LOG(8, 2) is 3. Leave the base off and it is 10.

All current Excel versions. Also in Excel for the web and Google Sheets.

Syntax =LOG(number, [base])

LOG
=LOG(1000,10)

Arguments

NameRequiredWhat to pass
numberRequiredA positive number.
baseOptionalThe base of the logarithm. The default is 10. The base must be positive and not 1.

Examples

How many tens multiply to 1000

=LOG(1000,10)

Result 3

=LOG(B1,B2)B3
Log
AB
1Number1000
2Base10
3Log3
A picture of the sheet, not a live calculator.

LOG asks what power of a base produces a number. Ten to the third is 1000, so LOG(1000, 10) is 3. Two to the third is 8, so LOG(8, 2) is 3. Omit the base and Excel uses 10, which makes LOG(1000) the same call as LOG10(1000).

LN is base e and does not take a base argument. A base of 1, a negative number, or zero is #NUM!. Change of base is already what this function does. You do not need to divide LN by LN of the base unless you are checking the arithmetic.