Standard Deviation Calculator

Paste a list of numbers to get the sample and population standard deviation and variance. Every step of the working is shown, with a table of each number against the mean.

How it works

First the mean: the sum of the numbers divided by the count. Then each number has the mean taken away from it, and the result is squared. Adding those squares gives the sum of squares.

The population variance is the sum of squares divided by the count, n. The sample variance divides by n − 1 instead. The standard deviation is the square root of the variance in each case.

The working lists each of these steps with your numbers in them. For up to 50 numbers, a table shows every value, its distance from the mean and that distance squared. Everything runs on this page.

How to use it

  1. 1 Type or paste your numbers. Commas, spaces, semicolons and line breaks all separate them.
  2. 2 Pick the Sample section if your numbers are part of a larger group, or Population if they are the whole group.
  3. 3 Check the working below to see how the answer was reached.
  4. 4 Copy any value. Results have 10 significant digits and no thousands separators.

Good to know

  • The example, 2, 4, 4, 4, 5, 5, 7, 9, is the textbook set with a mean of 5 and a population standard deviation of exactly 2. Use it to check the method.
  • If you are not sure which version you need, it is usually the sample one. Surveys, experiments and test batches are all samples.
  • Copy the table into your homework or report to show your working.
  • For the mean, median and mode as well, use the Statistics Calculator. For quartiles and outliers, use Quartiles, IQR and Percentiles.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Standard deviation, one step at a time

Standard deviation measures how far values usually sit from their mean. A small standard deviation means the values cluster tightly. A large one means they are spread out. Two classes can have the same average mark of 70, but in one class every student scored between 65 and 75 while in the other the marks ran from 30 to 100. The mean cannot tell those classes apart. The standard deviation can.

The working is the same every time, and the textbook set 2, 4, 4, 4, 5, 5, 7, 9 shows it well. There are 8 numbers and they add up to 40, so the mean is 5. Take 5 away from each number: −3, −1, −1, −1, 0, 0, 2 and 4. Square each of those: 9, 1, 1, 1, 0, 0, 4 and 16. Add the squares and you get 32, the sum of squares. Divide 32 by the count, 8, and the population variance is 4. Its square root, 2, is the population standard deviation. Paste the set into the tool and the table shows exactly these rows.

The squaring step is there for a reason. If you simply added the distances from the mean, the negative ones would cancel the positive ones, and the total would always be zero. Squaring makes every distance positive and also gives large distances more weight than small ones. Taking the square root at the end brings the answer back into the unit of the data, so the standard deviation of heights in centimetres is a number of centimetres.

The sample version changes one step. Instead of dividing the sum of squares by n, you divide by n − 1. For the set above that is 32 divided by 7, about 4.571, and the sample standard deviation is its square root, about 2.138. The reason is that the mean of a sample sits in the middle of that sample by construction, so the distances to it come out a little smaller than the distances to the true mean of the whole group would. Dividing by one less makes up for it. This is called Bessel's correction. Use the sample figure for survey answers, lab measurements and anything else that is part of a bigger group.

A rough rule helps you read the result. For data that forms a bell shape, about two thirds of the values lie within one standard deviation of the mean, and about 95 out of 100 lie within two. A value more than three standard deviations away is rare and worth checking. The rule does not hold for skewed data such as incomes or waiting times. For those, quartiles and the interquartile range often describe the spread better. The tool takes up to 1 MB of numbers and keeps full precision in the calculation, rounding only for display.

Frequently asked questions

What is the difference between sample and population standard deviation?

The population version divides the sum of squares by n, the count. The sample version divides by n − 1. A sample tends to spread a little less than the group it was drawn from, and the smaller divisor corrects for that. The sample result is always slightly larger.

Which Excel functions match these results?

STDEV.S and VAR.S give the sample standard deviation and variance. STDEV.P and VAR.P give the population ones. The older STDEV and VAR functions are the sample versions.

Why is there no sample standard deviation for one number?

With one number, n − 1 is zero, so the division has no answer. That matches the idea behind it: one measurement tells you nothing about how much measurements vary. The population figure is 0.

Is my data sent anywhere?

No. The numbers are read and worked out in this page. Nothing is uploaded.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.