Standard Deviation Calculator
Paste a list of numbers to get the sample and population standard deviation, variance, mean, count and sum, with a step-by-step table of each value's deviation from the mean and the formula filled in with your numbers.
Separate with commas, spaces or new lines. You can paste a column straight from a spreadsheet.
With only one value the sample standard deviation is undefined (it divides by n − 1 = 0). The population value is 0.
Step-by-step table
| # | x | x − x̄ | (x − x̄)² |
|---|
The two formulas
Both start the same way: find the mean, measure how far each value is from it, square those distances (so negatives do not cancel positives) and add them up. The only difference is what you divide by.
Divide by N when your numbers are the entire group you care about - every student in one class, every sale last month. Divide by n − 1 when your numbers are a sample used to estimate a bigger group. A sample's values sit a little closer to their own mean than to the true mean, so dividing by one less corrects that underestimate (Bessel's correction).
Standard deviation is in the same units as your data, which is why it is easier to read than variance: if a test's scores are roughly bell-shaped with mean 70 and standard deviation 10, about two-thirds of them fall between 60 and 80.
Worked example: 2, 4, 4, 4, 5, 5, 7, 9
What this calculator does not do
- Raw data only: it does not accept a frequency table or grouped data.
- Displayed values are rounded to six decimal places.
- The step table shows up to 200 rows; larger data sets are still calculated in full.
Frequently asked questions
What is the difference between sample and population standard deviation?
Which one should I use?
How is standard deviation calculated?
What is variance?
Why is there no sample standard deviation for one number?
How should I enter the data?
Related free tools
Step-by-step guide: How to calculate standard deviation →