What Is Standard Deviation?
Standard deviation (SD) is a measure of how spread out the values in a data set are around the mean.
A small SD means the values cluster close to the mean, and a large SD means they spread widely. Exam scores with a mean of 80 and an SD of 5 are tightly grouped; scores with an SD of 15 range much more. Karl Pearson introduced the term "standard deviation" in 1894. The SD feeds into z-scores, standard errors and every test in the Z Test Calculator.
Standard Deviation Formulas
There are 2 standard deviation formulas.
Sample Standard Deviation (s)
Use the sample SD when the data are a sample from a larger population, which is the usual case.
Population Standard Deviation (σ)
Use the population SD when the data include every member of the population, such as the scores of all 8 students in one class when that class is the whole group of interest.
Why Divide by n − 1? (Bessel's Correction)
Dividing by n − 1 corrects the bias that comes from measuring deviations around the sample mean instead of the true mean. The sample mean sits closer to its own data than μ does, so Σ(x − x̄)² runs slightly small. Dividing by n − 1 instead of n makes the sample variance an unbiased estimate of σ². The fix is named after the astronomer Friedrich Bessel. The difference matters for small samples: with n = 8, the sample SD is about 7% larger than the population SD.
How to Use the Standard Deviation Calculator
To use the standard deviation calculator, follow 2 steps:
- Paste the data, separated by commas, spaces or new lines.
- Choose "Sample" (divide by n − 1) or "Population" (divide by N).
The calculator shows the SD, the variance, the mean, the sum of squares and the coefficient of variation. The chart draws each squared deviation as a real square around the mean line: the variance is the average area of these squares, and the SD is the side of that average square.
How to Calculate Standard Deviation by Hand (Step-by-Step Table)
To calculate a sample standard deviation by hand, follow 5 steps:
- Calculate the mean x̄.
- Subtract the mean from each value: x − x̄.
- Square each deviation.
- Add the squares and divide by n − 1 to get the variance.
- Take the square root.
| Score (x) | x − x̄ | (x − x̄)² |
|---|---|---|
| 72 | −8.25 | 68.06 |
| 85 | 4.75 | 22.56 |
| 90 | 9.75 | 95.06 |
| 64 | −16.25 | 264.06 |
| 78 | −2.25 | 5.06 |
| 88 | 7.75 | 60.06 |
| 95 | 14.75 | 217.56 |
| 70 | −10.25 | 105.06 |
| Total | 0 | 837.50 |
Variance vs. Standard Deviation
Variance is the average squared deviation, and standard deviation is the square root of the variance. Variance is in squared units (points²), which makes it hard to read; the SD is back in the original units (points). Variances add when independent quantities are combined, so formulas often work with variance and report the SD.
How to Interpret Standard Deviation
Interpret the SD as the typical distance of a value from the mean. For roughly normal data, about 68% of values fall within ±1 SD of the mean and 95% within ±2 SD. With a mean of 80.25 and an SD of 10.94, about two-thirds of scores fall between 69.3 and 91.2.
Standard Deviation Example: Exam Scores
8 students score 72, 85, 90, 64, 78, 88, 95 and 70.
- Meanx̄ = 642 / 8 = 80.25
- Sum of squaresΣ(x − x̄)² = 837.50
- Sample variances² = 837.50 / 7 = 119.64
- Sample SDs = √119.64 = 10.94
- Population SDσ = √(837.50 / 8) = 10.23
Coefficient of Variation
The coefficient of variation (CV) is the SD divided by the mean, as a percentage: CV = s / x̄ × 100%. The CV compares spread across data sets with different units or means. The exam scores have CV = 10.94 / 80.25 = 13.6%. The CV only makes sense for data on a ratio scale with a true zero.
FAQs
Can standard deviation be negative or zero?
No, standard deviation cannot be negative, and it equals zero only when every value is the same. The SD is a square root of a sum of squares, so it is always 0 or positive.
What is a high or low standard deviation?
A standard deviation is high or low only relative to the mean and the context. An SD of 10 is small for incomes in thousands of dollars but large for shoe sizes. The coefficient of variation puts SDs on a common scale: a CV under 10% is usually considered low spread.
Should I use STDEV.S or STDEV.P in Excel?
Use STDEV.S for a sample and STDEV.P for a whole population. STDEV.S divides by n − 1 and STDEV.P divides by N. Most data are samples, so STDEV.S is the usual choice. =STDEV.S(A2:A9) returns 10.94 for the exam scores.
How is standard deviation different from standard error?
Standard deviation measures the spread of individual values, while standard error measures the spread of a sample mean across samples. The standard error equals s / √n, so it shrinks as the sample grows; the SD does not. See both side by side with the sample mean calculator, and express mean differences in SD units with the effect size calculator.
How does standard deviation relate to z-scores?
A z-score divides a value's distance from the mean by the standard deviation: z = (x − x̄) / s. A score of 95 has z = (95 − 80.25) / 10.94 = 1.35. Convert any value with the z score calculator.