🔢 Math

📊 📊 Standard Deviation: How to Calculate and What It Means

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.

⏱️ 9 min read🦉 365tool.net🌍 For everyone worldwide

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.

What Standard Deviation Measures

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:

  • Portfolio A: returns of 7%, 8%, 8%, 9%, 8% → very low SD, consistent
  • Portfolio B: returns of −10%, 2%, 15%, 20%, 13% → high SD, volatile

Same average, very different risk profiles — and standard deviation captures this difference.

The Standard Deviation Formula

Step 1: Find the Mean

Mean (x̄) = Sum of all values ÷ Number of values

Step 2: Find Each Deviation from the Mean

Deviation for each value = (xᵢ − x̄)

Step 3: Square Each Deviation

(xᵢ − x̄)²

Squaring eliminates negative values and amplifies large deviations.

Step 4: Calculate Variance

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.

Step 5: Take the Square Root

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).

Worked Example

Dataset: Test scores 72, 85, 90, 78, 95

  • Step 1: Mean = (72+85+90+78+95) ÷ 5 = 420 ÷ 5 = 84
  • Step 2: Deviations: 72−84=−12, 85−84=1, 90−84=6, 78−84=−6, 95−84=11
  • Step 3: Squared deviations: 144, 1, 36, 36, 121
  • Step 4 (sample): Variance = (144+1+36+36+121) ÷ (5−1) = 338 ÷ 4 = 84.5
  • Step 5: Sample SD = √84.5 = 9.19

Interpretation: The typical test score is about 9.19 points away from the class average of 84.

Population vs. Sample Standard Deviation

Population (σ) Sample (s)
DivisorNN−1
Use whenYou have ALL members of the groupYou have a SUBSET of a larger group
ExampleAll 30 students in a class200 surveyed from a city of 1M
ResultExact parameterUnbiased 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.

The Empirical Rule (68-95-99.7 Rule)

For data that follows a normal (bell curve) distribution:

  • 68% of data falls within 1 standard deviation of the mean (μ ± σ)
  • 95% of data falls within 2 standard deviations (μ ± 2σ)
  • 99.7% of data falls within 3 standard deviations (μ ± 3σ)

Example: IQ scores are designed to have a mean of 100 and SD of 15:

  • 68% of people score between 85 and 115
  • 95% score between 70 and 130
  • 99.7% score between 55 and 145
  • A score above 145 (3 SDs) is exceptionally rare — about 1 in 370 people

Real-World Applications

Finance: Volatility and Risk

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.

Quality Control

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.

Science and Medicine

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.

Try It Yourself! ✨

Use our free Standard Deviation Calculator — results appear as you type. No sign-up needed!

🚀 Open Standard Deviation Calculator Free

❓ Frequently Asked Questions

What is standard deviation?
Standard deviation measures how spread out data points are around the mean. A low SD means data clusters tightly around the average; a high SD means values are widely scattered. It's calculated as the square root of variance: √(Σ(xᵢ − x̄)² ÷ N) for population, or √(Σ(xᵢ − x̄)² ÷ (N−1)) for samples.
What is the difference between population and sample standard deviation?
Population SD (σ) divides by N and is used when you have data on every member of the group. Sample SD (s) divides by N−1 (Bessel's correction) and is used when your data is a subset of a larger population. The N−1 correction makes the sample estimate unbiased. In practice, use sample SD for almost all real-world analysis.
What is the 68-95-99.7 rule?
For normally distributed data: 68% of values fall within 1 standard deviation of the mean, 95% within 2 SDs, and 99.7% within 3 SDs. Example: if exam scores have mean 75 and SD 10, then 68% score between 65 and 85, 95% between 55 and 95, and 99.7% between 45 and 105.
How is standard deviation used in finance?
In finance, standard deviation measures investment volatility (risk). A stock with 20% annual SD is twice as volatile as one with 10% SD. The Sharpe ratio uses SD to measure risk-adjusted return: (Portfolio Return − Risk-Free Rate) ÷ SD. Higher Sharpe = better return per unit of risk taken.
What is the difference between standard deviation and variance?
Variance is the average of squared deviations from the mean. Standard deviation is the square root of variance. Variance is used in statistical formulas because it has better mathematical properties (additivity for independent variables). Standard deviation is more interpretable because it's in the same units as the original data — you can directly compare it to the mean.