Standard Deviation Calculator
Enter a list of numbers and choose whether you want the sample SD or population SD.
What does SD mean?
SD stands for standard deviation. It measures how spread out your numbers are around the mean (average). If SD is small, your values are tightly clustered. If SD is large, your values are more spread out.
In practical terms, standard deviation helps you answer questions like:
- Are test scores in this class consistent, or all over the place?
- Is monthly sales performance stable or volatile?
- How much do daily returns of an investment fluctuate?
Standard deviation formula
Population SD
Use this when your dataset includes every value in the population. Here, μ is the population mean and N is the total number of values.
Sample SD
Use this when your data is only a sample of a bigger population. The n − 1 adjustment (Bessel's correction) gives a better estimate of the population spread.
How to calculate SD step by step
- Find the mean (average) of the data.
- Subtract the mean from each value to get deviations.
- Square each deviation.
- Add the squared deviations.
- Divide by n (population) or n − 1 (sample) to get variance.
- Take the square root of the variance.
Worked example
Suppose your data is: 2, 4, 4, 4, 5, 5, 7, 9
Step 1: Mean = (2+4+4+4+5+5+7+9) / 8 = 5
| Value (x) | x - Mean | (x - Mean)² |
|---|---|---|
| 2 | -3 | 9 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 4 | -1 | 1 |
| 5 | 0 | 0 |
| 5 | 0 | 0 |
| 7 | 2 | 4 |
| 9 | 4 | 16 |
Sum of squared deviations = 32.
Population variance = 32 / 8 = 4, so population SD = √4 = 2.
Sample variance = 32 / 7 ≈ 4.5714, so sample SD = √4.5714 ≈ 2.138.
When should you use sample vs population SD?
Use population SD when:
- You have complete data for the full group you care about.
- Example: all 30 students in your specific class.
Use sample SD when:
- You only measured part of a larger group.
- Example: 30 customers surveyed out of 10,000 total customers.
Common mistakes to avoid
- Mixing up variance and SD: SD is the square root of variance.
- Using n instead of n − 1: for sample data, use n − 1.
- Forgetting to square deviations: don’t add raw deviations (they cancel out).
- Rounding too early: keep extra decimals until the final step.
How to interpret standard deviation
Standard deviation is in the same units as your data. That makes it intuitive: if average wait time is 10 minutes and SD is 2 minutes, most waits are fairly close to 10. If SD is 8 minutes, wait times are much more unpredictable.
In roughly bell-shaped (normal) data:
- About 68% of values are within 1 SD of the mean.
- About 95% are within 2 SDs.
- About 99.7% are within 3 SDs.
Quick FAQ
Can SD be negative?
No. Standard deviation is always zero or positive because it is a square root.
What does SD = 0 mean?
All values are exactly the same, with no spread at all.
Is a larger SD always bad?
Not necessarily. It depends on context. In manufacturing, large SD may indicate poor consistency. In investing, larger SD often means higher risk and potentially higher reward.
Final takeaway
If you remember one thing: standard deviation tells you how much your data varies from the average. Use population SD for full populations and sample SD for samples. With the calculator above, you can compute both in seconds and verify your manual work.