Standard Deviation Calculator
Paste a list of numbers and get the standard deviation (sample or population), the variance, the mean, the sum and the count.
How it's calculated
First find the mean (the sum divided by the count). Then square each number's distance from the mean and add those squares up. Divide by n for a population or by n − 1 for a sample to get the variance, and take its square root to get the standard deviation.
- Population: use when your numbers are the whole group you care about.
- Sample: use when your numbers are a subset used to estimate a larger group. Dividing by n − 1 corrects the tendency of a sample to understate the spread.
Worked example
Data: 2, 4, 4, 4, 5, 5, 7, 9. The sum is 40 and the count is 8, so the mean is 5. The squared distances from the mean are 9, 1, 1, 1, 0, 0, 4, 16, which add up to 32.
Population: variance 32 ÷ 8 = 4, standard deviation √4 = 2. Sample: variance 32 ÷ 7 = 4.571429, standard deviation √4.571429 = 2.13809.
Frequently asked
Should I use sample or population?
If your list is everything in the group (all the students in a class, say), use population. If it is a sample drawn from a bigger group, use sample. When in doubt, sample is the usual choice in statistics courses.
What does a larger standard deviation mean?
The numbers are more spread out around the mean. A standard deviation of 0 means every number is identical.
Why does the sample result need two numbers?
The sample formula divides by n − 1, which is zero when there is only one number, so the spread cannot be estimated.
Last updated: October 2026