Standard Deviation of a Data Set

Enter a list of numbers to get the standard deviation, variance, and mean, with population and sample modes clearly explained.

ADVERTISEMENT

Desktop

ADVERTISEMENT

Desktop

ADVERTISEMENT

Desktop

On this page:

Two teams, same average, different story

Imagine two basketball players who both average 20 points per game. One scores 20 almost every night; the other alternates between 5 and 35. The average hides the difference, but the standard deviation reveals it: it tells you how spread out the numbers are around the average. Low standard deviation means consistent values, high means wild swings.

The standard deviation formula

Formula: SD = sqrt( sum of (x - mean)^2 / n )

For each value x, subtract the mean, square the difference so negatives do not cancel out, add all the squared differences up, divide by n (the number of values) to get the variance, and take the square root to return to the original units. Use n - 1 instead of n when your data is a sample taken from a larger group.

Using the calculator

  1. Enter your list of numbers, separated by commas or one per line.
  2. Choose population mode if the list is the whole group, or sample mode if it is a subset.
  3. Read the mean, variance, and standard deviation.

A worked example, step by step

Take the dataset 2, 4, 4, 4, 5, 5, 7, 9.

  • Step 1: the mean is (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) / 8 = 40 / 8 = 5.
  • Step 2: squared deviations: (2-5)^2 = 9, three (4-5)^2 = 1 each, two (5-5)^2 = 0, (7-5)^2 = 4, (9-5)^2 = 16. Total = 9 + 3 + 0 + 4 + 16 = 32.
  • Step 3: population variance = 32 / 8 = 4.
  • Step 4: standard deviation = sqrt(4) = 2.

The population standard deviation is 2. As a sample, it would be sqrt(32 / 7), about 2.14.

Where it matters

Quality control teams watch it to keep products consistent, investors watch it to gauge risk, and teachers use it to see how widely test scores scatter. Pair it with the average calculator for the center of your data, the variance calculator for the un-rooted spread, and the covariance calculator when comparing two datasets.

Mistakes that give the wrong answer

  • Mixing up population and sample. Dividing by n - 1 instead of n changes the result. Samples from a larger group need the n - 1 version.
  • Forgetting the square root. The number before the final step is the variance, not the standard deviation.
  • Comparing standard deviations across different units. An SD of 2 kg and an SD of 2 cm describe completely different levels of spread.

Reading the number in context

A standard deviation of 2 on a test with a mean of 70 means something concrete thanks to the empirical rule: roughly 68 percent of scores fall within one standard deviation of the mean, from 68 to 72, and about 95 percent fall within two, from 66 to 74. If the standard deviation were 12 instead, the same mean would hide enormous differences between students. That is the real power of the number: it turns a vague sense that results vary into a precise statement about how much they vary.

What this assumes

Standard deviation is sensitive to outliers: one extreme value inflates it. For heavily skewed data, the median and interquartile range can describe the spread more honestly.

Frequently Asked Questions FAQ

What does the Standard Deviation Calculator calculate?
The Standard Deviation Calculator helps you work through the calculation using the values you enter and presents the result in a simple format.
What formula does it use?
The calculator uses the standard method relevant to this calculation. The formula shown on this page is: Standard deviation = √variance
What values should I enter?
Enter the requested numbers or expressions exactly as shown by the calculator. Check signs, units, and decimal values before calculating.
Can I use this calculator for learning?
Yes. It can be useful for checking examples, homework, practice, and understanding how a formula is applied to real values.
Why might my answer be different?
A different result can come from rounding, input values, units, or using a different formula or calculation method. Compare the steps as well as the final answer.
How can I check the result?
Review the inputs, apply the displayed formula manually to a simple example, and compare the result with the calculator output. This is especially useful when studying.

Have Feedback or a Suggestion?

Kindy let us know your reveiws about this page

;