Maaz Zindani

Loading the index…

↑↓ move↵ openesc close3993 pages

Free tool · Math and study

Standard deviation calculator

Paste a list of numbers to get the sample and population standard deviation, the variance and the mean, with a table that shows every squared distance from the mean.

  • Free
  • No sign-up
  • Runs in your browser

By Maaz Zindani · Updated

Is your data a sample or the whole population?
Both answers are always shown in the result. This choice only decides which one is the big headline figure.
Paste a column from a spreadsheet or type them: commas, spaces or new lines all work. Use a dot for decimals. Words and blank cells are skipped; zeros count. With decimal commas (3,5), separate the numbers with semicolons.
Sample standard deviation (s)

2.1381√(32 ÷ 7) = √4.5714

  • Sample: divided by n − 1
  • 8 numbers read
  • Mean 5
Sample SD (n − 1)
2.1381
Population SD (n)
2
Sample variance
4.5714
Population variance
4
Mean
5
Count
8
Sum of squares
32

Each number against the mean

#xx − mean(x − mean)²
12-39
24-11
34-11
44-11
5500
6500
7724
89416
Total40032

Columns are rounded for display (at least 4 decimal places); the sums use the exact mean.

Steps

  1. Find the mean. Add the 8 numbers: 2 + 4 + 4 + 4 + 5 + 5 + 7 + 9 = 40. Divide by the count: 40 ÷ 8 = 5.
  2. Measure each number against the mean. Subtract the mean from each number (the x − mean column in the table), then square the result (the last column). Squaring makes every distance positive, so numbers below the mean do not cancel those above it.
  3. Add the squares. 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32. This total is called the sum of squares.
  4. Divide the sum of squares to get the variance, then take the square root. Sample (divide by n − 1 = 7): variance 32 ÷ 7 ≈ 4.5714, standard deviation √4.5714 ≈ 2.1381. Population (divide by n = 8): variance 32 ÷ 8 = 4, standard deviation √4 = 2.

How to use the Standard Deviation Calculator

  1. Choose Sample (divide by n − 1) if your numbers are a sample of a larger group, or Population (divide by n) if they are the whole group.
  2. Paste or type Your numbers, separated by commas, spaces or new lines, and pick how many decimal places to Round answers to.
  3. Read the standard deviation under Result. The sample and population values, both variances and the mean are shown together.
  4. Follow the table of x − mean and (x − mean)² and the numbered Steps, or press Copy results.

What is the difference between sample and population standard deviation?

Both measure how far the numbers typically sit from their mean. They differ only in the divisor. The population standard deviation divides the sum of squared distances by n, the number of values, and is right when your list is the whole group you care about, such as every score in one class. The sample standard deviation divides by n − 1 and is used when your numbers are only a sample, drawn from a bigger group whose spread you want to estimate. This is the usual source of confusion, so the tool shows both at once and says which one you chose.

For the list the tool opens on, 2, 4, 4, 4, 5, 5, 7, 9, the sum of squares is 32. The population variance is 32 ÷ 8 = 4, so the population standard deviation is exactly 2. The sample variance is 32 ÷ 7 = 4.5714, so the sample standard deviation is 2.1381. The sample value is always the larger of the two when there is more than one number, because it divides by a smaller number. The NIST/SEMATECH e-Handbook of Statistical Methods defines the variance and standard deviation with the n − 1 divisor in its Measures of Scale section. With a single number the sample version cannot be worked out, since n − 1 is 0, and the tool says so. The population value of one number is 0.

How do I calculate standard deviation step by step?

Five steps. First find the mean: 2, 4, 4, 4, 5, 5, 7 and 9 add up to 40, and 40 ÷ 8 = 5. Second, subtract the mean from each number: −3, −1, −1, −1, 0, 0, 2 and 4. Third, square each result, which makes every distance positive: 9, 1, 1, 1, 0, 0, 4 and 16. Fourth, add the squares to get the sum of squares, 32, and divide by n or n − 1 to get the variance. Fifth, take the square root of the variance to get back to the units of your data.

The table under the result lists every number with its x − mean and (x − mean)² so you can check each row, and the steps repeat the divisions with your own numbers. The tool works in exact decimal arithmetic and finds the mean before squaring the distances from it, so a list such as 0.1, 0.2, 0.3 gives a sample standard deviation of exactly 0.1. When the mean does not end, such as 16.6667, the columns are rounded for display but the totals use the exact mean.

How do I find the variance, and what does a high or low standard deviation mean?

The variance is the sum of squares divided by n or n − 1, and the standard deviation is its square root, so variance = standard deviation². The variance is in squared units, such as cm², which is why people usually quote the standard deviation instead. A low standard deviation means the numbers sit close to the mean, and a high one means they are spread out. Two lists can share a mean and still differ: 48, 50, 52 and 20, 50, 80 both have a mean of 50, but their sample standard deviations are 2 and 30. A standard deviation of 0 means every number is the same, and it can never be negative.

Adding the same amount to every number does not change the standard deviation, and multiplying every number by k multiplies it by k. Compare standard deviations only for data in the same units.

Can I paste numbers from a spreadsheet?

Yes. Select a column, copy it and paste it into Your numbers. New lines, tabs, spaces and commas all separate the numbers. Heading words and blank cells are skipped and listed under the result, and zeros are counted as real values. If your numbers use decimal commas, separate them with semicolons. Up to 10,000 numbers are accepted; the table shows the first 25 rows and the totals use all of them. Nothing you paste leaves your device.

Use it with

Questions

What is the difference between sample and population standard deviation?

Population divides the sum of squared distances by n and is for a whole group. Sample divides by n − 1 and is for a sample used to estimate a bigger group. For 2, 4, 4, 4, 5, 5, 7, 9 they are 2 and 2.1381.

How do I calculate standard deviation step by step?

Find the mean, subtract it from each number, square the results, add them, divide by n (population) or n − 1 (sample) to get the variance, then take the square root.

What does a high or low standard deviation mean?

Low means the numbers are close to the mean and high means they are spread out. 48, 50, 52 has a sample standard deviation of 2, and 20, 50, 80 has 30, with the same mean of 50.

How do I find the variance?

Divide the sum of squared distances from the mean by n for a population or n − 1 for a sample. The variance is the square of the standard deviation.

Can I paste numbers from a spreadsheet?

Yes. Paste a column, a row or a comma-separated list. Words and blank cells are skipped and zeros count as numbers.

How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.