Standard deviation calculator
Sample and population standard deviation and variance for any list of numbers, with the working.
You can paste a column from a spreadsheet. Everything is worked out in your browser.
How standard deviation is worked out
| Value | Minus the mean | Squared |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Total | 32 |
1. Find the mean: 40 ÷ 8 = 5. 2. Take the mean off each value and square the result. 3. Add the squares: 32. 4. Divide by n − 1 (7) for a sample, or by n (8) for a whole population: that's the variance, 4.571429 or 4. 5. Take the square root: the standard deviation is 2.13809 for a sample or 2 for a population.
Use the sample figure when your numbers are a sample from a bigger group (most data); use the population figure when they're the whole group. Dividing by n − 1 corrects for a sample tending to vary less than the group it came from.
Frequently asked questions
How do you calculate standard deviation?
Find the mean, subtract it from each value, square the results, add them up, divide by n − 1 (sample) or n (population), and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9: the squares add up to 32, so the sample SD is √(32 ÷ 7) = 2.13809 and the population SD is √(32 ÷ 8) = 2.
Should I use sample or population standard deviation?
Sample if your numbers are a sample drawn from a bigger group, which is usual; population if they're every member of the group you care about. Spreadsheets' STDEV.S and STDEV.P functions do the same two calculations.
What's the difference between variance and standard deviation?
Variance is the average squared distance from the mean; standard deviation is its square root, which puts it back in the same units as your data.
What does standard deviation tell you?
How spread out the numbers are around the mean. A small standard deviation means they're bunched close to the mean; a large one means they're spread out.