Exam scores (sample)
Data (commas, spaces or new lines): 72 85 90 66 85 94 78 85 61 99 · Your data is: A sample (divide by n − 1)
Sample standard deviation (s)12.176936
s = 12.176936; 95% CI for the mean 72.7897 to 90.2103.
For the data 12, 15, 9, 18, 14, 11, 16, 13, 20, 12, the mean is 14. Squaring each value’s distance from the mean and summing gives 100. Dividing by n − 1 = 9 gives the variance, 11.111111, so the sample standard deviation is 3.333333.
Sample standard deviation (s)
3.333333
| x | x − mean | (x − mean)² | z-score |
|---|---|---|---|
| 12 | -2 | 4 | -0.6 |
| 15 | 1 | 1 | 0.3 |
| 9 | -5 | 25 | -1.5 |
| 18 | 4 | 16 | 1.2 |
| 14 | 0 | 0 | 0 |
| 11 | -3 | 9 | -0.9 |
| 16 | 2 | 4 | 0.6 |
| 13 | -1 | 1 | -0.3 |
| 20 | 6 | 36 | 1.8 |
| 12 | -2 | 4 | -0.6 |
Understand it
Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values cluster tightly; a large one means they are widely scattered. It is the square root of the variance, the average squared distance from the mean.
This calculator gives sample and population standard deviation and shows every step: a deviation table, the sum of squares and the division by n or n − 1. It also reports z-scores for each value, the standard error, a 95% confidence interval for the mean, and how much of your data falls within one, two and three standard deviations. That last figure is a quick check against the 68-95-99.7 rule for normal data.
Calculations use Welford’s algorithm, which stays accurate even for very large numbers or values that are almost identical.
Data (commas, spaces or new lines): 72 85 90 66 85 94 78 85 61 99 · Your data is: A sample (divide by n − 1)
Sample standard deviation (s)12.176936
s = 12.176936; 95% CI for the mean 72.7897 to 90.2103.
Data (commas, spaces or new lines): 2, 4, 4, 4, 5, 5, 7, 9 · Your data is: The whole population (divide by n)
Population standard deviation (σ)2
σ = 2 exactly, the textbook example.
Data (commas, spaces or new lines): 210 198 225 205 190 215 201 980 208 199 212 204 196 209 203 207 · Your data is: A sample (divide by n − 1)
Sample standard deviation (s)193.807422
SD 193.807422; outliers: 980.
Original analysis
Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.
| n | Ratio √(n ÷ (n−1)) |
|---|---|
| 2 | 1.41 |
| 3 | 1.22 |
| 5 | 1.12 |
| 10 | 1.05 |
| 20 | 1.03 |
| 30 | 1.02 |
| 50 | 1.01 |
| 100 | 1.01 |
A sample’s values sit closer to their own mean than to the true population mean, so dividing by n understates the spread. The correction matters most for small samples: with 5 values, the sample SD is 12% larger than the n-divided figure, but with 100 values the difference is only 0.5%.
| Range | Share of normal data | Outside the range |
|---|---|---|
| mean ± 1 SD | 68.27% | 1 in 3 |
| mean ± 2 SD | 95.45% | 1 in 22 |
| mean ± 3 SD | 99.73% | 1 in 370 |
| mean ± 4 SD | 99.994% | 1 in 15,787 |
For normally distributed data, about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three. Compare these with the “Within ±1/2/3 SD” row for your data: big differences suggest the data is skewed or has outliers.
Yes. Variance is shown directly below the standard deviation. It is the SD squared, in squared units.
Use population SD when your data includes every member of the group you care about, such as all 30 students in a class. Use sample SD when the data is a subset used to estimate a larger group. This is the usual case in research and surveys.
Yes. The table lists the z-score of every value: how many standard deviations it lies above or below the mean.
Find the mean. Subtract it from each value and square the result. Add the squares, divide by n − 1 for a sample (or n for a population), and take the square root.
There is no universal good value. Compare it with the mean: the coefficient of variation (SD ÷ mean) puts it on a common scale. Below about 10% usually counts as low variability.
Standard deviation describes how spread out individual values are. Standard error (SD ÷ √n) describes how precisely the sample mean estimates the true mean. It shrinks as the sample grows.
No. It is a square root of an average of squares, so it is zero (all values equal) or positive.
Calculators for the next question people usually ask after this one.
byBhuvanesh S. Runs through our automated test suite on every build.
Results are estimates. Double-check anything important before relying on it.