What is standard deviation?
Standard deviation tells you how spread out a set of numbers is around its average. A small standard deviation means the values sit close to the mean, and a large one means they are widely scattered. Two classes can both average 70 on a test, but if one class has scores from 68 to 72 and the other from 40 to 100, the second has a much larger standard deviation.
It is used in statistics, science, finance, quality control and everyday data analysis, wherever you need to describe variability and not only the average.
How to use the standard deviation calculator
- Type or paste your numbers, separated by commas, spaces or new lines.
- Read the sample and population standard deviation, the variance and the mean.
- Open the step-by-step table to see each deviation from the mean.
- Edit the list and watch the results update.
Sample or population?
Use the population standard deviation when your numbers are the whole group you care about, such as every score in one small class. Use the sample standard deviation when your numbers are only a sample from a larger group, such as 30 people surveyed out of a whole city. The sample formula divides by n - 1 instead of n, which is called Bessel's correction, and it gives a better estimate of the spread of the full population. When in doubt, the sample version is the usual choice.
The formulas, step by step
First find the mean. Then subtract the mean from each value and square the differences. Add the squared differences. For the population variance, divide by n. For the sample variance, divide by n - 1. The standard deviation is the square root of the variance.
For the data 2, 4, 4, 4, 5, 5, 7, 9, the mean is 5 and the squared differences add up to 32. The population variance is 32 / 8 = 4, so the population standard deviation is 2. The sample variance is 32 / 7 = 4.571, so the sample standard deviation is 2.138.
What the number tells you
- In a bell-shaped (normal) distribution, about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three.
- The standard error is the standard deviation divided by the square root of the number of values. It shows how precisely the mean is estimated.
- Standard deviation is in the same units as your data, while variance is in squared units.
- Outliers can increase the standard deviation a lot, so check your data for typing mistakes.
Example data set: 2, 4, 4, 4, 5, 5, 7, 9
| Measure | Value |
|---|---|
| Mean | 5 |
| Population standard deviation | 2 |
| Sample standard deviation | 2.138 |
| Population variance | 4 |
| Sample variance | 4.571 |
Frequently Asked Questions
How do I calculate standard deviation?
Find the mean, square each difference from the mean, add them, divide by n or n - 1 and take the square root.
What is the difference between sample and population standard deviation?
The sample version divides by n - 1 and is used when the data is a sample of a larger group.
What is a good standard deviation?
There is no good or bad value. It describes spread, and what counts as large depends on the data.
What is variance?
The average of the squared differences from the mean. Standard deviation is its square root.
What is the empirical rule?
In a normal distribution about 68%, 95% and 99.7% of values lie within one, two and three standard deviations of the mean.
How many numbers do I need?
At least two. More values give a more reliable result.
Is my data stored?
No. Everything is calculated in your browser.