Social media growth services from EthicalSMM

Standard Deviation Calculator

Paste a list of numbers to get the sample and population standard deviation, variance, mean, range and coefficient of variation.

Was this tool helpful?

Thanks for the feedback!

This calculator takes a list of numbers and tells you how spread out they are. It gives the sample and population standard deviation, both variances, the mean, the range and the coefficient of variation in one go. It suits students checking statistics homework, teachers comparing class results and anyone who wants to know how consistent a set of figures is.

What to enter

Type or paste your data into Numbers (separated by commas, spaces or new lines). You can copy a column straight from a spreadsheet, since new lines count as separators. Semicolons work too. Decimals and negative numbers are fine.

The Headline result menu picks which figure is shown in large type: Sample standard deviation (s) or Population standard deviation (σ). Both values are always listed underneath, so the choice only changes the headline and the coefficient of variation, which is worked out from whichever one you pick.

Sample or population: which one do you need?

Use the population figure when your list contains every member of the group you care about, for example the marks of all 40 students in one class when you only want to describe that class. Use the sample figure when your numbers are a subset you are using to estimate a larger group, such as 50 survey replies standing in for a whole city.

The difference is in the last step. Both start the same way:

  1. Find the mean (add the numbers and divide by the count, n).
  2. Subtract the mean from each number and square the result.
  3. Add up those squared differences.
  4. Divide by n for the population variance, or by n − 1 for the sample variance.
  5. Take the square root to get the standard deviation.

Dividing by n − 1 (Bessel's correction) makes the sample result slightly larger, which corrects for the fact that a small sample tends to underestimate the spread of the full group. With the textbook data 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the population standard deviation is exactly 2, and the sample standard deviation is 2.1381. In an exam, follow the formula your textbook gives; the tool shows both so you can match either.

Worked example: three students with the same average

Three students each scored a total of 389 across five unit tests, so all three have a mean of 77.8. Their standard deviations tell very different stories.

MarksSample sPopulation σRange
76, 78, 77, 79, 791.30381.16623
72, 85, 90, 64, 7810.30539.217426
60, 95, 55, 98, 8119.690117.611443

The first student is very steady. The third swings between the 50s and the high 90s. For the middle set the tool also shows a sample variance of 106.2, a population variance of 84.96 and a coefficient of variation of 13.25% (using the sample figure). The coefficient of variation is the standard deviation divided by the mean, as a percentage, which lets you compare spread between data sets with different averages, such as marks out of 100 and marks out of 25.

Errors and edge cases

  • A single number gives the message "Enter at least two numbers." A sample standard deviation is not defined for one value.
  • Any entry that is not a number stops the calculation and names it, for example: "abc" is not a number. Remove units such as % or ₹ before pasting.
  • Do not use commas as thousands separators. The tool treats a comma as a break between values, so 1,250 is read as two numbers, 1 and 250. Paste 1250 instead.
  • If the mean is exactly zero the coefficient of variation is shown as a dash, because dividing by zero has no meaning.

If you only need the mean, median or mode, the average calculator is quicker. To see where a single score sits within the group, use the percentile calculator.

Frequently asked questions

What is the difference between sample and population standard deviation?
Population standard deviation divides the sum of squared differences by n, and is used when your data covers the whole group. Sample standard deviation divides by n − 1 and is used when your data is a sample from a larger group, so it comes out slightly higher.
What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?
The mean is 5, the population standard deviation is exactly 2 and the sample standard deviation is 2.1381. The population variance is 4 and the sample variance is 4.5714.
Is a high standard deviation good or bad?
Neither on its own. A high value means the numbers are widely spread around the mean, which for exam marks suggests inconsistent performance, while a low value means they sit close to the average.
How is variance related to standard deviation?
Variance is the standard deviation squared, or put the other way, the standard deviation is the square root of the variance. Standard deviation is easier to read because it is in the same units as your data.
What does the coefficient of variation tell me?
It is the standard deviation divided by the mean, shown as a percentage. It lets you compare the spread of data sets that have different averages or units.
Why does the calculator say a number is not valid?
Each item must be a plain number. Remove symbols such as %, ₹ or text labels, and do not use commas inside numbers, because commas are read as separators between values.

Related guides

Related tools

People also used

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.