Standard Deviation Guide: Variance, the n − 1 Question & Worked Examples
Written and verified by Muhammad Haroon, founder of Numblox · SD = √(average squared distance from the mean) · Worked examples · Updated 24 November 2026
An average tells you where the centre is; standard deviation tells you how much to trust it. Two classes can both average 60% while one is tightly bunched and the other is split between failures and perfect scores. This guide calculates an SD completely by hand once, settles the population-vs-sample question honestly, and shows how to read the number when it comes back.
Try it yourself: use the free Standard Deviation Calculator on Numblox — paste numbers in; mean, median, variance and both SDs out. Nothing you enter is stored or sent anywhere.
The calculation in five steps
Using the classic textbook set: 2, 4, 4, 4, 5, 5, 7, 9.
Step 1 — Mean: (2+4+4+4+5+5+7+9) ÷ 8 = 5.
Step 2 — Deviations from the mean: −3, −1, −1, −1, 0, 0, +2, +4.
Step 3 — Square them: 9, 1, 1, 1, 0, 0, 4, 16 — total 32. (Squaring kills the minus signs and punishes big deviations.)
Step 4 — Variance: population = 32 ÷ 8 = 4; sample = 32 ÷ 7 = 4.57.
Step 5 — Standard deviation = √variance: population SD = 2 exactly; sample SD = 2.14. The calculator shows exactly these.
Why do samples divide by n − 1?
Because a sample's own mean is calculated from the sample, the deviations are measured from a point that was chosen to sit in the middle of that very sample — so they come out slightly too small on average. Dividing by n − 1 instead of n inflates the result just enough to correct the bias (this is Bessel's correction). With large samples the difference fades; with small ones it matters — 32 ÷ 7 vs 32 ÷ 8 above is a 7% difference in the SD.
Same mean, different worlds
Set A: 4, 5, 6 — mean 5, population SD 0.82. Set B: 1, 5, 9 — mean 5, population SD 3.27. Identical averages, completely different consistency. This is why 'average marks 60%' or 'average return 8%' is only half a sentence: without the spread, you cannot tell steady from wild.
Reading an SD in the wild
Marks: SD 2 on a mean of 5 (of 10) is a consistent group. Money: two investments with the same average return — the lower SD is the smoother ride, which is the entire idea behind risk measures. Measurements: an SD near your instrument's precision means you are measuring noise, not signal. Rule of thumb for roughly bell-shaped data: about two-thirds of values fall within one SD of the mean.
Check your own numbers
Paste your data into the Numblox Standard Deviation Calculator and compare the mean, median and both SDs. Working with percentages instead? The Percentage Calculator Guide covers the other everyday statistic.
How to use the calculator
Step 1: Type or paste your numbers into the calculator, separated by spaces, commas or new lines.
Step 2: Read the mean and median first — they locate the centre — then the population and sample standard deviations.
Step 3: Choose population SD if your numbers are the whole group; sample SD if they are a sample of a larger group.
Common questions
What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9? The mean is 5 and the population standard deviation is exactly 2 — this is the classic textbook example. The sample standard deviation is 2.14, and the median is 4.5.
Population or sample standard deviation — which one do I use? Population (divide by n) when your numbers are the entire group you care about. Sample (divide by n − 1) when your numbers are a sample from a bigger group, because the sample formula corrects the tendency to underestimate the true spread.
What does a standard deviation of 2 actually mean? On average, values sit about 2 units away from the mean. A set with mean 5 and SD 2 is fairly consistent; the same mean with an SD of 6 would be wildly inconsistent.
Disclaimer: This article and the calculator provide general educational information. Statistical practice varies by field — follow your course or professional standard where it prescribes a specific convention.
Related: Standard Deviation Calculator · Quadratic Solver Guide · Percentage Calculator · All free calculators