How to calculate standard deviation 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.
- Square each deviation (this makes them all positive).
- Add the squares. This is the sum of squares, SS.
- Divide SS by n − 1 for a sample or by N for a whole population. That is the variance.
- Take the square root.
Example: for 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the squared deviations add to 32, so σ = √(32 ÷ 8) = 2 and s = √(32 ÷ 7) ≈ 2.138.
Sample or population?
Use the sample formula (n − 1) when your numbers are a subset used to estimate a larger group: a class survey, lab replicates, 30 bags from a production line. Use the population formula (N) only when you have every member of the group you care about, such as the scores of every student in one class when you only want to describe that class. When unsure, homework almost always wants the sample version. On a TI-84, Sx is sample and σx is population; in Excel, STDEV.S and STDEV.P.
What the number tells you
Standard deviation is in the same units as the data. For roughly bell-shaped data, about 68% of values fall within one SD of the mean and about 95% within two. A small SD means the values cluster tightly; a large one means they are spread out. To compare spread between data sets with different units or very different means, use the coefficient of variation.
Frequently asked questions
Why divide by n − 1 instead of n?
Deviations are measured from the sample mean, which is always the best-fitting centre for that sample, so they come out slightly too small compared with deviations from the true population mean. Dividing by n − 1 (Bessel’s correction) makes the sample variance an unbiased estimate of the population variance.
Can standard deviation be negative?
No. It is the square root of an average of squared numbers, so it is always zero or positive. It is zero only when every value is identical.
What is the difference between standard deviation and variance?
Variance is the average squared deviation; standard deviation is its square root. Standard deviation is easier to interpret because it is in the original units rather than squared units.
How do I find standard deviation on a TI-84?
Enter the data in L1 (STAT → Edit), then STAT → CALC → 1-Var Stats. Sx is the sample standard deviation and σx is the population standard deviation.