Standard deviation calculator

Type or paste your numbers, separated by commas, spaces or new lines, and choose sample or population.

These numbers are

Standard deviation

-

xx − mean(x − mean)²

The working

How standard deviation is calculated

  1. Find the mean of the numbers.
  2. Subtract the mean from each number and square the result.
  3. Add up the squares.
  4. Divide by n (population) or n − 1 (sample). This is the variance.
  5. Take the square root. This is the standard deviation.

population SD = √( Σ (x − mean)² ÷ n )

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

Example

For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the squared differences add up to 32. The population standard deviation is √(32 ÷ 8) = 2; the sample standard deviation is √(32 ÷ 7) = 2.138.

For the mean, median and mode of the same numbers, use the mean, median and mode calculator.

Questions people ask

What does standard deviation tell you?

How spread out the numbers are around their mean. A small standard deviation means most values are close to the average; a large one means they are widely scattered.

Should I use sample or population standard deviation?

Use population if your numbers are every member of the group you care about (all 30 students in a class). Use sample if they are a sample from a bigger group (30 students surveyed from a school), which divides by n − 1 to correct for the smaller set.

What is variance?

Variance is the standard deviation squared: the average of the squared distances from the mean. Standard deviation is easier to read because it is in the same units as the data.

Also in the notebook