Standard Deviation
calculator.
Paste your numbers to get their standard deviation, the working and a histogram.
| # | Value |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 |
- Mean
- 80.00
- Variance s²
- 94.22
- Standard error
- 3.07
- Coefficient of variation
- 12.1%
Your values typically sit about 9.71 from the mean of 80.00. That spread is 12.1% of the mean, and no value lies outside Tukey's fences.
Shape of your data
Dashed lines: mean ± 1 SD10 values from 64 to 95, grouped into 5 classes: 64 to 70.2: 2; 70.2 to 76.4: 1; 76.4 to 82.6: 3; 82.6 to 88.8: 2; 88.8 to 95: 2. The middle half runs from 73.25 to 87.25 around a median of 79.5. One standard deviation either side of the mean covers 70.29 to 89.71.
Working
- 1Mean: add the values and divide by how many there arex̄ = 80010 = 80
- 2Check: deviations from the mean always sum to 0Σ(x − x̄) = 0.00
- 3Square each deviation and add them upΣ(x − x̄)² = 848
- 4Sample variance: divide by n − 1 (Bessel's correction)s² = 8489 = 94.2222
- 5Standard deviation: take the square roots = √94.2222 = 9.71
Compare
The two formulas differ by 0.50. The gap shrinks as n grows; with 10 values it is still worth choosing carefully.
Outliers and the 68-95-99.7 check
- Tukey fences (1.5 × IQR)
- 52.25 to 108.25
- Outliers
- None
- Within 1 SD of the mean
- 6 of 10 · normal 68.3%
- Within 2 SD of the mean
- 10 of 10 · normal 95.4%
- Within 3 SD of the mean
- 10 of 10 · normal 99.7%
Values beyond the fences are outliers by Tukey's rule, and beyond 3 × IQR they are far out (NIST e-Handbook, section 7.1.6). For bell-shaped data about 68%, 95% and 99.7% of values fall within 1, 2 and 3 SD (NIST e-Handbook, section 1.3.6.6.1).
Other measures of spread
- Mean absolute deviation
- 7.80
- Median absolute deviation
- 8.00
- Interquartile range
- 14.00
- Range
- 31.00 (64 to 95)
The two absolute deviations and the interquartile range are less affected by one extreme value than the standard deviation, so compare them when an outlier is flagged.
Which value moves the result most
Each row drops one value and recalculates s from the rest. A big change means the result leans on that reading.
- Drop 64 (row 4)
- s = 8.39 (−1.31)
- Drop 95 (row 7)
- s = 8.65 (−1.06)
- Drop 81 (row 9)
- s = 10.29 (+0.58)
- Drop 78 (row 5)
- s = 10.27 (+0.56)
- Drop 77 (row 10)
- s = 10.23 (+0.53)
Deviation table
| 1 | 72 | −0.82 | −8.00 | 64.00 |
|---|---|---|---|---|
| 2 | 85 | 0.52 | 5.00 | 25.00 |
| 3 | 90 | 1.03 | 10.00 | 100.00 |
| 4 | 64 | −1.65 | −16.00 | 256.00 |
| 5 | 78 | −0.21 | −2.00 | 4.00 |
How it's worked out
Standard deviation measures how far your values typically sit from their mean. The calculator follows the same four steps you would do by hand.
- Find the mean, : add the values and divide by how many there are, .
- Subtract the mean from each value to get its deviation, . These always add up to 0, which is the check in the working.
- Square each deviation and add them. Squaring stops the negative and positive deviations from cancelling out.
- Divide by for a sample or by for a whole population, then take the square root.
For a whole population, divide by instead of :
Here is the sample standard deviation and (sigma) is the population one. The value inside the square root is the variance. It is in squared units, such as square points or square grams, which is why you take the root to get back to the units of your data.
Why ? Your deviations are measured from the sample mean, and the sample mean always sits closer to your own values than the true mean does. Dividing by would make the spread look too small on average. Dividing by one less fixes that. This is called Bessel's correction. With three values such as 4, 7 and 9, it is the difference between s = 2.52 and σ = 2.05.
The standard error, , tells you how precisely the mean is known. The coefficient of variation, , gives the spread as a percentage of the mean, so you can compare data on different scales.
Worked examples
A teacher's ten exam scores
Ms. Ortiz has ten scores out of 100: 72, 85, 90, 64, 78, 88, 95, 70, 81, 77. The mean is 80.00. The squared deviations add up to 848.00. The class is a sample of the students who could take this test, so she divides by 9: s² = 94.22 and s = 9.71 points. Most scores sit within one standard deviation of the mean, between about 70 and 90.
Coffee bag fill weights
A roaster weighs eight bags labeled 500 g: 498, 502, 500, 497, 503, 501, 499, 500 g. The mean is 500 g and s = 2.00 g. The coefficient of variation is 0.4%, so the filler is very consistent. The standard error is 0.71 g, which says how far the mean of these eight bags is likely to be from the true average fill.
Reaction times with one slow reading
A student records seven reaction times in hundredths of a second: 12, 14, 13, 15, 14, 13, 48. The 48 is far from the rest. With it, s = 13.07. Tukey's fences run from 10.75 to 16.75, so 48 is flagged as an outlier. Without it, s drops to 1.05. One reading is responsible for almost all of the spread, so it is worth checking before you report anything.
Reading your result
The standard deviation is in the same units as your data. An s of 9.71 on exam scores means a typical student is about 10 points from the class average. It is not the biggest gap, which is the range.
For bell-shaped data, about 68% of values fall within 1 SD of the mean, 95% within 2 SD and 99.7% within 3 SD. The check card counts how many of your values do this. If your counts are far from those shares, your data are probably skewed, and the median and interquartile range may describe them better.
The tool flags a value as an outlier when it lies more than 1.5 times the interquartile range beyond the first or third quartile. This is Tukey's rule, as used in the NIST e-Handbook. Past 3 times the interquartile range, the value is called far out. An outlier is a reason to check the reading, not proof that it is wrong.
For a quick sanity check, compare s with the range. In bell-shaped data, the range is usually about 3 standard deviations wide when you have 10 values and about 4 when you have 25, because more values reach further into the tails. Ms. Ortiz has ten scores with a range of 31 points and an s of 9.71, which fits that pattern.
Common mistakes
- Using the population formula on a sample. Unless your data cover every member of the group, choose Sample. With ten exam scores the two answers are 9.71 and 9.21.
- Taking the square root too early. Add the squared deviations first, divide, and only then take the root. Rooting each squared deviation just gives back the absolute deviations.
- Reporting the variance as the spread. Variance is in squared units. An exam variance of 94.22 is in square points, which is hard to read.
- Mixing up spreadsheet functions. In Excel and Google Sheets, STDEV.S matches Sample here and STDEV.P matches Population.
- Keeping a typo. A misplaced decimal point, such as 480 for 48, inflates s far more than it moves the mean, because deviations are squared.
Questions people ask
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.5.6: measures of scale
- OpenStax. Introductory Statistics 2e, section 2.7: measures of the spread of the data
- NIST/SEMATECH e-Handbook of Statistical Methods, section 7.1.6: What are outliers in the data?
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.6.6.1: Normal distribution