Standard Deviation Calculator

Calculate standard deviation and variance for a set of numbers — for a whole population or for a sample. Enter your numbers separated by commas or spaces.

Standard deviation
2.160
7 numbers, sample
Variance
4.667
Average
6

How to use the standard deviation calculator

  1. Enter your numbers in the field, separated by commas or spaces.
  2. Choose whether the numbers represent a whole population or a sample.
  3. The calculator automatically works out standard deviation, variance and average as you type.

How standard deviation is calculated

Standard deviation measures how much the values in a set of numbers spread out around the average. A low standard deviation means the values are tightly clustered around the average, while a high standard deviation means they're spread over a larger range.

Variance = Σ(x − average)² ÷ n (population), or ÷ (n − 1) (sample)
Standard deviation = √Variance

The difference between population and sample lies in the denominator: for a population (where the number set is the entire dataset you're interested in) you divide by n. For a sample (where the number set is a subset drawn from a larger population) you divide by n − 1, known as Bessel's correction. This adjusts for the tendency of a sample to underestimate the actual spread of the whole population.

Note: The sample variant (n − 1) is the most common to use, since the data you have is usually a sample of a larger whole. Use the population variant only when the number set genuinely is the entire dataset you're interested in — for example the exam results of absolutely every student in a class.

Frequently asked questions

What does standard deviation tell me?

Standard deviation tells you how much the values in a dataset typically deviate from the average. A low standard deviation means little spread, while a high standard deviation means large spread in the data.

What's the difference between population and sample?

Population means the number set is the entire dataset you're interested in. Sample means the number set is only a subset drawn from a larger population. The sample calculation is adjusted to give a more reliable estimate of the spread in the whole population.

Why do you divide by n − 1 for a sample?

Dividing by n − 1 (Bessel's correction) compensates for the fact that a sample usually underestimates the actual spread in the whole population. This gives a more accurate estimate of the population's standard deviation when you only have a sample available.