How Standard Deviation Measures Spread, Explained

The standard deviation formula worked through step by step, showing exactly what each part of the calculation represents.

Standard deviation answers a question the average alone can't: not just "what's typical," but "how spread out is everything around that typical value?"

The formula

σ = √(Σ(x − mean)² / N)

In words: find the mean, measure how far each value is from that mean, square those distances (so negative and positive differences don't cancel out), average the squared distances, then take the square root to return to the original units.

Worked example

Take the data set 2, 4, 4, 4, 5. The mean is (2+4+4+4+5)/5 = 19/5 = 3.8. Each value's distance from the mean, squared: (2−3.8)² = 3.24, (4−3.8)² = 0.04 (three times), (5−3.8)² = 1.44. Summing: 3.24 + 0.04 + 0.04 + 0.04 + 1.44 = 4.8. Dividing by N=5: 0.96. Square root: √0.96 ≈ 0.98.

Why squaring matters

If you simply averaged the raw distances from the mean (without squaring), values above and below the mean would cancel out, always producing something close to zero regardless of how spread out the data actually is. Squaring forces every deviation to contribute positively to the total, so genuine spread shows up in the result — the square root at the end just brings the units back to match the original data instead of leaving them "squared."

Two data sets, same mean, different spread

Compare {2, 4, 4, 4, 5} (std dev ≈ 0.98) to {1, 2, 4, 6, 7} — both have a mean of exactly 4, but the second set's values are much further from that mean on average. Calculating its standard deviation gives approximately 2.28, more than double the first set's — even though both data sets share the identical average, the second is clearly "less consistent," and standard deviation is precisely the number that quantifies that difference.

Population vs. sample standard deviation

This calculation (dividing by N) is the population standard deviation, appropriate when your data set is the entire group you care about. If your data is only a sample meant to estimate a larger population, statisticians instead divide by N−1 (Bessel's correction), which produces a slightly larger number to account for the extra uncertainty of working from a sample rather than the full population.

Common mistakes to avoid

  • Forgetting to square the deviations before summing (or forgetting to take the square root at the very end)
  • Using population standard deviation (÷N) when the data is actually a sample of a larger group (should be ÷(N−1))
  • Interpreting a standard deviation of zero as "an error" rather than what it actually means: every single value in the data set is identical

Calculate it directly with the standard deviation calculator, and see how individual values compare to the mean using the z-score calculator.