Standard Deviation Calculator

Standard deviation measures how spread out a set of numbers is around its mean. A low value means the numbers cluster close to the average, while a high value means they are widely spread. Paste your numbers below, choose population or sample, and the result updates as you type.

Your numbers

Type of standard deviation

Your result

Population standard deviation—
Count—
Sum—
Mean—
Population variance—
Sample variance—
Population SD—
Sample SD—
Minimum—
Maximum—

Enter your numbers to see the result.

Worked Example

Example, with the default numbers 2, 4, 4, 4, 5, 5, 7, 9. There are 8 numbers and their sum is 40, so the mean is 40 divided by 8, which is 5. Subtract the mean from each number to get the deviations: minus 3, minus 1, minus 1, minus 1, 0, 0, 2, and 4. Square each deviation: 9, 1, 1, 1, 0, 0, 4, and 16, which add up to 32. For the population, divide 32 by 8 to get a variance of 4, and the square root of 4 is a population standard deviation of 2. For a sample, divide 32 by 7 instead to get a variance of about 4.571, and the square root is a sample standard deviation of about 2.1381. The minimum is 2 and the maximum is 9.

Common Mistakes

Using the sample formula for a whole population. If your numbers are every value you care about, use the population formula, which divides by the count. The sample formula divides by one less than the count and gives a larger result, so picking the wrong one changes the answer.

Using the population formula for a sample. If your numbers are only a sample drawn from a larger group, use the sample formula. The population formula understates the spread of the full group when it is applied to a sample.

Confusing variance with standard deviation. Variance is the average squared deviation, so it is measured in squared units. Standard deviation is the square root of variance, so it is measured in the same units as the original numbers and is the figure most people want.

Averaging the plain deviations. The plain deviations from the mean always add up to zero, so averaging them gives nothing useful. Standard deviation squares the deviations first, which is why it captures spread instead of cancelling out.

Leaving stray text in the list. Words and blank entries are ignored by this calculator, but a typo such as 45 typed as 4 5 becomes two numbers and changes every result. Check the count shown in the result against the count you expected before trusting the answer.

Related Tools

Work out a percentage change with the Percentage Calculator, see how savings grow over time with the Compound Interest Calculator, or browse every calculator in the Tools hub.

Frequently Asked Questions

What is the difference between population and sample standard deviation?

Population standard deviation treats your numbers as the complete set and divides the sum of squared deviations by the count. Sample standard deviation treats your numbers as a sample from a larger group and divides by one less than the count, which corrects for the fact that a sample tends to understate the spread of the full group.

When should I use sample standard deviation?

Use the sample formula when your numbers are a subset of a larger group you want to describe, such as test scores from 30 students in a school of 500. Use the population formula when you have every value in the group, such as the monthly sales of all 12 months of a year.

What does a standard deviation of 0 mean?

It means every number in the set is identical, so there is no spread at all. A single number also gives a population standard deviation of 0, because there is nothing to vary from.

Can standard deviation be negative?

No. Standard deviation is the square root of a sum of squared values, and a square root of a non-negative number is never negative. If a calculation gives a negative result, the math went wrong somewhere.

How is standard deviation different from variance?

Variance is the average of the squared deviations from the mean, while standard deviation is the square root of that variance. Variance is useful in statistics, but standard deviation is easier to interpret because it is in the same units as the original data.