Learn how to calculate standard deviation step by step. Covers variance, population vs sample SD, the empirical rule (68-95-99.7), and real-world uses in finance and science.
Standard deviation is the most widely used measure of data spread. It tells you how tightly or loosely clustered your data points are around the average — and understanding it unlocks the ability to interpret everything from investment risk to scientific measurements to quality control. Once you understand what standard deviation actually means, you'll find it in news stories, research papers, and financial reports constantly.
The mean (average) tells you the center of your data. Standard deviation tells you how far typical data points are from that center. A low standard deviation means data points are clustered close to the mean. A high standard deviation means they're spread out widely.
Example: Two investment portfolios both average 8% annual return:
Same average, very different risk profiles — and standard deviation captures this difference.
Mean (x̄) = Sum of all values ÷ Number of values
Deviation for each value = (xᵢ − x̄)
(xᵢ − x̄)²
Squaring eliminates negative values and amplifies large deviations.
Population variance (σ²) = Σ(xᵢ − x̄)² ÷ N
Sample variance (s²) = Σ(xᵢ − x̄)² ÷ (N − 1)
Use N−1 (Bessel's correction) when your data is a sample from a larger population — it makes the estimate unbiased.
Standard deviation = √Variance
The square root brings the units back to the original scale (so standard deviation of heights in inches is also in inches, not square inches).
Dataset: Test scores 72, 85, 90, 78, 95
Interpretation: The typical test score is about 9.19 points away from the class average of 84.
| Population (σ) | Sample (s) | |
|---|---|---|
| Divisor | N | N−1 |
| Use when | You have ALL members of the group | You have a SUBSET of a larger group |
| Example | All 30 students in a class | 200 surveyed from a city of 1M |
| Result | Exact parameter | Unbiased estimate of population σ |
In practice, use sample SD (N−1) for almost all real-world analysis — you almost never have data on an entire population. Excel's STDEV function uses N−1; STDEVP uses N.
For data that follows a normal (bell curve) distribution:
Example: IQ scores are designed to have a mean of 100 and SD of 15:
In investing, standard deviation is the standard measure of volatility. A stock with 20% annual standard deviation of returns is twice as volatile as one with 10% SD. The Sharpe ratio divides excess return by standard deviation to give a risk-adjusted performance measure: Sharpe = (Portfolio Return − Risk-Free Rate) ÷ SD.
In manufacturing, "Six Sigma" refers to operating processes so precisely that defects occur only beyond 6 standard deviations from the mean — a defect rate of 3.4 per million. The "sigma level" of a process directly measures quality using standard deviation.
Clinical trials report standard deviation alongside means to show data spread. A drug that reduces blood pressure by 15 mmHg with SD of 2 mmHg is very consistent; one with SD of 15 mmHg works dramatically for some patients and barely for others — same average, very different clinical reality.
Use our free Standard Deviation Calculator — results appear as you type. No sign-up needed!
🚀 Open Standard Deviation Calculator Free