Standard Deviation Calculator
Calculate the standard deviation and variance of a data set, for a sample (n − 1) and for a whole population (n), with the mean and range.
Enter numbers separated by commas, spaces or new lines (use a dot for decimals).
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Standard Deviation Calculator
- 1 Type or paste your numbers, separated by commas, spaces or new lines.
- 2 Choose the right result: sample if your data are a sample, population if they are the whole group.
- 3 Read the standard deviation, variance, mean and range.
About the Standard Deviation Calculator
The standard deviation measures how far the values typically lie from the mean. A small standard deviation means the values are close together; a large one means they are spread out. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5 and the population standard deviation is exactly 2.
To calculate it, subtract the mean from every value, square the differences and add them up (the sum of squares). Divide by n for the population variance or by n − 1 for the sample variance, and take the square root to get the standard deviation. Dividing by n − 1 (Bessel’s correction) compensates for the fact that a sample tends to underestimate the spread of the whole population.
Use the sample standard deviation when your numbers are a sample from a larger group (survey answers, measurements), and the population standard deviation when you have every value of the group. Spreadsheets use STDEV.S and STDEV.P for the same two formulas.
Frequently asked questions
Sample or population standard deviation: which one should I use?
Use the sample version (n − 1) when your data are a selection from a larger group, which is almost always the case in research. Use the population version (n) only when you have every member of the group.
What is the difference between variance and standard deviation?
The standard deviation is the square root of the variance. It has the same unit as your data, which makes it easier to interpret.
What does the 68-95-99.7 rule say?
For roughly normally distributed data, about 68% of values lie within 1 standard deviation of the mean, 95% within 2 and 99.7% within 3.
Why is the sample standard deviation empty with one number?
It divides by n − 1, which is 0 for a single value. A spread cannot be estimated from one observation.
Which Excel functions give the same result?
STDEV.S (sample) and STDEV.P (population); for the variance VAR.S and VAR.P.