Standard Deviation Calculator
Enter numbers separated by commas, spaces, or new lines.
If you have ever looked at a dataset and wondered, "How spread out are these numbers?" then standard deviation is the tool you want. In this guide, you'll learn exactly how to calculate stdev, when to use sample vs. population formulas, and how to interpret your result in plain language.
What is standard deviation?
Standard deviation (often shortened to stdev or SD) measures how far values are from their average (mean), on average. A low standard deviation means values cluster tightly around the mean. A high standard deviation means values are more spread out.
- Low stdev: data points are consistent and close together.
- High stdev: data points are more variable.
Population vs. sample standard deviation
There are two versions of the formula, and choosing the right one matters:
Population standard deviation
Use this when your data includes every member of the group you care about.
- σ = population standard deviation
- μ = population mean
- N = total number of values in the population
Sample standard deviation
Use this when your data is only a sample from a larger population. This uses Bessel's correction (n - 1) to reduce bias.
- s = sample standard deviation
- x̄ = sample mean
- n = sample size
How to calculate stdev step by step
Let's use the numbers: 4, 8, 6, 5, 3.
- Find the mean: (4 + 8 + 6 + 5 + 3) / 5 = 5.2
- Subtract the mean from each value: -1.2, 2.8, 0.8, -0.2, -2.2
- Square each difference: 1.44, 7.84, 0.64, 0.04, 4.84
- Add squared differences: 14.80
- Divide:
- Population variance: 14.80 / 5 = 2.96
- Sample variance: 14.80 / 4 = 3.70
- Take square root:
- Population stdev: √2.96 ≈ 1.720
- Sample stdev: √3.70 ≈ 1.924
How to use the calculator above
- Paste your numbers into the input box.
- Choose Sample or Population.
- Click Calculate Stdev.
- Review count, mean, variance, and both stdev values.
If you are analyzing survey responses, test scores, or other collected observations, sample stdev is usually the right choice. If you truly have all data points (for example, all 12 monthly sales values in a year for one store), population stdev may be appropriate.
How to interpret your result
Standard deviation by itself is useful, but it becomes even more powerful with context:
- Compare stdev across similar datasets.
- Compare stdev to the mean (coefficient of variation can help).
- Use it with normal distribution assumptions to estimate ranges.
For roughly normal data:
- About 68% of values fall within ±1 stdev of the mean.
- About 95% fall within ±2 stdev.
- About 99.7% fall within ±3 stdev.
Common mistakes when calculating stdev
- Using population formula when you should use sample formula.
- Forgetting to square deviations before averaging.
- Stopping at variance and forgetting the square root.
- Typing data with text symbols that cannot be parsed as numbers.
Quick reference in tools
Excel / Google Sheets
- =STDEV.S(range) for sample standard deviation
- =STDEV.P(range) for population standard deviation
Python (NumPy)
- np.std(data) gives population stdev by default
- np.std(data, ddof=1) gives sample stdev
Final takeaway
Learning how to calculate stdev gives you a practical way to measure consistency and risk in data. Whether you work in finance, science, operations, or education, standard deviation helps turn raw numbers into better decisions. Use the calculator above for quick results, and use the manual steps when you need to verify your understanding.