Students
Standard Deviation: Formula, Steps and What It Means
What SD measures, the step-by-step working, sample vs population, and the 68–95–99.7 rule.
By Team Vind · Updated · 5 min read
An average tells you where the middle of your data is. It says nothing about how spread out the values are. Standard deviation (SD) fills that gap: it measures how far, on average, the values sit from the mean. A small SD means they cluster tightly; a large one means they're scattered.
Why the average isn't enough
Two batters over six innings:
| Batter | Scores | Average | Standard deviation |
|---|---|---|---|
| A | 42, 48, 51, 45, 55, 47 | 48 | 4.16 |
| B | 4, 110, 12, 96, 0, 66 | 48 | 44.74 |
Both average 48, but A is dependable while B swings between ducks and centuries. The SD puts a number on that difference: 4.16 against 44.74.
How to calculate it, step by step
For the data 4, 8, 6, 5, 3, 10:
- Find the mean: 36 ÷ 6 = 6.
- Subtract the mean from each value and square the result (squaring removes the minus signs).
- Add up the squares: 34.
- Divide by N (population) or n − 1 (sample). This is the variance.
- Take the square root.
| Value (x) | x − mean | (x − mean)² |
|---|---|---|
| 4 | -2 | 4 |
| 8 | 2 | 4 |
| 6 | 0 | 0 |
| 5 | -1 | 1 |
| 3 | -3 | 9 |
| 10 | 4 | 16 |
| Total | 0 | 34 |
Population: σ = √( Σ(x − μ)² ÷ N ) · Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
- Population: variance 34 ÷ 6 = 5.67, so σ = 2.38
- Sample: variance 34 ÷ 5 = 6.8, so s = 2.61
Try it: Standard Deviation Calculator
Sample or population?
- Population (divide by N): your data is the whole group you care about, such as the marks of every student in one class.
- Sample (divide by n − 1): your data is a part used to estimate a bigger group, such as 200 voters surveyed in a city. Dividing by n − 1 (Bessel's correction) makes up for a sample understating the true spread.
If in doubt, use the sample version: it's what Excel's STDEV and most statistics courses mean by default.
Reading it: the 68–95–99.7 rule
For bell-shaped (normal) data, such as heights or exam scores in a large group, with mean 165 cm and SD 6 cm:
| Within | Range | Share of values |
|---|---|---|
| 1 SD of the mean | 159–171 cm | about 68% |
| 2 SD of the mean | 153–177 cm | about 95% |
| 3 SD of the mean | 147–183 cm | about 99.7% |
How many SDs a value sits from the mean is its z-score, which our Z-Score Calculator works out.
Where you'll meet it
- Mutual funds: a fund's standard deviation on its factsheet is its volatility. Of two funds with the same return, the lower SD gave a smoother ride.
- Exams: normalised marks in multi-session exams such as GATE are worked out from the mean and SD of each session.
- Quality control: a “six sigma” process keeps its limits six standard deviations from the average, so defects are extremely rare.
Frequently asked questions
What does standard deviation tell you?
How spread out the values are around the mean. A low standard deviation means they're close to the average; a high one means they vary widely.
What is the formula for standard deviation?
The square root of the average squared difference from the mean: √(Σ(x − mean)² ÷ N) for a population, or ÷ (n − 1) for a sample.
When do I use n − 1 instead of n?
Use n − 1 when your data is a sample taken from a larger group, which is the usual case. Use n only when you have every member of the group.
What is the difference between variance and standard deviation?
Variance is the average of the squared differences from the mean. Standard deviation is its square root, which brings it back to the same units as the data.
Sources
- NCERT Mathematics, Class 11, Chapter 13: Statistics
- NIST/SEMATECH e-Handbook of Statistical Methods: measures of scale
Last reviewed: 12 October 2026

