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)| Argument | What it means | |
|---|---|---|
number | Required | A 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
| A | B | |
|---|---|---|
| 1 | Signal | Watts |
| 2 | Input power | 2 |
| 3 | Output power | 200 |
| 4 | 20 |
Result: 20
Output is 100 times the input, and 10 × log₁₀(100) = 20 dB.
2pH from hydrogen ion concentration
| A | B | C | |
|---|---|---|---|
| 1 | Sample | H⁺ (mol/L) | |
| 2 | Rainwater | 3.2e-05 | 4.49 |
Result: 4.49
pH = −log₁₀[H⁺] ≈ 4.49 (2 decimals), slightly acidic.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Czech | LOG |