Standard deviation measures how spread out your numbers are

Standard deviation tells you whether your data points cluster tightly around the average or scatter widely. In Google Sheets, you calculate it with a single function: STDEV for a sample of data, or STDEVP if you have the entire population. The difference matters — sample standard deviation (STDEV) assumes your numbers are a subset of a larger group, while population standard deviation (STDEVP) treats your numbers as the complete set.

Most of the time you will use STDEV. If you are analyzing test scores from one class, that is a sample. If you are analyzing test scores from every student in the entire school, that is a population. The formulas are nearly identical, but STDEV divides by one fewer number, which makes the result slightly larger — a built-in adjustment for the fact that samples tend to underestimate spread.

Key Takeaways

  • Type =STDEV(A1:A10) to calculate sample standard deviation, or =STDEVP(A1:A10) for population standard deviation.
  • Use STDEV when your numbers represent a sample; use STDEVP when they represent the entire population you care about.
  • Google Sheets also offers STDEV.S (same as STDEV) and STDEV.P (same as STDEVP) if you prefer the newer naming convention.
  • Standard deviation only works with numbers — if a cell contains text or is empty, Google Sheets skips it automatically.

How to enter the STDEV formula

Click the cell where you want the result to appear. Type =STDEV(, then select the range of cells containing your numbers. You can click and drag to highlight them, or type the range directly — for example, A1:A50 or B2:B100. Close with a parenthesis and press Enter.

If your data is not in one continuous block, you can include multiple ranges separated by commas. For instance, =STDEV(A1:A10, C1:C10) calculates standard deviation across both ranges. Google Sheets treats it as one combined dataset.

The result appears as a decimal number. A smaller number means your data points are closer to the average; a larger number means they are more spread out. The units match your original data — if you are measuring heights in inches, the standard deviation is also in inches.

STDEV versus STDEVP: which one to use

Choose STDEV (sample standard deviation) when your numbers represent a subset of a larger group. Examples: test scores from one class (subset of all students), monthly sales from one store (subset of all stores), or survey responses from 500 people (subset of the entire population). STDEV assumes there is more variation in the full population than what you can see in your sample.

Choose STDEVP (population standard deviation) only when your numbers represent the entire group you care about. Examples: the heights of all players on a specific basketball team, the ages of all employees at a small company, or the test scores of every student in a single classroom if you only care about that classroom. STDEVP treats your data as complete and final.

In practice, most real-world analysis uses STDEV. You rarely have access to an entire population, so you work with samples instead. If you are unsure, STDEV is the safer choice.

Using the newer STDEV.S and STDEV.P functions

Google Sheets supports both the older function names (STDEV and STDEVP) and newer ones (STDEV.S and STDEV.P). They produce identical results — STDEV.S is the same as STDEV, and STDEV.P is the same as STDEVP. The newer names follow a standard that other spreadsheet programs use, so if you are switching between Google Sheets and Excel, using STDEV.S and STDEV.P makes your formulas more portable.

You can use whichever naming convention you prefer. Many people stick with STDEV and STDEVP because they are shorter and equally clear. If your spreadsheet will be shared with others or moved to a different program, the .S and .P versions signal your intent more explicitly.

What happens when your data includes text or empty cells

Google Sheets automatically ignores text and empty cells when calculating standard deviation. If you have a column with numbers, text labels, and blank rows mixed together, the formula skips the non-numeric entries and calculates based only on the numbers it finds. This is usually what you want, but it means you should double-check that your range includes all the numbers you intended.

If a cell contains a number stored as text (which sometimes happens when data is imported), Google Sheets treats it as text and skips it. You can spot this by looking for numbers that are left-aligned instead of right-aligned in their cells. If you need to convert text numbers to actual numbers, you can use the VALUE function or multiply by 1 to force conversion.

Interpreting your standard deviation result

Standard deviation is most useful when you compare it to the average. If your average is 50 and your standard deviation is 5, most of your data points fall between 45 and 55 — fairly tightly clustered. If your average is 50 and your standard deviation is 20, your data is much more spread out, with points ranging more widely around the center.

A rough rule: about 68% of your data falls within one standard deviation of the average, about 95% falls within two standard deviations, and about 99.7% falls within three. This rule works well for data that follows a normal distribution (a bell curve shape). If your data is skewed or has outliers, the rule is less precise, but it still gives you a sense of how tightly clustered your numbers are.

Common mistakes and how to avoid them

The most frequent error is forgetting the equals sign at the start. Google Sheets only recognizes a formula if it begins with =. If you type STDEV(A1:A10) without the equals sign, it treats the text as a label, not a calculation.

Another mistake is using STDEV when you meant STDEVP, or vice versa. If you are analyzing a sample (which is almost always the case), use STDEV. Using STDEVP on sample data will underestimate the true spread in the larger population. Similarly, using STDEV on a true population will overestimate spread, though this situation is rare in practice.

A third issue is including the wrong range. Double-check that your range covers all the numbers you want to analyze and does not accidentally include headers, labels, or unrelated data. You can click the cell with the formula and the range will highlight in the spreadsheet, making it easy to spot if you missed something.

Frequently Asked Questions

What is the difference between standard deviation and variance?

Variance is the square of standard deviation. Google Sheets calculates variance with VAR (sample variance) or VARP (population variance). Standard deviation is easier to interpret because it is in the same units as your original data, while variance is in squared units. For most purposes, standard deviation is more useful.

Can I calculate standard deviation for a column that has some blank cells?

Yes. Google Sheets skips blank cells automatically, so your formula will calculate based only on the cells that contain numbers. Just make sure your range is wide enough to capture all the data you want to include, even if some cells are empty.

Why does my standard deviation seem very large?

A large standard deviation usually means your data is very spread out, or you have one or two extreme outliers pulling the average far from most of your numbers. Check whether any values are unusually high or low compared to the rest. You can also calculate the average and see how far the extreme values are from it.

Should I use STDEV or STDEVP for my survey data?

Use STDEV. Your survey responses represent a sample of the population you care about (all possible respondents), not the entire population. STDEV accounts for this and gives you a more realistic estimate of how spread out the full population's responses would be.

Can I use standard deviation with negative numbers?

Yes. Standard deviation works with any numbers, positive or negative. The formula treats them all the same way — it measures how far each number is from the average, regardless of sign.