Standard deviation measures how spread out a set of numbers is. A small standard deviation means the values are bunched close to the mean. A large one means they are scattered widely. It is one of the most important ideas in statistics.
Our standard deviation calculator shows every step for any list of numbers.
Try the Standard Deviation Calculator. Sample and population standard deviation with steps
Open the calculatorWhy we need it
Two classes might both have a mean test score of 70:
- Class A: 68, 69, 70, 71, 72
- Class B: 40, 55, 70, 85, 100
The averages are identical, but the classes are very different. Standard deviation captures that difference in a single number: about 1.6 for Class A and about 23.7 for Class B (sample standard deviation).
The five steps
We will use the data set 6, 8, 10, 12, 14 and treat it as a sample.
Step 1: find the mean
(6 + 8 + 10 + 12 + 14) ÷ 5 = 50 ÷ 5 = 10
Step 2: subtract the mean from each value
| Value | Value − mean |
|---|---|
| 6 | −4 |
| 8 | −2 |
| 10 | 0 |
| 12 | 2 |
| 14 | 4 |
These are the deviations. They always add up to zero, which is why we cannot simply average them.
Step 3: square each deviation
16, 4, 0, 4, 16
Squaring makes every value positive and gives more weight to values far from the mean.
Step 4: add the squares and divide
Sum of squares = 16 + 4 + 0 + 4 + 16 = 40
- For a sample, divide by n − 1: 40 ÷ 4 = 10. This is the sample variance.
- For a population, divide by n: 40 ÷ 5 = 8. This is the population variance.
Step 5: take the square root
- Sample standard deviation: √10 = 3.16
- Population standard deviation: √8 = 2.83
The formulas
The choice between them is explained in sample vs population standard deviation.
Interpreting the result
Standard deviation is in the same units as the data. If test scores have a mean of 70 and a standard deviation of 8, most scores sit roughly between 62 and 78.
For data that follows a bell-shaped (normal) distribution, a useful rule of thumb is:
| Range | Share of values |
|---|---|
| Within 1 standard deviation of the mean | about 68% |
| Within 2 standard deviations | about 95% |
| Within 3 standard deviations | about 99.7% |
So with a mean of 70 and a standard deviation of 8, about 95% of scores would fall between 54 and 86, if the scores are roughly normal.
Variance vs standard deviation
Variance is the standard deviation squared. It is used in many statistical formulas, but it is in squared units (such as "points squared"), which are hard to interpret. Standard deviation brings it back to the original units.
Common mistakes
- Forgetting to square the deviations, which makes them sum to zero.
- Using n instead of n − 1 for a sample, or the other way round.
- Forgetting the square root at the end and reporting the variance instead.
Was this page helpful?
Thanks for telling us.
What was missing or wrong? Email us and we will fix it.