How to use the Standard Deviation Calculator
- Type or paste your numbers into the box — commas, spaces, semicolons and new lines all work as separators.
- Choose Sample if your data is a subset of a larger group (most common), or Population if it is every member.
- Read the standard deviation, variance and mean. Both the sample and population figures are always shown for comparison.
- Check the step-by-step working and the table of squared deviations; copy the steps or export the table to CSV.
- Optionally enter a value to see its z-score — how many standard deviations it sits from the mean.
What standard deviation tells you
Standard deviation measures how spread out numbers are around their average. A small standard deviation means values cluster tightly around the mean; a large one means they are widely scattered. Two classes can both average 70% on a test, but if one has an SD of 3 and the other an SD of 15, they performed very differently. Because standard deviation is in the same units as your data, it is easier to interpret than variance, which is in squared units.
The formulas
Both follow the same steps: find the mean, subtract it from every value, square those deviations, add them up (the sum of squares), divide, and take the square root. The only difference is the divisor.
Sample or population?
- Use population (N) when your data includes every member of the group you care about — for example, the heights of all 25 students in one class when the class is all you want to describe.
- Use sample (n − 1) when your data is a subset used to estimate a larger group — a survey of 500 voters, 30 parts pulled from a production line, or a clinical trial cohort.
Dividing by n − 1 is called Bessel’s correction. A sample’s values sit, on average, closer to their own mean than to the true population mean, so dividing by n would systematically underestimate the variance. If in doubt, use the sample formula: it is the default in most statistics software and in spreadsheet functions such as STDEV.S (the population version is STDEV.P).
Worked example
Data: 2, 4, 4, 4, 5, 5, 7, 9 (n = 8).
| x | x − x̄ | (x − x̄)² |
|---|---|---|
| 2 | −3 | 9 |
| 4 (×3) | −1 | 1 each → 3 |
| 5 (×2) | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
| Σ | 0 | 32 |
- Mean: 40 ÷ 8 = 5.
- Sum of squared deviations: 9 + 3 + 0 + 4 + 16 = 32.
- Population variance: 32 ÷ 8 = 4, so σ = 2.
- Sample variance: 32 ÷ 7 ≈ 4.5714, so s ≈ 2.1381.
The value 9 has a z-score of (9 − 5) ÷ 2.1381 ≈ 1.87 using the sample SD, so it lies almost two standard deviations above the mean.
Interpreting standard deviation
For data that is roughly bell-shaped (normally distributed), the 68–95–99.7 rule applies:
| Range | Share of values (normal distribution) |
|---|---|
| mean ± 1 SD | about 68% |
| mean ± 2 SD | about 95% |
| mean ± 3 SD | about 99.7% |
The calculator compares your own data with these benchmarks. Skewed data or data with outliers will not match them, which is itself a useful signal.
The z-score, z = (x − mean) ÷ SD, standardises a value so you can compare across different scales — for example, a score on one exam against a score on another. Values beyond ±2 are unusual and beyond ±3 are rare in normal data. The coefficient of variation (SD ÷ mean) expresses spread as a percentage of the mean, and the standard error of the mean (s ÷ √n) shows how precisely a sample mean estimates the population mean.
Common mistakes
- Using the population formula on sample data, which understates the spread — most noticeable for small samples.
- Forgetting to take the square root and reporting the variance as the SD.
- Letting one outlier dominate: because deviations are squared, a single extreme value can inflate the SD a lot. Check the step table for the largest (x − x̄)².
Need just the mean, median or mode? Try the average calculator.
Frequently asked questions
What is the difference between sample and population standard deviation?
How do I calculate standard deviation by hand?
What is a good or low standard deviation?
What is the relationship between variance and standard deviation?
Can standard deviation be negative?
What does a z-score mean?
Last reviewed November 2026. Results are estimates for information only — see our disclaimer.