How this calculator works
- Step 1Meanx̄ = Σx ÷ nFind the centre of the data.
- Step 2Squared distancesΣ(x − x̄)²Square how far each value is from the mean.
- Step 3Average and root√(… ÷ (n − 1))Divide by n − 1 for a sample, or N for a population.
Standard deviation measures how far values typically sit from their mean. A small value means the data cluster tightly; a large one means they spread out.
The calculator first finds the mean, then the squared distances, so large values that differ only slightly still give exact answers.
Worked example: 2, 4, 4, 4, 5, 5, 7, 9
- Population
σ = √(Σ(x − μ)² ÷ N)- Sample
s = √(Σ(x − x̄)² ÷ (n − 1))
- nCount 8
- x̄Mean 5
- Squared distances9 + 1 + 1 + 1 + 0 + 0 + 4 + 1632
- Population√(32 ÷ 8)2
- Sample√(32 ÷ 7)2.13809
Dividing by n − 1 makes the sample figure slightly larger. It corrects for the sample mean sitting closer to its own data than the true mean would.
Sample or population
- Sample (n − 1)2.13809The data stand for a larger group.
- Population (N)2The data are the whole group.
Read the result
Michelson's 100 speed-of-light readings have a mean of 299.8524 and s = 0.079011, in millions of m/s.
These match the values NIST certifies for that dataset. For roughly bell-shaped data, about two-thirds of values lie within one standard deviation of the mean.
Assumptions and limits
- Exact on hard dataNIST's NumAcc1 gives s = 1 exactly.
- Two or moreA sample needs at least two values.
- Up to 1,000 valuesEach within ±10 lakh crore.
- DisplayRounded to six decimals.
Related statistics tools
Standard deviation measures spread. Scores, intervals and tests build on it.
To place one value against the mean, use the z-score calculator. The confidence interval calculator gives a margin of error, and the average calculator the mean, median and mode.
Common mistakes
Mistake: Using N for a survey sample.
Instead: Divide by n − 1 when the data are a sample.
Mistake: Reporting the variance as the spread.
Instead: Variance is in squared units; take the square root.
Mistake: Mixing units in one list.
Instead: Convert every value to the same unit first.
Checking the method
Every golden case is re-worked with exact fractions, and two NIST certified datasets are reproduced.
An independent script uses exact fractions and the textbook formula. The NIST StRD values for NumAcc1 and Michelso are matched to 13 significant digits.
Read how we test our calculators, or browse more maths calculators.