Standard Deviation Calculator
Paste or type a list of numbers to get the standard deviation, variance, mean, median and range, with the working shown, a margin of error for the mean and a frequency table. Handles both samples and whole populations.
Separate values with commas, spaces or new lines — pasting a spreadsheet column works.
Divides by n − 1 (Bessel's correction) to estimate the spread of a larger group.
- 1. Mean: 144 ÷ 8 = 18
- 2. Squared deviations: subtract the mean from each value, square it, and add them up: Σ(x − μ)² = 192
- 3. Variance: 192 ÷ (8 − 1) = 27.428571
- 4. Standard deviation: s = √27.428571 = 5.237229
| Confidence | Margin | Range for the mean |
|---|---|---|
| 68.3% | ±1.85164 | 16.14836 to 19.85164 |
| 90% | ±3.045678 | 14.954322 to 21.045678 |
| 95% | ±3.629148 | 14.370852 to 21.629148 |
| 99% | ±4.769509 | 13.230491 to 22.769509 |
| 99.9% | ±6.092872 | 11.907128 to 24.092872 |
Uses the normal distribution (z-scores). For small samples a t-distribution gives slightly wider ranges.
| Value | Count | Share |
|---|---|---|
| 23 | 3 | 37.5% |
| 16 | 2 | 25% |
| 10 | 1 | 12.5% |
| 12 | 1 | 12.5% |
| 21 | 1 | 12.5% |
How to use the Standard Deviation Calculator
- Enter your numbers separated by commas, spaces or new lines. You can paste a column straight from a spreadsheet.
- Say whether they are a sample or the whole population.This decides whether the variance divides by n − 1 or by n.
- Read the results as you type. Anything that is not a number is skipped and listed so you can fix it.
Standard Deviation Calculator formulas
Population: σ = √( Σ(x − μ)² ÷ N )
Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
Standard error = SD ÷ √n
Margin of error = z × standard error
The calculator finds the mean first and then sums the squared distances from it. This two-pass method stays accurate even when the values are large and close together, where the shortcut formula can lose most of its precision.
Standard Deviation Calculator worked example
Eight test results: 10, 12, 23, 23, 16, 23, 21, 16.
- Mean: 144 ÷ 8 = 18
- Squared deviations: 64, 36, 25, 25, 4, 25, 9, 4 — total 192
- Population variance: 192 ÷ 8 = 24, so σ = √24 ≈ 4.899
- Sample variance: 192 ÷ 7 ≈ 27.43, so s ≈ 5.237
Standard Deviation Calculator FAQ
Population (÷n) for the whole group; sample (÷n−1) for a subset estimating the whole.
Never — it's a square root; minimum is zero.
Variance = average squared distance from mean; SD = its square root, in the data's original units.
Bessel's correction — fixes the bias from estimating the mean from the sample itself.
Data spread around the average — ~68% of normal data falls within 1 SD, 95% within 2.
=STDEV.P(range) for population, =STDEV.S(range) for sample.