KO

σ vs s: population or sample standard deviation?

The difference between population standard deviation σ and sample standard deviation s, when to use each, and a worked example with the data 2, 4, 4, 4, 5, 5, 7, 9. Also how they map to Excel STDEV.P and STDEV.S.

Use σ (divide by n) when your data is the whole population you care about, and s (divide by n − 1) when it is a sample used to estimate a larger population. For 2, 4, 4, 4, 5, 5, 7, 9, σ = 2 and s ≈ 2.138.

The two formulas

Standard deviation measures how spread out data is around its mean. Both versions square each deviation from the mean and add them up; they differ only in what you divide by.

Calculators usually label them σx and sx. In Excel, STDEV.P is σ and STDEV.S (formerly STDEV) is s.

Worked example

The data 2, 4, 4, 4, 5, 5, 7, 9 has n = 8 and mean 40 ÷ 8 = 5.

xx − 5(x − 5)²
2−39
4 (three times)−11 × 3 = 3
5 (twice)00
724
9416
Total32

Open this data on the statistics screen ▸

Why divide by n − 1?

A sample’s mean x̄ is, by construction, the value closest to that sample, so the sum of squared deviations around it tends to come out a little smaller than it would around the true population mean. Dividing by the slightly smaller n − 1 corrects for that and gives an unbiased estimate of the population variance. This is called Bessel’s correction.

Which one should you use?

The gap shrinks as n grows. With n = 100, s is √(100/99) ≈ 1.005 times σ, only about 0.5% larger.

Published 2026-10-06 · Updated 2026-10-06 · Lumen Lab

More guides