The LOG10 function in Google Sheets returns the base-10 logarithm of a number. To use it, type =LOG10(A1) in an empty cell, replacing A1 with the cell or number you want to evaluate, then press Enter. The result is the power to which 10 must be raised to produce that number. For example, =LOG10(100) returns 2 because 10² = 100. This guide walks you through using LOG10 correctly, avoiding common errors, and troubleshooting when it does not work as expected.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet open in Google Sheets on desktop or mobile.
- Basic familiarity with entering formulas (starting with an equals sign).
Step-by-Step
- Open your spreadsheet. Go to Google Sheets (sheets.google.com) and open an existing file or create a new blank spreadsheet. On mobile, open the Google Sheets app and select a file.
- Select an empty cell. Click or tap the cell where you want the result to appear. This cell will hold the formula.
- Type the formula. Start with an equals sign, then type
LOG10(. For example,=LOG10(1000). You can also reference a cell:=LOG10(A1). The function takes exactly one argument: a positive number or a reference to a cell containing a positive number. - Close the parenthesis and press Enter. After typing the number or cell reference, type
)and press Enter (or the checkmark on mobile). The cell will display the base-10 logarithm of the number. - Verify the result. For example,
=LOG10(100)should return 2. If you see an error, check that the number is positive (logarithms are undefined for zero and negative numbers). - Copy the formula down (optional). If you have a column of numbers, drag the fill handle (small square at the bottom-right of the cell) down to apply the formula to other rows. The cell references will adjust automatically.
- Format the result (optional). Select the result cell, then use the toolbar to increase or decrease decimal places, or apply a number format. LOG10 returns a decimal number; you can round it with
ROUNDif needed, e.g.,=ROUND(LOG10(A1), 2).
Common Mistakes
- Using zero or a negative number. LOG10 is only defined for positive numbers. If you enter
=LOG10(0)or=LOG10(-5), you will get a#NUM!error. - Forgetting the equals sign. Without
=, Sheets treats the entry as text, not a formula. - Incorrect parentheses. Make sure you close the parenthesis after the argument. Missing a closing parenthesis will cause a formula parse error.
- Referencing an empty cell. An empty cell is treated as zero, which produces a
#NUM!error. Ensure the referenced cell contains a positive number. - Confusing LOG10 with LN or LOG.
LNreturns the natural logarithm (base e), andLOGwith two arguments returns a logarithm with a specified base. LOG10 is specifically base 10. - Using text instead of numbers. If the argument is a text string that looks like a number (e.g., "100"), Sheets may not convert it automatically. Use
VALUEto convert text to a number first.
Tips
- Use cell references for dynamic calculations. Instead of hardcoding numbers, reference cells so the result updates when the input changes.
- Combine with other functions. For example,
=LOG10(A1) + 1or=LOG10(A1^2)(which equals2*LOG10(A1)). - Round for readability. Use
ROUND,ROUNDUP, orROUNDDOWNto control decimal places. - Check for errors with IFERROR. Wrap your formula in
IFERRORto display a custom message instead of an error, e.g.,=IFERROR(LOG10(A1), "Invalid input"). - Use the formula autocomplete. When typing
=LOG10(, Sheets may show a tooltip with syntax help. Press Tab to accept suggestions. - Remember the domain. LOG10 only accepts positive numbers. For a column of data, consider filtering out non-positive values first.
Troubleshooting
If your LOG10 formula returns an error or unexpected result, work through these checks in order:
- #NUM! error: The argument is zero, negative, or references an empty cell. Verify the input is a positive number. If the cell contains a formula that returns zero or negative, adjust that formula.
- #VALUE! error: The argument is text that cannot be coerced to a number. Check for stray spaces or non-numeric characters. Use
TRIMorVALUEto clean the input. - #NAME? error: The function name is misspelled. Ensure you typed
LOG10exactly, notLOG 10orLOG_10. - Formula shows as text: The cell may be formatted as plain text. Select the cell, go to Format > Number > Automatic, then re-enter the formula.
- Result is 0 or unexpected: Double-check the input. For example,
LOG10(1)returns 0, which is correct. If you expected a different value, confirm the number is correct. - Mobile app issues: On the Google Sheets mobile app, formulas work the same way. If the keyboard lacks certain symbols, use the formula bar or switch to a keyboard with mathematical symbols.
If none of these resolve the issue, try re-entering the formula in a new cell, or check Google Sheets' official help for function-specific guidance.
Frequently Asked Questions
What does LOG10 do in Google Sheets?
LOG10 returns the base-10 logarithm of a positive number. It answers the question: to what power must 10 be raised to get this number? For example, LOG10(1000) returns 3.
Can I use LOG10 with a range of cells?
No, LOG10 takes a single argument. To apply it to a range, use ARRAYFORMULA, e.g., =ARRAYFORMULA(LOG10(A1:A10)), which will return an array of results. Ensure all cells in the range contain positive numbers to avoid errors.
What is the difference between LOG10 and LOG?
LOG10 always uses base 10. LOG can take an optional second argument for the base; if omitted, it defaults to base 10 as well. However, LOG10 is more explicit and slightly shorter. Use LOG when you need a base other than 10.
Why do I get a #NUM! error with LOG10?
#NUM! occurs when the argument is zero, negative, or references an empty cell. Logarithms are only defined for positive numbers. Check your input and ensure it is greater than zero.
Can LOG10 handle very large or very small numbers?
Yes, Google Sheets can handle numbers up to about 1.797E+308 and down to about 2.225E-308. LOG10 will return a result for any positive number within that range. For extremely small numbers, the result will be a negative number (e.g., LOG10(0.001) = -3).
Is LOG10 available in the Google Sheets mobile app?
Yes, the LOG10 function works identically in the Google Sheets mobile app for iOS and Android. You can enter it manually or find it in the function list.