Standard deviation calculator

Measure how spread out a set of numbers is. Choose sample or population, and the table shows each step of the working.

Separate them with commas, spaces or new lines.

Your numbers are

Sample standard deviation (s)

2

Variance
4
Mean
6
Count
8
Sum of squared differences
28
Standard error of the mean
0.707107
Population SD, for comparison
1.870829
Each number 8 rows
ValueDifference from meanSquared
4−24
824
600
5−11
3−39
711
939
600

How it works

  1. Paste or type your numbers.
  2. Choose sample or population.
  3. Read the standard deviation, variance and the worked table.

Questions

Sample or population: which should I use?

Use population when your numbers are every member of the group you care about. Use sample when they are a selection from a bigger group, which is the usual case in surveys and experiments. Sample divides by n − 1, which makes it slightly larger.

What does the standard deviation tell me?

How far values typically are from the mean. In data shaped like a bell curve, about 68% of values lie within one standard deviation of the mean and about 95% within two.

What is the difference between variance and standard deviation?

Variance is the average squared distance from the mean; standard deviation is its square root. Standard deviation is in the same units as your data, which makes it easier to read.

Which does Excel use?

STDEV.S (or STDEV) is the sample standard deviation and STDEV.P the population one. They match the two options here.

How it is worked out

  1. Find the mean.
  2. Subtract the mean from each value and square the result.
  3. Add the squares.
  4. Divide by n for a population, or by n − 1 for a sample. This is the variance.
  5. Take the square root. This is the standard deviation.

The table under the calculator shows steps 2 and 3 for each of your numbers.

Why samples divide by n − 1

A sample's values sit closer to their own mean than to the true mean of the whole population, so dividing by n would make the spread look too small. Dividing by n − 1, known as Bessel's correction, makes up for this. The difference matters for small samples and becomes tiny for large ones.

Reading the result

For data that follows a bell curve, about 68% of values lie within one standard deviation of the mean, 95% within two, and 99.7% within three. A value more than three standard deviations away is unusual enough to check. The standard error of the mean (SD ÷ √n) tells you how precisely the sample mean estimates the true mean.