Standard Deviation Calculator
Enter your numbers separated by commas or spaces (example: 12, 15, 18, 20). Choose whether you want population or sample standard deviation, then click calculate.
Quick Answer
To calculate standard deviation, you first find the mean (average), then measure how far each value is from that mean, square those distances, average them (with either N or n - 1 in the denominator), and finally take the square root.
In simple terms: standard deviation tells you how spread out your numbers are. A low standard deviation means values are close to the average; a high standard deviation means they are more spread out.
What Is Standard Deviation?
Standard deviation is one of the most common statistics in data analysis, finance, science, and education. It summarizes variability in a dataset with a single number.
- Small SD: data points are tightly clustered around the mean.
- Large SD: data points are more dispersed.
If two classes have the same average test score, standard deviation can reveal whether one class is consistently similar while the other has both very high and very low scores.
Formulas You Need
Population Standard Deviation
Use this when your data includes every member of the full population you care about.
σ = √[ Σ(x - μ)2 / N ]
- σ = population standard deviation
- x = each data point
- μ = population mean
- N = population size
Sample Standard Deviation
Use this when your data is only a sample from a larger population.
s = √[ Σ(x - x̄)2 / (n - 1) ]
- s = sample standard deviation
- x̄ = sample mean
- n = sample size
- (n - 1) = Bessel's correction (helps reduce bias)
Step-by-Step Example
Let's calculate standard deviation for this dataset:
4, 8, 6, 5, 3, 7
-
Find the mean:
(4 + 8 + 6 + 5 + 3 + 7) / 6 = 33 / 6 = 5.5 -
Subtract the mean from each value:
-1.5, 2.5, 0.5, -0.5, -2.5, 1.5 -
Square each deviation:
2.25, 6.25, 0.25, 0.25, 6.25, 2.25 -
Sum squared deviations:
2.25 + 6.25 + 0.25 + 0.25 + 6.25 + 2.25 = 17.5 -
Divide:
Population variance = 17.5 / 6 = 2.9167
Sample variance = 17.5 / 5 = 3.5 -
Take square root:
Population SD = √2.9167 ≈ 1.7078
Sample SD = √3.5 ≈ 1.8708
When to Use Population vs Sample
- Population SD: You have all values (for example, sales from every store in your chain this month).
- Sample SD: You have part of the values and want to infer about the full group (for example, surveying 200 customers out of millions).
When in doubt in real-world analysis, you are usually working with a sample.
Common Mistakes to Avoid
- Using N when you should use n - 1.
- Forgetting to square deviations before averaging.
- Taking absolute values instead of squaring.
- Rounding too early and introducing avoidable error.
- Assuming a high SD is always "bad" (sometimes variability is expected or useful).
How to Interpret the Result
Standard deviation has the same units as your original data. If your data is in dollars, SD is in dollars. If your data is in minutes, SD is in minutes.
For approximately normal data:
- About 68% of values lie within 1 SD of the mean.
- About 95% lie within 2 SD.
- About 99.7% lie within 3 SD.
This "68-95-99.7 rule" helps you quickly understand how unusual a value might be.
Practical Tip
If you need a quick answer, use the calculator above. If you need to explain your method in class, a report, or an interview, show the full manual process so your reasoning is clear.
Final Takeaway
To calculate standard deviation correctly, remember this sequence:
- Find the mean.
- Find each deviation from the mean.
- Square deviations and sum them.
- Divide by N (population) or n - 1 (sample).
- Take the square root.
Once you learn this pattern, you can apply it to grades, finance returns, experiments, quality control, and almost any data-driven problem.