Standard deviation measures how spread out your numbers are — low means tightly clustered, high means scattered. The only real decision is whether your data is a sample (use STDEV.S) or the whole population (STDEV.P).
STDEV.S when the data is a sample of a larger group; STDEV.P when it’s the entire population.
The example
Two columns with the same average but different spread.
| A | B | |
|---|---|---|
| 1 | Tight | Spread |
| 2 | 49 | 20 |
| 3 | 50 | 50 |
| 4 | 51 | 80 |
| 5 | StdDev: 1.0 | StdDev: 30.0 |
The formula
Both columns average 50, but their spread is very different:
How it works
Standard deviation summarizes distance from the mean:
- It measures, roughly, how far the typical value sits from the average.
- The “Tight” column (49, 50, 51) barely moves from its mean of 50 — standard deviation ~
1. - The “Spread” column (20, 50, 80) ranges widely around the same mean — standard deviation ~
30. - Choose
STDEV.Sfor sample data (the common case) orSTDEV.Pwhen you truly have every member of the population.
Sample vs population in one line: STDEV.S divides by n−1 (corrects for sampling); STDEV.P divides by n. For most real-world data — which is a sample — use STDEV.S.
Try it: interactive demo
Type numbers (commas); see the average and sample standard deviation.
Variations
Population standard deviation
When the data is the whole population:
Variance
Standard deviation squared:
Coefficient of variation
Spread relative to the mean (comparable across scales):
Pitfalls & errors
Sample vs population is the key choice. Using STDEV.P on sample data understates the spread. When in doubt, your data is a sample — use STDEV.S.
Old names still work. STDEV = STDEV.S and STDEVP = STDEV.P, kept for compatibility.
Outliers inflate it. One extreme value swings standard deviation a lot — check for outliers (and consider the median/IQR) if the spread looks surprising.
Practice workbook
Frequently asked questions
How do I calculate standard deviation in Excel?
What's the difference between STDEV.S and STDEV.P?
How do I compare spread between datasets with different scales?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class