Standard Deviation and Variance: Formula, Example and Interpretation
Reviewed by Prof. Dr. Alexander Holtermann · Updated 16 October 2026 · 6 min read
The standard deviation is the typical distance of values from the mean. Variance is its square. Sample formula: SD = √(Σ(x − M)² / (n − 1)).
Key takeaways
- Variance is the average squared deviation from the mean; the standard deviation (SD) is its square root and has the same unit as the data.
- For a sample, divide the sum of squares by n − 1 (Bessel’s correction); for a whole population, divide by N.
- In a normal distribution about 68% of values lie within ±1 SD of the mean, about 95% within ±2 SD and about 99.7% within ±3 SD.
- Do not confuse SD and standard error: the SD describes the spread of individual values; the standard error SE = SD / √n describes the precision of the mean.
- Report the SD together with the mean, in APA style for example M = 5.00, SD = 2.14.
What do variance and standard deviation measure?
Two classes can have the same average exam score and still look completely different: in one, almost everyone scores close to the average; in the other, some people ace the exam and others fail. Measures of variability (dispersion) capture this difference.
The variance takes each value’s deviation from the mean, squares it (so that negative and positive deviations do not cancel out) and averages the squares. Because squaring changes the unit (points become points²), we take the square root and get the standard deviation, which is back in the original unit. You can read it as “the typical distance of a value from the mean”.
- Sample variance:
s² = Σ(x − M)² / (n − 1) - Sample standard deviation:
s = √(Σ(x − M)² / (n − 1)) - Population variance:
σ² = Σ(x − μ)² / N, population SDσ = √σ²
Worked example step by step
Eight students take a 10-point quiz and score: 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40, so the mean is M = 40 / 8 = 5.00.
| Score x | Deviation x − M | Squared deviation (x − M)² |
|---|---|---|
| 2 | −3 | 9 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 4 | −1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Sum | 0 | 32 (sum of squares, SS) |
Why divide by n − 1?
When you compute deviations from the sample mean, they are on average a little too small, because the sample mean is by definition the point that minimizes the squared deviations in that sample. Dividing by n would therefore underestimate the population variance systematically. Dividing by n − 1 corrects this bias (Bessel’s correction).
Another way to see it: once you know the mean and n − 1 deviations, the last deviation is fixed, because all deviations sum to zero. Only n − 1 deviations are free to vary. This number is called the degrees of freedom, a concept you will meet again in the t-test and in ANOVA.
In practice: in a thesis you almost always analyze a sample, so use n − 1. The difference matters for small samples and becomes negligible for large ones.
Interpreting the SD: the 68–95–99.7 rule
If a variable is approximately normally distributed, the standard deviation tells you where most values lie. This empirical rule is a quick plausibility check for your data.
- A z-score expresses a value in SD units:
z = (x − M) / SD. In the quiz, a score of 9 has z = (9 − 5) / 2.14 = 1.87. - Values with |z| > 3 are rare in normal data and worth checking as possible outliers.
- The rule does not hold for strongly skewed data; there, use the median and interquartile range.
| Range | Share of values (normal distribution) | IQ example (M = 100, SD = 15) |
|---|---|---|
| M ± 1 SD | about 68% | 85 to 115 |
| M ± 2 SD | about 95% | 70 to 130 |
| M ± 3 SD | about 99.7% | 55 to 145 |
Standard deviation vs. standard error
These two are mixed up constantly, even in published papers. The standard deviation describes how much individual values vary. The standard error of the mean describes how much the mean itself would vary from sample to sample:
SE = SD / √n
In the quiz example: SE = 2.14 / √8 = 0.76. The SE shrinks as the sample grows, the SD does not: a larger class does not make students more similar, but it does make the class average more precise. Use the SD to describe your sample and the SE (or better, a confidence interval) to describe the precision of an estimate. Error bars in charts must say which one they show.
How to report the standard deviation
APA style reports the SD in parentheses after the mean, both with the same number of decimals (usually two). In tables, use separate columns for M and SD. Never use the ± notation without saying whether it means SD or SE.
Frequently asked questions
What is a good standard deviation?
There is no universally good value. The SD depends on the unit and the scale of the variable. Judge it relative to the mean and the possible range, or compare groups. A small SD means values cluster tightly around the mean.
What is the difference between variance and standard deviation?
The variance is the average squared deviation from the mean; the standard deviation is its square root. The SD is easier to interpret because it has the same unit as the data.
Should I use n or n − 1?
Use n − 1 when your data are a sample and you want to estimate the population spread, which is almost always the case in research. Use N only when you have data for the entire population.
Can the standard deviation be negative?
No. It is the square root of a sum of squares, so it is zero (all values identical) or positive.
What is the difference between SD and SE?
The SD describes the spread of individual values. The standard error SE = SD / √n describes the uncertainty of the mean and gets smaller with larger samples.
Sources and further reading
- Gravetter, F. J., & Wallnau, L. B. (2017). Statistics for the Behavioral Sciences (10th ed.). Cengage.
- Howell, D. C. (2013). Statistical Methods for Psychology (8th ed.). Wadsworth Cengage Learning.
Your university’s examination regulations and style guide always take precedence.
Related articles
- Descriptive statisticsDescriptive statistics summarize your data with numbers, tables and charts: sample size, central tendency (mean, median) and spread (SD, IQR).
- Mean, median, modeThe mean is the arithmetic average, the median the middle value, the mode the most frequent value. Use the median for skewed data or outliers.
- Confidence intervalA 95% confidence interval gives a range of plausible values for a population parameter. It shows both the size of an estimate and its precision.
- Testing for normalityCheck normality with a histogram or Q-Q plot, skewness and kurtosis, and the Shapiro-Wilk test. With large samples, plots matter more than p-values.
- Effect sizeAn effect size tells you how large a difference or relationship is, independent of sample size. Cohen’s d of 0.2, 0.5 and 0.8 is small, medium, large.