Standard Deviation Calculator
Paste your numbers to get the standard deviation and variance, with every step shown in a table: the mean, each deviation, its square, and the sum.
How to use the calculator
Paste numbers separated by commas, spaces or line breaks (a spreadsheet column works). Choose sample if your data is a sample from a larger group, which is the usual case, or population if it's every value in the group. For mean, median and mode alone, the mean, median and mode calculator is quicker.
How to calculate standard deviation by hand
Data: 2, 4, 4, 4, 5, 5, 7, 9
- Mean: 40 ÷ 8 = 5
- Deviations from the mean: −3, −1, −1, −1, 0, 0, 2, 4
- Square them: 9, 1, 1, 1, 0, 0, 4, 16
- Add them: 32 (the sum of squares)
- Divide: by n = 8 for the population variance (4), or by n − 1 = 7 for the sample variance (4.571)
- Square root: population SD = 2; sample SD = 2.138
Sample vs. population
| Population | Sample | |
|---|---|---|
| Use when | You have every value (all 30 students in one class) | Your data stands in for a larger group (a survey) |
| Variance formula | Σ(x − μ)² ÷ n | Σ(x − x̄)² ÷ (n − 1) |
| Symbol | σ | s |
Dividing by n − 1 (Bessel's correction) makes up for a sample's tendency to underestimate the spread of the whole population. With large samples the two barely differ.
What standard deviation tells you
A small standard deviation means values cluster near the mean; a large one means they're spread out. For roughly bell-shaped (normal) data:
| Range | Share of values |
|---|---|
| Mean ± 1 SD | About 68% |
| Mean ± 2 SD | About 95% |
| Mean ± 3 SD | About 99.7% |
Example: test scores with a mean of 75 and an SD of 8: about 68% of students scored between 67 and 83, and 95% between 59 and 91.
Related measures
- Variance: the SD squared, in squared units.
- Standard error of the mean: SD ÷ √n, how precisely the sample mean estimates the true mean.
- Coefficient of variation: SD ÷ mean × 100, useful for comparing spread between data sets with different scales.
Frequently asked questions
What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?
2 as a population standard deviation and about 2.138 as a sample standard deviation.
Should I use sample or population standard deviation?
Use sample (n − 1) unless your data includes every member of the group you're describing.
What's the difference between variance and standard deviation?
Variance is the average squared deviation; standard deviation is its square root, so it's in the same units as the data.
What is a "good" standard deviation?
There's no universal good value. It depends on the scale of the data; the coefficient of variation helps compare spreads across different data sets.