Home › Math › Standard Deviation Calculator

Standard Deviation Calculator

Find the standard deviation, variance and mean of any list of numbers, for a sample or a whole population, with the working shown.

Separate the numbers with commas, spaces or new lines. You can use decimals and negative numbers. Up to 10,000 numbers.

Choose Sample if your numbers are only part of a bigger group. Choose Population if they are the whole group.

Sample standard deviation

-

Sample variance-
Mean-
How many numbers-
Sum-
Sum of squared differences-
Population standard deviation-

Working: difference from the mean

NumberDifference from meanSquared

What is standard deviation and how do you calculate it?

Standard deviation tells you how spread out a set of numbers is around its average. A small standard deviation means the numbers sit close to the mean. A large one means they are widely scattered.

Population: σ = √( Σ(x − mean)² ÷ n )
Sample: s = √( Σ(x − mean)² ÷ (n − 1) )
Variance = standard deviation squared

Steps

  1. Add up the numbers and divide by how many there are, to get the mean.
  2. Subtract the mean from each number.
  3. Square each of those differences.
  4. Add the squares together.
  5. Divide by n for a population, or by n − 1 for a sample. This gives the variance.
  6. Take the square root. This is the standard deviation.

Example

Take the numbers 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5. The squared differences are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32. For a population, the variance is 32 ÷ 8 = 4, so the standard deviation is 2. For a sample, the variance is 32 ÷ 7 = 4.571, so the standard deviation is 2.138.

Sample or population?

Use population when your numbers are every value in the group you care about, such as the marks of all students in one class. Use sample when your numbers are a part drawn from a larger group, such as a survey of 200 people out of a city. Dividing by n − 1 for a sample corrects for the fact that a sample tends to understate the true spread. If you are unsure, sample is the usual choice.

How to read it

  • Standard deviation is in the same units as your data, which makes it easier to read than variance.
  • For data shaped roughly like a bell curve, about 68% of values fall within one standard deviation of the mean, and about 95% within two.
  • A standard deviation of 0 means every number is the same.
  • It is affected by extreme values, so one very large or very small number can raise it a lot.
  • Standard deviation cannot be negative.

To find the average, median and mode of the same list, use the Mean Median Mode Calculator. To compare the change between two numbers, use the Percentage Change Calculator.

Need another calculator?

Browse all calculators
Scroll to Top