Math

Standard Deviation Calculator

Standard deviation measures how spread out a set of numbers is around their mean. Paste in your values, choose population or sample, and the calculator returns the mean, variance, standard deviation, range and each value's z-score.

Result
—
Standard deviation (σ)
—
Mean (x̄)
—
Variance
—
Range
—
Z-score of first value
—

How standard deviation works

The mean (average) tells you where the data sits; the standard deviation tells you how far from that centre the values typically fall. The calculation squares each deviation from the mean, sums them, and takes a square root:

σ = √[ Σ(x − x̄)² ÷ N ]  (population)  ·  s = √[ Σ(x − x̄)² ÷ (N − 1) ]   (sample)

The population form (divide by N) is right when you have every member of the group. The sample form (divide by N − 1) is right when your list is a sample of a larger population — dividing by N − 1 corrects the downward bias that the plain average would give. The variance is simply the standard deviation squared, which is why it is reported in squared units and standard deviation in the original units.

Worked example

Take the classic set 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5. Squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, summing to 32. Population variance = 32 ÷ 8 = 4, so σ = √4 = 2. As a sample, variance = 32 ÷ 7 ≈ 4.571 and s ≈ 2.138. The interpretation: values typically sit about 2 units from the average, and the 9 sits at z = +2 — a clear outlier worth a look.

How to read it

For a roughly bell-shaped (normal) distribution, about 68% of values lie within 1σ, 95% within 2σ and 99.7% within 3σ. That is the empirical rule behind quality control limits, risk bands and "how many standard deviations from the mean" reporting. A large standard deviation relative to the mean (high coefficient of variation) means the numbers are highly variable relative to their size.

Frequently asked questions

1. What does standard deviation tell me?

It measures typical spread around the mean: a small standard deviation means values cluster tightly near the average, a large one means they are widely scattered.

2. Population or sample — which should I use?

Use population (divide by N) when your list covers the entire group you care about. Use sample (divide by N−1) when the list is a subset drawn from a larger population, as with a survey.

3. Why is the variance the standard deviation squared?

Squaring removes the negative signs from deviations below the mean, which is necessary because a spread cannot be negative. Taking the square root at the end returns the answer to the original units.

4. What is a z-score?

A z-score measures how many standard deviations a value sits from the mean: z = (x − mean) ÷ standard deviation. Values beyond |2| are commonly flagged as unusual.

Related tools