Standard Deviation Calculator
Paste your numbers to get the standard deviation with every step written out: the mean, each value's distance from it, the variance and the final square root.
8 numbers recognised
Separate with commas or spaces, up to 60 values.
A typical value sits about 2.1381 from the mean of 5. 6 of your 8 values fall within one standard deviation of the mean (2.8619 to 7.1381).
The working
4 stepsFind the mean
mean = 40 ÷ 8 = 5Measure each value's distance from the mean
Deviations can be negative, which is why the next step squares them — otherwise they would cancel out.
x x − mean (x − mean)² 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 of squared deviations = 32
Divide by n − 1 (sample)
Sample data divides by n − 1 — Bessel's correction — because a sample tends to underestimate the true spread.
s² = 32 ÷ 7 = 4.571429Take the square root
Variance is in squared units. The square root brings the spread back to the units of your data, which is what makes standard deviation easy to read.
s = √4.571429 ≈ 2.1381- Standard deviation (s)
- 2.1381
- Variance (s²)
- 4.571429
- Mean
- 5
- Population σ (divide by N)
- 2
Works instantly in your browser — nothing is uploaded, and the URL keeps your numbers so you can share the exact worked example.
Standard deviation examples, worked
Each row is computed by the same engine as the calculator above.
| Data | Mean | Sample s | Population σ |
|---|---|---|---|
| 2, 4, 4, 4, 5, 5, 7, 9 | 5 | 2.1381 | 2 |
| 1, 2, 3, 4, 5 | 3 | 1.5811 | 1.4142 |
| 10, 12, 23, 23, 16, 23, 21, 16 | 18 | 5.2372 | 4.899 |
| 6, 8, 10, 12, 14 | 10 | 3.1623 | 2.8284 |
| 3, 7, 7, 19 | 9 | 6.9282 | 6 |
| 85, 90, 78, 92, 88 | 86.6 | 5.4589 | 4.8826 |
Answers are rounded to four decimal places.
The formula, in words
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) ). Population: σ = √( Σ(x − μ)² ÷ N ). The only difference is the divisor. Everything else, the mean, the deviations and the squaring, is the same, which is why this calculator also prints the other version under the answer.
Checking a textbook answer
If your answer is close to the calculator's but not equal, the usual cause is the divisor: you used N where the question wanted n − 1, or the other way round. The second most common cause is rounding the mean too early. This calculator keeps full precision until the last step and rounds the final answer to four decimal places.
Other ways to get the same number
Spreadsheets use STDEV.S for a sample and STDEV.P for a population; Google Sheets uses STDEV and STDEVP. On a TI-84, 1-Var Stats shows Sx (sample) and σx (population). Those give the final number only. Use this page when you need to see or check the working behind it.