Skip to content
LoveToCalc

Definition — what does that mean?

Sample standard deviation

The square root of the sample variance.

In Swedish: Standardavvikelse för stickprov

Sample standard deviation

The relation

s=Σ(xi−x)²n−1

The standard deviation estimated from a sample: the square root of the sample variance, with n − 1 in the denominator.

Separate the numbers with spaces, commas or semicolons, for example 2.5, 4, 7

s≈2.1381

s equals the square root of (((2 minus 5) squared plus (4 minus 5) squared plus (4 minus 5) squared plus (4 minus 5) squared plus (5 minus 5) squared plus (5 minus 5) squared plus (7 minus 5) squared plus (9 minus 5) squared) divided by (8 minus 1)), equals the square root of (((−3) squared plus (−1) squared plus (−1) squared plus (−1) squared plus 0 squared plus 0 squared plus 2 squared plus 4 squared) divided by 7), equals the square root of ((9 plus 1 plus 1 plus 1 plus 0 plus 0 plus 4 plus 16) divided by 7), equals the square root of (32 divided by 7), is approximately the square root of (4.5714), is approximately 2.1381

Working6 steps

What the formula says

s = √(Σ(xᵢ − x̄)² / (n − 1))

The square root of the sample variance. It is the standard deviation you work out when the values are a sample from a larger group, and it is what the calculator’s s button and the spreadsheet’s STDEV.S give. The formula is a definition.

It differs from the standard deviation σ only in the denominator: n − 1 instead of n. So s is a little larger than σ for the same list, by the factor √(n / (n − 1)), unless all the values are equal.

Worked examples

Eight values. 2, 4, 4, 4, 5, 5, 7, 9 has a sum of squares of 32. The sample variance is 32 / 7 ≈ 4.571, and s = √(32 / 7) ≈ 2.138. The population σ for the same list is 2.

The difference as a factor. √(8/7) ≈ 1.069, so s is just under 7% larger than σ. With a hundred values the factor shrinks to about 1.005.

Common mistakes

Common questions

Which one does the calculator give? Usually both. The button marked s, Sx or σₙ₋₁ gives this one. The one marked σ, σx or σₙ gives the population version. In a spreadsheet, STDEV.S gives this one and STDEV.P gives σ.

Is the difference from σ large? For small samples it shows: for eight values s is just under 7% larger. For a hundred values the difference is about half a percent and seldom shows in a rounded answer.

Why n − 1? Because the mean is worked out from the same sample. The sum of squares around it therefore comes out slightly too small on average, and n − 1 in the denominator makes up for that. The page on the sample variance explains it further.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
sΣ(xi−x)²n−1(2−5)²+(4−5)²+(4−5)²+(4−5)²+(5−5)²+(5−5)²+(7−5)²+(9−5)²8−12.1381

Last reviewed October 6, 2026 ·How pages are reviewed

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.