Math & trig function

LOG10 function

Returns the base-10 logarithm of a number, used for decibels, pH and orders of magnitude.

Available in All versions of Excel, Excel for the web, Excel for Mac

In every Excel versionWorks in Google Sheets

Syntax

LOG10(number)
ArgumentWhat it means
numberRequiredA positive number.

Returns: The power of 10 that gives number.

How LOG10 works

LOG10 tells you how many times 10 must be multiplied to reach a number: LOG10(1000) is 3 and LOG10(0.01) is −2. Base-10 logarithms describe orders of magnitude, so they are built into many real scales: decibels for sound and signal power, pH for acidity, the Richter scale, and log-scaled charts of revenue or population.

It is identical to LOG(number) with no base. The input must be positive; zero or negative numbers return #NUM!. To get back from a log value use 10^x or POWER(10, x).

Examples

1Amplifier gain in decibels

B4fx=10*LOG10(B3/B2)
AB
1SignalWatts
2Input power2
3Output power200
420

Result: 20

Output is 100 times the input, and 10 × log₁₀(100) = 20 dB.

2pH from hydrogen ion concentration

C2fx=-LOG10(B2)
ABC
1SampleH⁺ (mol/L)
2Rainwater3.2e-054.49

Result: 4.49

pH = −log₁₀[H⁺] ≈ 4.49 (2 decimals), slightly acidic.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!Zero or a negative number.Check the data.

Tips

  • Count digits of a whole number: =INT(LOG10(B2))+1.
  • Charts can show a log scale directly: Format Axis > Logarithmic scale.

Google Sheets

LOG10 also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

LOG10 in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
CzechLOG