How is standard deviation calculated?
Subtract the mean from each value, square the differences, add them up, divide by N (the whole population) or N − 1 (a sample), and take the square root.
Worked example
Mean 5. The squared differences of 2, 4, 4, 4, 5, 5, 7, 9 add up to 32. Divided by 8 that is a variance of 4, so σ = 2. Divided by 7 the variance is 4.5714, so s = 2.138.
Sample or population: which one?
Use the population formula only when your numbers are the whole group. If they are a sample drawn from a larger group, divide by N − 1 (Bessel's correction) so the estimate is not too small.
Questions people ask
What does standard deviation tell you?
How spread out the values are around the mean, in the same units as the data. A small value means the numbers cluster near the mean.
What is the difference between sample and population standard deviation?
Population divides by N and sample by N − 1. For 2, 4, 4, 4, 5, 5, 7, 9: 2 versus 2.138.
What is variance?
The standard deviation squared: the average squared distance from the mean. Here 4 (population) and 4.5714 (sample).
What is the standard error?
The sample standard deviation divided by √N: 0.7559 here. It estimates how far the sample mean is likely to be from the true mean.
What is a good standard deviation?
There is no good or bad value on its own; compare it with the mean and with other data sets in the same units.
Sources
- NIST/SEMATECH: e-Handbook of Statistical Methods: Measures of scale
- OpenStax (Rice University): Introductory Statistics 2e, free open textbook
Related calculators
- Percentage calculator: What is X% of Y, X is what % of Y, and the whole from a part
- Percentage change calculator: Percent increase, decrease and difference between two numbers
- Fraction calculator: Add, subtract, multiply and divide fractions and mixed numbers
- Fraction to decimal calculator: Fractions to decimals and back, with repeating digits
- Ratio calculator: Simplify a ratio, solve a proportion, split a total
- Average calculator: Mean, median, mode and range of a list of numbers
- GPA calculator: Semester and weighted GPA on the 4.0 scale
- Grade calculator: Weighted course grade from your scores
Published by wiseowlcalc · Last updated · Checked by wiseowlcalc against the sources above; not yet reviewed by a named professional (editorial policy).
Calculators give estimates for planning only. They are not financial, tax, legal or medical advice. Check important decisions with a qualified professional.