Standard Deviation Calculator
σ = √(Σ(x − μ)² ÷ n)
Understanding Standard Deviation
Standard deviation measures how spread out numbers are from their average (mean). A low standard deviation means data points cluster tightly around the mean; a high standard deviation means they are widely dispersed. If two classes both average 75 on a test but Class A has scores ranging from 73 to 77 while Class B ranges from 50 to 100, Class B has a much larger standard deviation even though the means are identical.
The calculation proceeds in three steps. First, find the mean (x̄) of all values. Second, compute the variance — the average of the squared differences from the mean: σ² = Σ(xᵢ − x̄)² ÷ n. Third, take the square root of the variance to get the standard deviation: σ = √σ². Squaring the differences ensures all deviations are positive before averaging, and taking the square root at the end returns the result to the original units (dollars, points, meters, etc.).
Consider the data set {2, 4, 6}. The mean is 4. The squared differences are (2−4)² = 4, (4−4)² = 0, and (6−4)² = 4. The variance is (4 + 0 + 4) ÷ 3 = 8/3 ≈ 2.667, and the standard deviation is √(8/3) ≈ 1.633. Each value deviates from the mean by roughly 1.6 units on average.
This calculator uses the population standard deviation formula (divide by n). The sample standard deviation, used when your data is a sample rather than the entire population, divides by (n − 1) instead — Bessel's correction. For large data sets the difference is small, but for small samples it matters in scientific research. In finance, standard deviation of returns measures investment volatility. In quality control, it tracks manufacturing consistency. In education, it helps compare score distributions across classes.
Interpreting standard deviation in context is essential. A standard deviation of 5 points on a 100-point test means most scores fall within about 5 points of the mean (assuming a normal distribution, roughly 68% fall within one standard deviation). Always report standard deviation alongside the mean — the mean alone tells you the center, but the standard deviation tells you how reliable or variable that center is.
Examples
| Example | Result |
|---|---|
| Std dev of 2, 4, 6 | ≈ 1.633 |
| Std dev of 10, 20, 30 | ≈ 8.165 |
| Std dev of 5, 5, 5, 5 | 0 |
| Std dev of 2, 4, 4, 4, 5, 5, 7, 9 | 2 |
| Std dev of 1, 2, 3, 4, 5 | ≈ 1.414 |
| Std dev of 100, 100, 100 | 0 |
| Std dev of 0, 10 | 5 |
Frequently asked questions
Variance is the average of squared deviations from the mean. Standard deviation is the square root of variance, returning to the original units of measurement.
Population SD divides by n (all data). Sample SD divides by n−1 (Bessel's correction) when data is a sample of a larger population. This calculator uses the population formula.
Yes. If every value in the set is identical, all deviations from the mean are zero and the standard deviation is exactly 0.