Standard Deviation Calculator

Measure how spread out a list of values is around its mean, using either population or sample standard deviation.

Answer

Population standard deviation

2

Mean5
Variance4
Count8

Values along the number line

Dots are observations; the highlighted marker is the mean.

Why this answer

Measure typical distance from the mean

Subtract the mean from each value, square those deviations, average them using n or n−1, then take the square root.

Why square: the plain distances from the mean always add to zero (the mean is the balance point), so they cancel. Squares can’t cancel, and they make far-out values count more. The average square’s area is the variance; its side, the square root, is the standard deviation in the original units. A sample divides by n − 1 because its own mean sits closer to its values than the true mean would, which would make the spread look slightly too small.

SD = √variance = √4 = 2

Why it works

Why square the distances?

mean 5012345678910

Step 1 of 4

Distances from the mean

Eight values: 2, 4, 4, 4, 5, 5, 7, 9. Their mean is 5. To measure spread, a first idea is to average how far each value is from the mean.

Add up all the signed distances (value − mean). What do you get?

Make a prediction.

Put it to use

Compare consistency and variability

Standard deviation is widely used in quality control, analytics, experiments, finance, education, manufacturing, and any dataset where spread matters alongside the average.

How it works

Standard deviation tells you how far values typically sit from their mean. A small number means the values cluster tightly. A large number means they are spread out. The result is in the same units as your data, so a standard deviation of 3 minutes is easy to picture.

Paste your numbers separated by commas, spaces, or new lines. The calculator finds the mean, subtracts it from each value, squares each difference, and adds the squares. It then divides that sum by n for a population or by n − 1 for a sample, and takes the square root.

Choose Population (divide by n) when your list holds every value you care about. Choose Sample (divide by n−1) when your list is a subset used to estimate a larger group. The page also shows the mean, the variance, and the count.

Mean: x̄ = Σx ÷ nPopulation: σ = √( Σ(x − μ)² ÷ n )Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

Worked example: Spread of five daily commute times (22, 25, 31, 28, 24 minutes)

  1. Mean: (22 + 25 + 31 + 28 + 24) ÷ 5 = 130 ÷ 5 = 26 minutes.
  2. Deviations: −4, −1, 5, 2, −2. Squares: 16, 1, 25, 4, 4.
  3. Sum of squares: 16 + 1 + 25 + 4 + 4 = 50.
  4. Population: 50 ÷ 5 = 10, and √10 ≈ 3.162 minutes.
  5. Sample: 50 ÷ 4 = 12.5, and √12.5 ≈ 3.536 minutes.

Common mistakes

  • Picking the wrong type. If your numbers are a sample from a bigger group, switch to sample; population will understate the spread.
  • Forgetting to square the deviations. Plain deviations from the mean always add up to zero.
  • Stopping at the variance. Standard deviation is the square root of variance, so check which one your assignment asks for.
  • Mixing units or including a typo like 250 instead of 25. A single outlier can inflate the result a lot.

Frequently asked questions

Should I use sample or population standard deviation?

Use population when you have every member of the group, such as all students in one class. Use sample when your data is a subset meant to represent a larger group, which is the more common case in research and surveys.

Why does the sample formula divide by n − 1?

A sample's values sit closer to their own mean than to the true population mean, so dividing by n underestimates the spread. Dividing by n − 1 (Bessel's correction) makes up for that.

What is a good standard deviation?

There is no universal good value. Judge it against the mean and the context: a 3-minute spread on a 26-minute commute is modest, while a 3-point spread on a 5-point scale is large.

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 the same.