How to Calculate Standard Deviation- A Simple Guide
What Standard Deviation Actually Is
Standard deviation measures how spread out numbers are from their average. That's it. Nothing fancy.
If your data points are clustered tight together, your standard deviation is small. If they're all over the place, your standard deviation is large.
This matters because it tells you how reliable your average is. A low standard deviation means the average represents most of your data. A high standard deviation means your average is basically useless.
When You Need This
- Analyzing test scores or grades
- Measuring investment volatility
- Quality control in manufacturing
- Any situation where you want to know if a number is typical or an outlier
The Formula (Don't Panic)
For a population:
σ = √[Σ(x - μ)² / N]
For a sample:
s = √[Σ(x - x̄)² / (n - 1)]
The difference? Population uses N, sample uses n-1. This correction (Bessel's correction) accounts for the fact that a sample slightly underestimates the true spread.
Breaking Down the Steps
- Find the mean (average) of your numbers
- Subtract the mean from each number (these are your deviations)
- Squared each deviation
- Add all squared deviations together
- Divide by N (population) or n-1 (sample)
- Take the square root
How to Calculate It
Let's use real numbers. Say you have five test scores: 70, 75, 80, 85, 90
Step 1: Find the mean
(70 + 75 + 80 + 85 + 90) ÷ 5 = 80
Step 2: Subtract the mean from each value
- 70 - 80 = -10
- 75 - 80 = -5
- 80 - 80 = 0
- 85 - 80 = 5
- 90 - 80 = 10
Step 3: Square each deviation
- (-10)² = 100
- (-5)² = 25
- 0² = 0
- 5² = 25
- 10² = 100
Step 4: Add the squared deviations
100 + 25 + 0 + 25 + 100 = 250
Step 5: Divide by N (treating this as a population)
250 ÷ 5 = 50
Step 6: Take the square root
√50 ≈ 7.07
Your standard deviation is about 7.07. Most scores fall within 7 points above or below 80.
Population vs Sample: Which One?
| Type | When to Use | Formula |
|---|---|---|
| Population | You have every single data point | Divide by N |
| Sample | You're working with a subset of data | Divide by n-1 |
Most real-world scenarios use samples. You're never going to measure every single person in a country. You survey a few thousand and make inferences.
Using a Calculator or Spreadsheet
Manual calculation works for small datasets. For anything practical, use built-in functions.
Excel / Google Sheets
- STDEV.P = population standard deviation
- STDEV.S = sample standard deviation
Just select your data range: =STDEV.S(A1:A100)
TI-84 Calculator
- Enter your data in L1 (STAT → Edit → Enter values)
- Press STAT → CALC → 1-Var Stats
- Press Enter twice
- Look for "Sx" (sample) or "σx" (population)
Online Calculators
If you need a quick answer without opening software, search for "standard deviation calculator" and plug in your numbers. Most handle both population and sample calculations.
What Your Result Tells You
A standard deviation of 5 means most of your data sits within 5 units above or below the average. About 68% of values fall within one standard deviation in a normal distribution.
Within two standard deviations? Roughly 95% of your data. Within three? Around 99.7%.
This is the 68-95-99.7 rule. It's useful for spotting outliers. Any value beyond three standard deviations from the mean is suspicious.
Common Mistakes
- Using population formula on samples — inflates your confidence intervals
- Forgetting to square the deviations — negative and positive values cancel out, giving you zero
- Confusing variance with standard deviation — variance is squared, standard deviation is the square root of that
The Bottom Line
Standard deviation isn't complicated. Find the mean, calculate how far each point strays from it, square those distances, average them, and take the square root.
Use the population formula when you have everything. Use the sample formula when you're working with a subset. If you're unsure, sample formula is the safer default.