Numbers and data
Standard deviation calculator
Paste or type your numbers. Choose "sample" if your data is a selection from a bigger group, which is the usual case in class experiments and surveys.
Your answer and the full working will appear here.
The idea
Two classes can have the same average test score but feel completely different. In one, everybody scored close to 70. In the other, half scored 40 and half scored 100. Standard deviation is the number that captures that difference: it measures how far, on average, values sit from the mean.
The method: find the mean, measure each value's distance from it, square those distances (so negatives do not cancel positives), average them to get the variance, and take the square root to get back to the original units. A small standard deviation means the data is tightly bunched; a large one means it is spread out.
Formula box
- Mean x̄ = Σx ÷ n
- Population: σ = √(Σ(x - x̄)² ÷ n)
- Sample: s = √(Σ(x - x̄)² ÷ (n - 1))
Dividing by n - 1 for a sample (Bessel's correction) makes up for the fact that a sample tends to look slightly less spread out than the whole population.
Worked problem
Data: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 40 ÷ 8 = 5. The squared distances are 9, 1, 1, 1, 0, 0, 4 and 16, which add to 32.
Population variance = 32 ÷ 8 = 4, so σ = 2. Sample variance = 32 ÷ 7 ≈ 4.571, so s ≈ 2.138.
Questions
Sample or population: which do I choose?
Population if you have every member of the group you care about (every student in your class). Sample if your data stands in for a bigger group (20 students surveyed from the whole school).
Can standard deviation be negative?
No. It is a square root of an average of squares, so it is zero or positive. Zero means every value is identical.
What is the 68-95-99.7 rule?
For bell-shaped data, about 68% of values lie within one standard deviation of the mean, 95% within two, and 99.7% within three.