Standard Deviation Calculator

Use this Standard Deviation Calculator to find the mean, variance and standard deviation of a list of numbers — both the population and sample versions — with a step-by-step table, z-scores, standard error and a five-number summary.

Paste your data separated by commas, spaces or new lines (a column from Excel works). Use the population formula (÷ N) when your numbers are everyone you care about; use the sample formula (÷ n − 1) when they are a subset estimating a bigger group. The sample SD feeds straight into the Confidence Interval Calculator and the Normal Distribution Calculator.

Standard Deviation Calculator

Paste a column from Excel — commas, spaces and new lines all work.

Count (n): 8

Sum: 40.0000

Mean: 5.0000

Median: 4.5000

Five-number summary: 2.0000, 4.0000, 4.5000, 6.0000, 9.0000

Range: 7.0000

Sum of squared deviations (SS): 32.0000

Population variance: 4.0000

Population SD: 2.0000

Sample variance: 4.5714

Sample SD: 2.1381

Standard error: 0.7559

Coefficient of variation: 42.76%

Value (x) Deviation (x − mean) Squared deviation z-score
2.0000 −3.0000 9.0000 −1.4031
4.0000 −1.0000 1.0000 −0.4677
4.0000 −1.0000 1.0000 −0.4677
4.0000 −1.0000 1.0000 −0.4677
5.0000 0.0000 0.0000 0.0000
5.0000 0.0000 0.0000 0.0000
7.0000 2.0000 4.0000 0.9354
9.0000 4.0000 16.0000 1.8708
Total 32.0000

z = (x − mean) ÷ s, using the sample SD when it exists. Quartiles use the median-of-halves (Tukey) method.

Formula

Population σ = √[ Σ(x − μ)² ÷ N ] · Sample s = √[ Σ(x − x̄)² ÷ (n − 1) ]

  • Mean x̄ = Σx ÷ n. Add all the values, then divide by how many there are.
  • Sum of squared deviations SS = Σ(x − x̄)².
  • Variance = SS ÷ N for a population, or SS ÷ (n − 1) for a sample.
  • Standard deviation = √variance, back in the original units.
  • Standard error of the mean = s ÷ √n.
  • Coefficient of variation = s ÷ x̄ × 100%.
  • Use the population formula (÷ N) when the data is the whole group; use the sample formula (÷ n − 1, Bessel’s correction) when the data is a subset estimating a larger group.

Worked Example

Find the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9.

  1. Count and add: n = 8 and Σx = 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40.
  2. Mean: x̄ = 40 ÷ 8 = 5.
  3. Sum of squares: SS = 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
  4. Population variance = 32 ÷ 8 = 4.0000, so σ = √4.0000 = 2.0000.
  5. Sample variance = 32 ÷ 7 = 4.5714, so s = √4.5714 = 2.1381.

Answer: population SD σ = 2.0000 and sample SD s = 2.1381 (mean 5, SS 32).

A second set, 10, 12, 23, 23, 16, 23, 21, 16, has mean 18 and SS 192 — population SD 4.8990 and sample SD 5.2372.

A single value, such as 7, has population SD 0 — there is no spread at all. Its sample SD needs at least 2 values, so the widget says so instead of showing NaN.

Step-by-Step Table

Each value from the worked example, its deviation from the mean of 5, the squared deviation and its z-score:

Value (x) Deviation (x − 5) Squared deviation z-score
2 −3 9 −1.4031
4 −1 1 −0.4677
4 −1 1 −0.4677
4 −1 1 −0.4677
5 0 0 0.0000
5 0 0 0.0000
7 2 4 0.9354
9 4 16 1.8708
Total 32

The squared deviations add to SS = 32. Population variance = 32 ÷ 8 = 4.0000 and sample variance = 32 ÷ 7 = 4.5714.

Latest Videos

Watch this visual explainer on standard deviation, variance and the normal curve:

Frequently Asked Questions

Population vs sample — which do I use?

Use the population formula (÷ N) when your numbers are everyone you care about. Use the sample formula (÷ n − 1) when they are a subset estimating a bigger group — the n − 1 corrects the bias from estimating the mean from the same data.

What does a standard deviation of 2 mean here?

Values typically sit about 2 units from the mean of 5 — most of the data lies roughly between 3 and 7.

Why square the deviations?

So above- and below-average values do not cancel out, and big misses count more than small ones. The square root at the end brings the units back.

How is this different from variance?

Variance is SD squared — 4.00 here — the same information, but in squared units that are harder to read. Standard deviation is in the original units.

More Calculators