Statistics Calculator › Standard Deviation Calculator

Standard Deviation Calculator

Enter your data to get the sample and population standard deviation, with a step by step table you can copy into your homework.

What standard deviation tells you

Standard deviation measures how spread out values are around their mean. A small standard deviation means the values sit close to the average; a large one means they are scattered. Because it is in the same units as your data, it is the easiest measure of spread to explain: "test scores averaged 78 with a standard deviation of 9 points."

The formulas

Sample: s = √[ Σ(x − x̄)² ÷ (n − 1) ]
Population: σ = √[ Σ(x − μ)² ÷ N ]

Both formulas do the same four things: find the mean, measure each value's distance from it, square those distances so negatives do not cancel positives, then average and take the square root. The only difference is the divisor.

Worked example

Data: 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5. The squared distances are 9, 1, 1, 1, 0, 0, 4, 16, which add up to 32.

Why the sample formula divides by n − 1

A sample's own mean is always closer to the sample values than the true population mean is, so the squared distances come out a little too small. Dividing by n − 1 instead of n (Bessel's correction) corrects that bias. With large samples the two answers are almost identical; with small samples the difference matters.

Common mistakes

Formulas follow the NIST/SEMATECH e-Handbook of Statistical Methods: measures of scale.

Frequently asked questions

What is a good standard deviation?

There is no universal good value. It only makes sense next to the mean and the context. Compare it with the mean (the coefficient of variation does this) or with the standard deviation of similar data.

Can standard deviation be negative?

No. It is the square root of an average of squared numbers, so it is always zero or positive. It is zero only when every value is identical.

Which Excel function matches this calculator?

STDEV.S matches the sample result and STDEV.P matches the population result. On a TI-84, Sx is the sample value and σx is the population value.

More statistics calculators