Standard Deviation Calculator
Calculate mean, median, variance, and standard deviation for any data set.
Returns population (σ) and sample (s) values with the full step-by-step working.
Standard deviation measures how spread out values are around the mean (average). A small standard deviation means values cluster tightly together; a large one means they are spread widely apart.
Population standard deviation formula: σ = √(Σ(xᵢ − μ)² / N)
Sample standard deviation formula: s = √(Σ(xᵢ − x̄)² / (n − 1))
Use population formula when you have all possible data. Use sample formula when your data is a sample from a larger population (the “n−1” corrects for bias).
Step-by-step worked example: Data: 4, 7, 13, 2, 1, 7
Step 1. Find the mean: (4+7+13+2+1+7)/6 = 34/6 = 5.67
Step 2. Find each value’s distance from the mean, squared: (4−5.67)² = 2.79 (7−5.67)² = 1.77 (13−5.67)² = 53.73 (2−5.67)² = 13.47 (1−5.67)² = 21.81 (7−5.67)² = 1.77
Step 3. Average those squares (population): 95.34 / 6 = 15.89
Step 4. Take the square root: √15.89 = 3.99
Working with the unrounded mean of 5.6667 throughout gives 15.8889 and σ = 3.9861, which is what the calculator reports. The two agree to two decimals, and that gap is worth noticing: rounding the mean early is the most common source of a slightly-off answer in hand calculations.
The sample standard deviation for the same data divides by 5 rather than 6, giving s = 4.3665. It is always the larger of the two, and the gap shrinks as the data set grows.
What standard deviation tells you: In a normal distribution (bell curve):
- 68% of values fall within ±1 standard deviation of the mean
- 95% within ±2 standard deviations
- 99.7% within ±3 standard deviations
Practical uses:
- Finance: stock volatility (higher σ = riskier investment)
- Quality control: product consistency
- Medicine: identifying outliers in patient data
- Education: grade distributions and standardised test scoring
- Sports: consistency of athlete performance
How we build and check this calculator
This calculator runs entirely in your browser, so the numbers you enter stay on your device. The math behind it is written by hand and tested against worked examples and standard references before the page goes live.
SuperGlobalCalculator is independently built and maintained. See how we build and verify our calculators.
More Math Calculators
- Trigonometry Calculator
- Unit Rate Calculator
- Weighted Average Calculator
- Cross-Sectional Area Calculator
- Midrange Calculator
- T-Distribution Calculator (Critical Values and P-Values)
- Jacobian Matrix and Determinant Calculator (2x2)
- Vector Cross Product Calculator
- Arithmetic Sequence Calculator
- Parametric Equations Calculator (x(t), y(t))
- Standard Error Calculator
- Product-to-Sum and Sum-to-Product Calculator