Standard deviation calculator

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the population standard deviation is 2 and the sample standard deviation is 2.138.

2.13809
sample standard deviation (s)
2population σ
4.571429sample variance s²
4population variance σ²
5mean
8count
  1. Mean: x̄ = 5
  2. Sum of squared deviations: Σ(x − x̄)² = 32
  3. Sample variance: 32 ÷ (8 − 1) = 4.571429 → s = √4.571429 = 2.13809
  4. Population variance: 32 ÷ 8 = 4 → σ = 2
xx − x̄(x − x̄)²
2-39
4-11
4-11
4-11
500
500
724
9416

Formulas

population σ = √( Σ(x − μ)² ÷ N )
sample s = √( Σ(x − x̄)² ÷ (n − 1) )

Use the population formula when the data is every member of the group you care about. Use the sample formula (Bessel’s correction, n − 1) when the data is a sample used to estimate a larger population — this is the usual choice for surveys and experiments.

Step by step

  1. Find the mean.
  2. Subtract the mean from each value and square the result.
  3. Add the squares.
  4. Divide by N (population) or n − 1 (sample) to get the variance.
  5. Take the square root.

What the number tells you

For roughly bell-shaped data, about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three (the empirical rule).

Frequently asked questions

Why divide by n − 1 for a sample?
A sample’s values sit closer to their own mean than to the true population mean, so dividing by n would underestimate the spread. n − 1 corrects that bias in the variance.
What is the difference between variance and standard deviation?
Variance is the average squared deviation; standard deviation is its square root, so it is in the same units as the data.