Account

What new tool do you want?

Math & Education

Standard Deviation Calculator (Sample & Population)

Find the standard deviation and variance of a data set — sample (n − 1) and population (n) — with the mean, sum of squares and step-by-step working.

How to use

  1. 1Paste your numbers separated by commas, spaces or new lines.
  2. 2Choose sample or population.
  3. 3Read the standard deviation, variance and the working table.

How it's calculated

Mean x̄ = Σx ÷ n. Sample variance s² = Σ(x − x̄)² ÷ (n − 1); population variance σ² = Σ(x − x̄)² ÷ n. Standard deviation is the square root of the variance.

Frequently asked questions

Sample or population?

Use population if your data includes every member of the group you care about. If it's a sample used to estimate a larger group, use sample (it divides by n − 1).

Why divide by n − 1?

A sample tends to underestimate spread, because its own mean sits closer to its values than the true mean does. Dividing by n − 1 (Bessel's correction) corrects that bias.

What does the standard deviation tell me?

How spread out the values are around the mean, in the same units as the data. In a roughly normal distribution about 68% of values fall within one standard deviation of the mean.

Sample vs population in one example

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared deviations add up to 32. Divide by n = 8 and the population variance is 4, so σ = 2. Treat the same numbers as a sample and divide by n − 1 = 7: the variance becomes 4.571 and s = 2.138. The smaller the sample, the bigger that difference.

Reading the result

Standard deviation is in the same units as your data, so a test with a mean of 70 and a standard deviation of 10 means most scores sit roughly between 60 and 80. Variance is the square of that, which is why it's used in formulas but rarely reported on its own.

Related tools

More: Math & Education