Excel function

LOG10function

Returns the base-10 logarithm of a number.

All versions
=LOG10(A2)
A
B
1
2
3
4
5
6
7

Click a cell in the table to change number. Click 1234.567 and 15. An integer part of 3 means four digits; 1 means two digits. Try breaking it on purpose to see the errors.

Result

0.4971495059

number
A2You can also click a cell in the table

The cell with the number to calculate. Click another value in the table.

What is the LOG10 function?

=LOG10(number)

LOG10 returns the base-10 logarithm of a number. LOG10(1000) is 3.

Use it to compare orders of magnitude or for values that change by factors of 10, such as decibels and pH.

LOG10 suits values where each step is ten times the last: decibels for sound and power, pH for acidity, earthquake magnitudes. It brings numbers of very different sizes onto a scale you can compare. Converting the values with LOG10 is an alternative to a logarithmic chart axis.

Arguments

number
A positive real number.

LOG10 examples

  1. Example 1. 1000

    =LOG10(1000)

    3.

  2. Example 2. Count digits

    =INT(LOG10(A2))+1

    How many digits the positive integer A2 has.

  3. Example 3. Power of 10

    =LOG10(10^5)

    An example from Microsoft: 5.

  4. Example 4. Common logs of different values

    =LOG10(A2)

    The power of 10. Numbers below 1 give negative results.

    A2=LOG10(A2)
    10
    1002
    0.01-2
    2about 0.301
  5. Example 5. Power ratio in decibels

    =10*LOG10(B2/A2)

    A power 100 times larger is 20 dB.

  6. Example 6. pH

    =-LOG10(A2)

    A hydrogen ion concentration of 0.0000001 (1E-7) is pH 7.

Common mistakes

FAQ

Is it the same as LOG(x)?
Yes, LOG with the base omitted gives the same result.
How do I reverse it?
Use 10^x or POWER(10, x).