Standard Deviation Calculator

Standard deviation tells you how spread out a set of numbers is around their average. A small standard deviation means the numbers are close together, and a large one means they are spread far apart. It is used in statistics, finance, science and quality control, anywhere you need to know how consistent a set of measurements is. Our free standard deviation calculator works it out for you. Paste your numbers separated by commas, spaces or line breaks, and the calculator shows the count, the mean, the population standard deviation and variance, and the sample standard deviation and variance. All figures are estimates for planning only.

Results are estimates for planning only. No personal data is collected or saved.

How to use this standard deviation calculator

Paste or type your numbers into the box, separated by commas, spaces or line breaks. For example, type 2, 4, 4, 4, 5, 5, 7, 9. Click Calculate Standard Deviation to see how many numbers you entered, their mean (average), the population standard deviation and variance, and the sample standard deviation and variance. Any text that is not a number is ignored. Nothing you enter is saved or shared.

Worked example: 2, 4, 4, 4, 5, 5, 7, 9

Take the eight numbers 2, 4, 4, 4, 5, 5, 7, 9. Their sum is 40, so the mean is 40 ÷ 8 = 5.000000. Each number differs from the mean by −3, −1, −1, −1, 0, 0, 2 and 4. Squaring those differences gives 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. The population variance is 32 ÷ 8 = 4.000000, so the population standard deviation is the square root of 4, which is 2.000000. The sample variance divides by 7 instead of 8, giving 32 ÷ 7 = 4.571429, so the sample standard deviation is 2.138090. This is the classic textbook example, and it shows why the two versions differ: the sample version is slightly larger because it divides by one less.

How standard deviation is calculated

First the calculator finds the mean: add up all the numbers and divide by how many there are. Then it subtracts the mean from each number, squares each difference, and adds those squares up. The population variance is that total divided by the number of values, and the population standard deviation is the square root of the population variance. The sample variance divides the same total by the number of values minus one instead, and the sample standard deviation is the square root of the sample variance. Use the population version when your numbers are the whole group you care about, and the sample version when your numbers are a sample taken from a larger group.

Frequently asked questions

What is standard deviation?

Standard deviation is a number that measures how spread out a set of values is around their mean. A low standard deviation means most values sit close to the average, and a high one means they are spread widely. It is always in the same units as the original numbers.

What is the difference between population and sample standard deviation?

Population standard deviation treats your numbers as the complete group and divides by the count. Sample standard deviation treats your numbers as a sample from a bigger group and divides by the count minus one, which gives a slightly larger value. If you are not sure which to use, the sample version is the usual choice for survey or experiment data.

Can I enter decimals or negative numbers?

Yes. The calculator accepts decimals, negative numbers and whole numbers, separated by commas, spaces or line breaks. For example, 1.5, 2.5, 3.5, 4.5 works, and so does a list with negative values such as −5, 0, 5.

What other calculators can I use?

Try our mean median mode calculator for the average and middle values of the same numbers, the margin of error calculator for survey results, or the percentage calculator for quick percentage work. You can also view all calculators.

Disclaimer: Results are estimates for planning only and are not professional statistical advice. Check your method and your data before using the results in a report, a study or a decision that matters.

Scroll to Top