Standard deviation measures how spread out a data set is — the typical distance of each value from the mean. A small value means the numbers cluster tightly; a large one means they are widely scattered. Paste your numbers, choose sample or population, and this calculator returns the standard deviation, variance, and mean.
How it works
The calculator follows the textbook steps:
- Mean = sum of values ÷ count (n).
- For each value, compute
(value − mean)²and sum them — the sum of squared differences. - Variance = that sum ÷ n for a population, or ÷ (n − 1) for a sample.
- Standard deviation = √variance.
Sample mode requires at least two values (because it divides by n − 1); population mode needs at least one.
Example
For the data set 10, 12, 23, 23, 16, 23, 21, 16 (n = 8):
- Mean = 144 ÷ 8 = 18
- Sum of squared differences = 64 + 36 + 25 + 25 + 4 + 25 + 9 + 4 = 192
- Sample variance = 192 ÷ 7 ≈ 27.43, sample SD ≈ 5.24
- Population variance = 192 ÷ 8 = 24, population SD ≈ 4.90
| Measure | Sample (n − 1) | Population (n) |
|---|---|---|
| Variance | 27.43 | 24.00 |
| Std deviation | 5.24 | 4.90 |
| Mean | 18 | 18 |
Everything is computed in your browser, so nothing you enter is uploaded.