How to Calculate Standard Deviation in Excel
Measure how spread out your numbers are with one function — and get the one decision that actually matters right: sample or whole population.
The quick answer: =STDEV.S(A2:A100) for a sample, =STDEV.P(A2:A100) for a whole population. The function is easy; the only real decision is which of those two to use. Here's how to get it right.
Use STDEV.S for a sample (the usual case)
Most of the time your data is a sample — a subset standing in for a bigger group (100 survey responses, last month's orders). Use =STDEV.S(range). It divides by n−1, which corrects the bias you get estimating a whole population from a sample.
Use STDEV.P for a whole population
Only when your range is everything — every student in the class, every transaction that exists, with nothing left out — use =STDEV.P(range). It divides by n. Pick this and it should genuinely be the full population, not a sample.
Why it matters
On a big dataset, STDEV.S and STDEV.P give nearly the same number. On a small one, the n−1 vs n difference is real — so the sample-vs-population choice can change your result noticeably. When in doubt, STDEV.S is the safer default.
STDEV (no suffix) still works and equals STDEV.S; STDEVP equals STDEV.P. Both text and blank cells in the range are ignored automatically.Run the stats without the function names
Ask "what's the standard deviation of order value by region" in plain English — Quiriz picks the right calculation and answers. Free to start.
Try Quiriz free →