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
Example 1. 1000
=LOG10(1000)3.
Example 2. Count digits
=INT(LOG10(A2))+1How many digits the positive integer A2 has.
Example 3. Power of 10
=LOG10(10^5)An example from Microsoft: 5.
Example 4. Common logs of different values
=LOG10(A2)The power of 10. Numbers below 1 give negative results.
A2 =LOG10(A2) 1 0 100 2 0.01 -2 2 about 0.301 Example 5. Power ratio in decibels
=10*LOG10(B2/A2)A power 100 times larger is 20 dB.
Example 6. pH
=-LOG10(A2)A hydrogen ion concentration of 0.0000001 (1E-7) is pH 7.
Common mistakes
0 or negative numbers
They return #NUM!.
Confusing it with LN
LN uses base e.
Digit count of 0
=INT(LOG10(A2))+1 returns #NUM! when A2 is 0. If 0 or negatives are possible, use =LEN(ABS(INT(A2))).
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).