Standard Deviation Calculator

Calculate sample and population standard deviation, variance, mean and count from a list of numbers, with the intermediate steps shown.

What standard deviation measures

Standard deviation summarises how far values typically sit from their mean. Two classes can both average 70% on a test, but a class with stdev 5 is tightly clustered while a class with stdev 20 has both stars and strugglers.

sample: s = √( Σ(x − x̄)² ÷ (n − 1) ) · population: σ = √( Σ(x − μ)² ÷ n )

Sample vs population — the choice that matters

The two formulas differ only in the divisor, but picking the right one matters. Use population (divide by n) when your list is everything you care about — all 6 machines in your shop, every match a team played this season. Use sample (divide by n − 1) when your list is a subset used to estimate a larger group — 50 measured customers standing in for all customers. The n − 1, called Bessel's correction, compensates for the fact that deviations measured from a sample's own mean are systematically a bit too small. With big n the two answers converge; with small n the difference is real. When in doubt, sample is the safer default — which is why it is the headline number here.

Worked example

For the defaults 4, 8, 6, 5, 3, 7: the mean is 33 ÷ 6 = 5.5. The deviations are −1.5, 2.5, 0.5, −0.5, −2.5, 1.5; squared and summed they give Σ(x − x̄)² = 17.5. Sample variance = 17.5 ÷ 5 = 3.5, so s = √3.5 ≈ 1.8708. Population variance = 17.5 ÷ 6 ≈ 2.9167, so σ ≈ 1.7078.

Variance vs standard deviation

Variance is the squared version and lives in squared units (points², kg²), which is awkward to interpret. Taking the square root brings it back to the data's own units — that is all standard deviation is. You need at least two numbers for a sample standard deviation, since with one number there is nothing to deviate from.

Frequently asked questions

Sample or population standard deviation — which one do I need?
If your numbers are the entire group you care about (every student in one class), use population. If they are a sample used to estimate a bigger group (100 voters out of a city), use sample — its n−1 divisor corrects the underestimate a sample causes.
Why divide by n−1 for a sample?
A sample’s deviations are measured from the sample mean, which sits closer to the sample values than the true population mean would. Dividing by n−1 instead of n (Bessel’s correction) inflates the result just enough to make it an unbiased estimate of the population variance.
What is the difference between variance and standard deviation?
Variance is the average squared deviation from the mean; standard deviation is its square root. Standard deviation is usually preferred because it is in the same units as the data — a stdev of 1.87 points means points, not points-squared.
What does a standard deviation of 0 mean?
Every value is identical. The larger the standard deviation, the more spread out the values are around the mean.
How much data falls within one standard deviation?
For roughly bell-shaped (normal) data, about 68% falls within 1 standard deviation of the mean, 95% within 2, and 99.7% within 3 — the "68-95-99.7 rule". Skewed data can deviate from this.