Standard Deviation Calculator

Standard deviation and variance of a list of numbers, for a population or a sample, with the working shown step by step.

How it works

Standard deviation tells you how spread out numbers are around their mean. A small value means the numbers sit close together, a large one means they are scattered.

The steps are: find the mean, subtract the mean from every number, square each of those differences, add the squares, divide by n (whole population) or n - 1 (a sample), then take the square root. The tool shows each step in a table so you can follow it or check your homework.

The formula

mean = sum of x / n
variance (population) = sum of (x - mean)^2 / n
variance (sample) = sum of (x - mean)^2 / (n - 1)
standard deviation = square root of variance

Worked example

For 2, 4, 4, 4, 5, 5, 7, 9: mean = 40 / 8 = 5. The squared differences are 9, 1, 1, 1, 0, 0, 4, 16 and they add up to 32. Population variance = 32 / 8 = 4, so the population standard deviation is 2. As a sample, 32 / 7 = 4.571 and the standard deviation is 2.138.

Good to know

Common questions

What is the difference between population and sample standard deviation?
Population divides by n, sample divides by n - 1. Calculators label them sigma and s, or STDEV.P and STDEV.S in Excel.
Can the standard deviation be negative?
No. It is a square root, so it is zero or positive. Zero means all numbers are the same.
What is the standard error?
The standard deviation divided by the square root of n. It shows how precisely the mean is known.
How many numbers do I need?
At least 1 for a population and 2 for a sample.

More in Utilities.