Understand your result
Standard Deviation Calculator guide
Standard deviation turns a list of numbers into one measure of spread. The calculation is short, but small choices such as population versus sample change the answer, so it helps to know what each step means.
A worked check with a small dataset
Take the numbers 2, 4, 4, 4, 5, 5, 7 and 9. They add up to 40, so the mean is 40 รท 8 = 5. The deviations from the mean are โ3, โ1, โ1, โ1, 0, 0, 2 and 4. Squaring them gives 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32.
If these eight numbers are the whole group, the population variance is 32 รท 8 = 4 and the population standard deviation is โ4 = 2. If they are a sample, the sample variance is 32 รท 7 โ 4.5714 and the sample standard deviation is about 2.1381. The sample value is larger because the divisor is smaller.
Choosing population or sample
Ask whether your numbers are everything you care about or a subset. The heights of all students in a class, when the class is the whole group, call for the population formula. The heights of 30 students used to learn about all students in a school call for the sample formula.
When in doubt, most data analysis uses the sample formula, since data are usually a sample of something larger. With a large dataset the two results are nearly the same, but with a small dataset the difference can be large.
What the standard deviation tells you
A standard deviation of 2 around a mean of 5 means values typically lie about 2 units from the mean. For bell-shaped data, about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three.
The number is only meaningful relative to the data. A standard deviation of 5 is large for test scores that range from 70 to 80 and tiny for house prices. The coefficient of variation, which divides by the mean, helps compare datasets with different scales.
Common mistakes
The most common mistake is using the wrong divisor, so check whether you need n or n โ 1. Others include forgetting to take the square root at the end, using the median instead of the mean, rounding the mean too early and letting a typing mistake, such as a misplaced decimal point, create an outlier.
Standard deviation is also sensitive to outliers because deviations are squared. If one value is far from the others, check that it is correct before relying on the result, and consider reporting the median and interquartile range as well.
Continue with a related calculation
- Z-Score Calculator
Convert a value to standard deviations from the mean and find its percentile.
- Percentage Calculator
Calculate percentages and percent change.
- Scientific Calculator
Check square roots and other calculations.
- Fraction Calculator
Work with exact fractions.
References and further reading
- NIST/SEMATECH e-Handbook of Statistical Methods: Measures of scale
Definitions of standard deviation and other measures of spread.
- Wolfram MathWorld: Standard Deviation
Population and sample formulas.
- Wolfram MathWorld: Variance
Variance and Bessel's correction.
- Khan Academy: Calculating standard deviation step by step
A free lesson with worked examples.