Skip to content

Standard deviation calculator

Sample and population standard deviation, variance, mean and median.

Separate with commas, spaces or new lines

Standard Deviation Calculator by Utility Empire

The formulas

  • Mean = sum of the values ÷ n
  • Population variance = Σ(x − mean)^2 ÷ n; population SD (σ) is its square root
  • Sample variance = Σ(x − mean)^2 ÷ (n − 1); sample SD (s) is its square root

Source: NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6, Measures of Scale.

Worked example

  • 2, 4, 4, 4, 5, 5, 7, 9: the mean is 5 and the squared differences add up to 32. Population SD = √(32 ÷ 8) = 2; sample SD = √(32 ÷ 7) = 2.1381.

Frequently asked questions

Sample or population: which do I use?

Use the sample SD when your numbers are a sample of a bigger group, as in most surveys and experiments. Use the population SD when you have every member of the group.

Why divide by n − 1 for a sample?

A sample tends to sit closer to its own mean than to the true mean, so dividing by n − 1 (Bessel’s correction) corrects that underestimate.

What does the standard deviation tell me?

How spread out the numbers are. For roughly bell-shaped data, about 68% of values fall within one SD of the mean, and about 95% within two.