Google Sheets Standard Deviation: Which Formula?

Google Sheets uses =STDEV(A2:A11) for sample standard deviation and =STDEVP(A2:A11) for a whole population. Pick the calculation for your data, then enter the range of cells holding your measurements.

The difference is what your rows represent. Use the sample calculation when your rows are a selection used to estimate a larger group. A complete set you're describing on its own needs the population calculation.

Choose the calculation before entering the formula

Suppose a sheet contains ten delivery times. If those deliveries are sampled from a much larger operation, use STDEV. If you're reporting the spread of every delivery in one small, completed trial, STDEVP describes that entire set.

The formulas can both return sensible-looking numbers, so getting a number instead of an error doesn't tell you which formula to use. Write a short label beside the result that says whether it describes a sample or the complete group.

Drawing of a Google Sheets formula entry using STDEV for a selected numeric range

Google's STDEV function reference describes it as the sample calculation. The calculation gives the spread of the values, expressed in their original units.

For times entered as plain numbers of minutes, the result is in minutes. For prices entered as dollar amounts, it's in dollars. Keep different units in separate columns before doing the calculation.

I'd label the source column with its unit first. Mixing minutes and seconds in one range lets the formula calculate a result, but that result won't describe the times the way you intended.

Enter the range in an empty result cell

On your computer, open the sheet in a browser. Click a spare cell beyond your measurement range. Type =STDEV(, select the numeric cells, close the parenthesis, and press Enter.

For values in A2 through A11, the completed formula is =STDEV(A2:A11). The colon means every cell from the first address to the second, including both ends. Replace those addresses with the ones in your own sheet.

Use =STDEVP(A2:A11) in a separate result cell when those rows are the whole population. Give the two results different labels if you're comparing them, so someone reading the sheet later knows why they're different.

Keep the result outside its own source range. Putting the formula into A11 while also asking it to calculate A2:A11 makes the result depend on itself. Choose another column or a row after the source data instead.

On Android, iPhone, or iPad, open your spreadsheet in Google Sheets. Select the result cell and type the formula, then tap Done. The same function and cell range work on each platform.

If the source data belongs to someone else, check you have editing access before entering a formula. Being able to view a spreadsheet doesn't mean you can edit its cells. Request editing permission, or use a copy you're allowed to change.

Try the calculation with eight practice readings

Try a separate practice range with the values 2, 4, 4, 4, 5, 5, 7, 9, one number per cell. These are example values, so don't paste them over your real measurements.

For these eight numbers, the mean (average) is 5. The population calculation gives 2; the sample calculation gives approximately 2.1381. Sheets may show fewer decimal places depending on the result cell's format.

Comparing these results helps you check which function you used. The sample result is larger because the calculation divides by a different number. Rounding both results too aggressively can hide the difference on other datasets.

For a report, keep the formula and adjust only how many decimal places are displayed. A number displayed as 2.14 can still retain more precision for later calculations.

Don't read a standard deviation of 2 as meaning that every value is exactly two units away from the mean. In the example, some values equal the mean and others are four units away. The result summarizes their spread.

For the same job in a Microsoft workbook, the Excel standard-deviation steps explain its sample and population functions. Use the same data and type of calculation when comparing apps.

Check which cells actually contain numbers

A range that looks full can contain fewer numbers than you expect. Text labels and numbers stored as text aren't the same as numeric entries. STDEV skips cells in the selected range that contain text, rather than counting them as numbers.

Use =COUNT(A2:A11) beside your result to count numeric entries in that range. Compare the count with the number of measurements you meant to include. Check the skipped cells before relying on the result.

Blank cells aren't measured zeros. A missing temperature reading and a genuine zero-degree measurement mean different things. Enter zero only when it was recorded, rather than filling empty rows to make the sheet look complete.

STDEVA is a different function that treats text as zero. Don't swap to it just to make a troublesome range return a number; that makes Sheets read the data differently and can change the result a lot.

Typing text directly inside the function's parentheses can also cause an error. Refer to the numeric range instead of combining labels and measurements inside the formula. Keep the heading in A1 and start the example range at A2.

Correct errors before adding the result to a report

For #DIV/0! with STDEV, check that the formula includes at least two numbers. A range of one real number plus several text entries still lacks enough measurements for the sample calculation.

If Sheets can't read the formula, check the equals sign, spelling, parentheses, and range separator. Copy the cell range from the sheet rather than retyping a long address from memory.

Leave errors in your source cells visible while you fix them. Replacing a failed calculation with a blank result can hide a missing measurement and make the result look cleaner without making it accurate.

In your report, include the group, time period, units, and sample size. Standard deviation without that context doesn't explain whether the values came from eight readings on one device or hundreds of readings across different devices.

For a chart that needs an uncertainty value rather than the spread of individual measurements, standard error needs a separate calculation. Don't rename a standard-deviation result to fit the chart label.

If a shared sheet still fails, ask its owner or post a small, anonymous example in the Docs Editors Help Community. Include the exact formula, a few values that show the problem, and the error, without sharing private rows.

The Short Version

Use STDEV for a sample and STDEVP for the entire group. Keep the formula outside its source range, count numeric measurements, and label the result's units. Check text and missing values before using the number in a report.

Checked December 2, 2026.

If you have any business, I can build it online

Hi, I’m Hamza. I’ve been building websites and online shops for business owners since 2019, and I also built this site you’re reading.

Tell me what business you have or what you’re working on. I’ll look into how much it can grow online, and then we talk. You don’t have to buy anything or hire me first.

Chat with me on my site and I’ll show you proof of businesses I’ve helped and how they’ve grown.

Written by Isaac Smith

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.

More from Isaac Smith

Leave a Comment