...

Standard Deviation Calculator

A list of numbers on its own rarely tells the full story. Two classes can share the same average test score and still feel completely different, because in one class everyone scored close to the average and in the other the scores were scattered from very low to very high. This standard deviation calculator measures that scatter for you. In plain words, standard deviation is how spread out the numbers are around the mean. A small standard deviation means the numbers cluster close to the mean. A large one means they are spread far away from it.

Paste or type your numbers into the box, press Calculate, and the tool works out the count, the sum, the mean, the variance and the standard deviation for your numbers, in both the population and the sample forms. It also shows a step table with the deviation and the squared deviation for each number, so you can follow every step of the working instead of trusting a single final answer. Everything runs in your browser on your device. Your numbers are never sent anywhere or stored by this page, and there is no sign-up and no cost.

Quick Answer: Paste your numbers, separated by commas, spaces or new lines, and press Calculate. The tool shows the count, sum, mean, variance and standard deviation, in both population and sample forms, plus a step table that shows the deviation and squared deviation for each number.

Your results will appear here.

Table of Contents

  • How to Use the Standard Deviation Calculator
  • Worked Example
  • Key Features
  • Best Practices and Tips
  • Common Mistakes to Avoid
  • When This Tool Helps — and When It Doesn’t
  • Frequently Asked Questions
  • Related Tools

How to Use the Standard Deviation Calculator

  1. Type or paste your numbers into the box labeled Your numbers (separated by commas, spaces or new lines). You can mix the separators, so a copied column, a comma list and a row of numbers with spaces between them all work.
  2. Check the list once for stray words, currency signs or percent signs, because every entry has to be a plain number for the calculation to run.
  3. Press the Calculate button.
  4. Read the results in the results box: Count, Sum, Mean, Variance (population), Standard deviation (population), Variance (sample) and Standard deviation (sample).
  5. Look at the step table under the results to see the Value, Deviation from mean and Squared deviation for each number, and use it to check the working by hand if you need to.
  6. To run a new set, replace the numbers in the box and press Calculate again. The old results and the old table are replaced.

Worked Example

Use the classic textbook set: 2, 4, 4, 4, 5, 5, 7, 9. Paste those numbers into the box and press Calculate. The first three lines are the simple parts. The count is 8, because there are eight numbers. The sum is 40, because 2 plus 4 plus 4 plus 4 plus 5 plus 5 plus 7 plus 9 adds up to 40. The mean is 5, because 40 divided by 8 is 5. Every later step is measured against that mean of 5, so it is worth pausing here: if the mean is wrong, everything after it will be wrong too.

The step table then does the heart of the calculation, one number at a time. For each value it subtracts the mean to get the deviation, and then it multiplies that deviation by itself to get the squared deviation. For this set the deviations are minus 3, minus 1, minus 1, minus 1, 0, 0, 2 and 4. Notice that the deviations always add up to zero, which is a useful check on your own working. The 2 sits three below the mean, the three 4s each sit one below it, the two 5s sit exactly on it, the 7 sits two above it and the 9 sits four above it. Squaring removes the minus signs and gives 9, 1, 1, 1, 0, 0, 4 and 16. Squaring also gives the numbers that sit far from the mean more weight, which is exactly what a measure of spread should do. Add the squared deviations together and you get 32. That total, 32, is the shared starting point for both forms of the answer.

For the population form, divide 32 by the count, which is 8. That gives a population variance of 4. The standard deviation is the square root of the variance, and the square root of 4 is 2, so the population standard deviation is 2. For the sample form, divide the same 32 by one less than the count, which is 7. That gives a sample variance of 4.5714, and its square root is a sample standard deviation of 2.1381. The tool shows exactly these lines for this set: Count: 8, Sum: 40, Mean: 5, Variance (population): 4, Standard deviation (population): 2, Variance (sample): 4.5714 and Standard deviation (sample): 2.1381.

Why does the sample form divide by one less? Because a sample is only part of a larger group, and the sample mean is drawn from the same numbers you are measuring. The deviations from that sample mean tend to come out a little too small, so the result would understate the spread of the full group. Dividing by one less makes the sample variance a little larger and corrects for that built-in understatement. The smaller the sample, the bigger the difference this correction makes. With eight numbers it moves the standard deviation from 2 to 2.1381. With hundreds of numbers the two forms would sit very close together.

Key Features

  • Full results in one press: count, sum, mean, variance and standard deviation, with both the population and the sample forms shown side by side.
  • A step table for each number shows its value, its deviation from the mean and its squared deviation, so the working behind the answer is open to check.
  • Flexible input: numbers can be separated by commas, spaces, tabs or new lines, and the separators can be mixed in a single list.
  • Clear error messages: a non-number entry and an empty box each get their own plain message instead of a wrong answer or a silent failure.
  • Results are rounded to 4 decimal places with trailing zeros dropped, so whole numbers read cleanly and long decimals stay readable.
  • Everything runs in your browser on your device: your numbers are never sent anywhere or stored, and the tool is free with no sign-up.

Best Practices and Tips

  • Decide before you calculate whether your numbers are the whole group or a sample from it, and then quote the matching form. The tool shows both, but your report should name the one you used.
  • Read the standard deviation next to the mean, never on its own. A standard deviation of 2 means something very different around a mean of 5 than it does around a mean of 500.
  • Use the step table to spot outliers. A number with a very large squared deviation is pulling the spread upward, and it is worth checking whether that entry is real or a typing error.
  • Keep the units in mind. The variance is in squared units, which are hard to picture, while the standard deviation is in the same units as your original numbers, so it is usually the better figure to share.
  • Save the raw list you pasted, not just the answer. If a number is later corrected, you can rerun the same list with the fix instead of rebuilding it from memory.

Common Mistakes to Avoid

  • Quoting the population form for sample data, or the sample form for a complete group. The two answers differ, and using the wrong one is the most common error with this calculation.
  • Leaving a word, a currency sign or a percent sign in the list. The tool will stop and tell you that one of the entries is not a number, so clean the list and run it again.
  • Treating the variance and the standard deviation as the same thing. The standard deviation is the square root of the variance, and the two numbers have different units and different sizes.
  • Reading a large standard deviation as a mistake. It often just means the data really is spread out, and that spread may be the most important finding in the set.
  • Rounding the mean or the deviations by hand in the middle of a manual check. Small early rounding grows step by step, so compare your final answer with the tool instead of rounding as you go.

When This Tool Helps — and When It Doesn’t

This tool helps whenever you need a fast and checkable measure of spread: homework and class exercises, lab results, test scores, survey responses, quality checks on a production line, or a quick look at how consistent a set of measurements, prices or times really is. The step table makes it a good fit for learning and for checking, because you can see each deviation and each squared deviation rather than only the final figure. It also helps when you need both forms at once, since the population and sample results are shown together and you can compare them before you decide which one to quote.

It does not explain why the numbers are spread out, and it cannot tell you whether the spread is acceptable for your purpose. That judgment depends on your field, your target and your tolerance for variation. It also works only on the numbers you paste in. It does not collect data, import files, draw charts or test whether differences between groups are statistically meaningful. For a single list of numbers and a clear, step-by-step standard deviation, it does the job. For study design, charts or formal statistical tests, you will need other tools alongside it.

Frequently Asked Questions

What is the difference between population and sample standard deviation?

Use the population form when your numbers are the whole group you care about, for example the test scores of one class and no one else. Use the sample form when your numbers are only part of a larger group, for example the scores of one class used to estimate the spread for a whole school. The working is the same until the dividing step. The population form divides the total of the squared deviations by the count. The sample form divides by one less than the count, which makes the answer a little larger and corrects for the fact that a sample tends to understate the spread of the full group.

Why is there only one number in my list and no sample result?

The sample form needs at least 2 numbers, because it divides by one less than the count, and one less than 1 is 0, and dividing by 0 is not possible. With a single number the tool still shows the count, the sum, the mean and the population figures, which are both 0 because a single number sits exactly on its own mean. The two sample lines explain the situation in words instead of showing a figure.

How are the results rounded, and can I paste numbers in a column?

Yes, a column works fine, because new lines are accepted as separators, along with commas, spaces and tabs, and you can mix them in one list. Every result is rounded to 4 decimal places, and trailing zeros are dropped, so a result of exactly 4 shows as 4 and a longer result shows in the shorter rounded form. The step table uses the same rounding for the deviation and squared deviation columns.

Related Tools