You can paste a column from a spreadsheet. Everything is worked out in your browser.

2.13809
standard deviation (sample)

Standard deviation (population)2
Variance (sample)4.571429
Variance (population)4
Mean (average)5
Count8
Sum40
Range7 (2 to 9)
In order2, 4, 4, 4, 5, 5, 7, 9

How standard deviation is worked out

ValueMinus the meanSquared
2-39
4-11
4-11
4-11
500
500
724
9416
Total32

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.

Embed this calculator on your website

Free to use. Paste this into your page's HTML; please keep the link underneath.

Related calculators