ZapKit

Standard Deviation Calculator

Paste a data set to get its standard deviation and variance, for a sample or a whole population, with every step of the working shown.

What is standard deviation?

Standard deviation is the most common measure of spread: it tells you how tightly a set of numbers clusters around its average. A small standard deviation means the values are close together; a large one means they're scattered.

It's used to judge the consistency of exam marks, the volatility of an investment, the precision of lab measurements and the variation in manufacturing. Roughly two thirds of normally distributed data falls within one standard deviation of the mean. This calculator shows both sample and population versions, variance, the coefficient of variation and the standard error, with a table of every step.

How to use the Standard Deviation Calculator

  1. 1.Paste the data

    Numbers separated by commas, spaces or new lines.

  2. 2.Sample or population?

    Choose sample if your numbers are part of a larger group, which is usual.

  3. 3.Follow the working

    The table shows each value's distance from the mean and its square.

Example: the classic textbook data set

Eight values: 2, 4, 4, 4, 5, 5, 7, 9:

Mean
5
Sum of squared differences
32
Population σ
2 (√(32 ÷ 8))
Sample s
2.13809 (√(32 ÷ 7))

s = √(Σ(x − mean)² ÷ (n − 1))

Dividing by 7 instead of 8 makes the sample estimate slightly larger.

n or n − 1?

Standard deviation measures how far values typically sit from the mean. You square each distance from the mean, average the squares to get the variance, then take the square root.

For a whole population you divide by n. For a sample you divide by n − 1, known as Bessel's correction, because a sample's own mean sits closer to its values than the true mean does, and dividing by n would understate the spread. Excel's STDEV.S uses n − 1 and STDEV.P uses n; both results are shown here.

Frequently asked questions

Should I use sample or population?

Use sample unless your data includes every member of the group, such as the marks of every student in one class.

What is variance?

The average squared distance from the mean. Standard deviation is its square root, in the same units as the data.

What is a good coefficient of variation?

It's the SD as a percentage of the mean. Lower means more consistent; what counts as low depends on the field.

What is the standard error?

The SD divided by √n. It estimates how far the sample mean is likely to be from the true mean.

More Utilities tools