How to Calculate Standard Deviation by Hand (Step by Step)
Standard deviation measures how spread out a set of numbers is. A small value means the numbers sit close to the average; a large one means they are scattered. Here is the hand method, using a small data set so every step is visible. Check your own data with the Standard Deviation Calculator.
Data set
2, 4, 4, 4, 5, 5, 7, 9
Step 1: Find the mean
Sum = 40, count = 8, so the mean is 40 ÷ 8 = 5.
Step 2: Subtract the mean and square
| x | x − mean | (x − mean)² |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
Sum of squares = 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
Step 3: Divide
- Population (you have every value): 32 ÷ 8 = 4
- Sample (your data is a sample of a bigger group): 32 ÷ 7 = 4.571
This is the variance.
Step 4: Take the square root
- Population standard deviation σ = √4 = 2
- Sample standard deviation s = √4.571 = 2.138
Which one should you use?
Use the sample formula (n − 1) for survey results, experiments and anything that represents a larger group. Use the population formula (n) only when the data covers everyone you care about, such as every student in one class.
What the number tells you
For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean and about 95% within two. With a mean of 5 and σ = 2, most values lie between 3 and 7. For the mean, median and mode, see the Average Calculator.
Frequently asked questions
Can standard deviation be negative?
No. It is a square root of an average of squares, so it is zero or positive.
What does a standard deviation of 0 mean?
Every value is identical.