Standard Deviation Calculator
Find how spread out a list of numbers is, for a sample or a population.
Last updated 2026-11-26 · How we calculate this
Standard Deviation
Enter at least two numbers to see the standard deviation.
The calculator treats every number equally and needs at least two of them. It does not group data into ranges or weight values by frequency, so a value that occurred five times must be typed five times. Numbers must be plain digits: write 1000 rather than 1,000, and leave out units and currency symbols.
Quick Answer
Standard deviation measures how far numbers typically sit from their mean. Find the mean, square each number's distance from it, add the squares, divide by n − 1 for a sample (or by n for a whole population), then take the square root. For 2, 4, 4, 4, 5, 5, 7 and 9 the sample standard deviation is 2.1381.
How to Use This Calculator
Type or paste your numbers into the box, separated by commas, spaces or new lines, and say whether they are a sample or a whole population. The calculator works out the standard deviation and the variance, and shows the mean and the count it used so you can check nothing was missed. The other version of the standard deviation is shown underneath for comparison, which helps when a textbook, spreadsheet or teacher uses the opposite formula to the one you expected.
- Type or paste your numbers into the box.
- Choose whether they are a sample or a whole population.
- Read the standard deviation and the variance.
- Check the mean and the count to make sure every number was included.
The Formula
Sample: s = √(Σ(x − mean)² ÷ (n − 1)) · Population: σ = √(Σ(x − mean)² ÷ n)
Each number's distance from the mean is squared so that numbers below the mean do not cancel out numbers above it, and so that values far from the mean count for more. Adding the squares and dividing gives the variance, which is in squared units, such as square inches or points squared. Taking the square root brings the answer back to the units of your data, which is why the standard deviation is the figure most people report.
Worked Example
The opening list: 2, 4, 4, 4, 5, 5, 7 and 9 have a mean of 5, and the squared distances from 5 add up to 32. Divided by 7 (one less than the 8 numbers) that is a variance of 4.5714, and its square root is a sample standard deviation of 2.1381. Treated as a whole population, 32 ÷ 8 = 4, so the standard deviation is exactly 2.
Test scores: 85, 92, 78, 90 and 88 have a mean of 86.6. As a sample of a larger class the standard deviation is 5.4589; if these five students are the whole class, it is 4.8826.
Commute times: 22, 25, 31, 28 and 24 minutes have a mean of 26 minutes. The squared distances add up to 50, so the sample variance is 50 ÷ 4 = 12.5 and the standard deviation is 3.5355 minutes.
Frequently Asked Questions
Sources: NIST/SEMATECH e-Handbook of Statistical Methods, Measures of Scale; Statistics Canada, Calculating the variance and standard deviation