Standard Deviation Calculator

Paste a list of numbers to get the standard deviation and variance, for a sample or a whole population, with the working shown.

Separate numbers with commas, spaces or new lines.
Your data is
Choose sample if the numbers are part of a bigger group.

Enter your numbers to see the result.

Advertisement

How to use the standard deviation calculator

  1. Paste or type your numbers into the box.
  2. Choose whether the data is a sample (part of a larger group) or the whole population.

The result shows the standard deviation, the variance, the mean, and a table of each step.

Advertisement

What standard deviation measures

Standard deviation tells you how spread out numbers are around their mean. A small value means the numbers sit close to the average. A large value means they are widely scattered.

The formulas

Population: σ = √( Σ(x − μ)2 ÷ N )
Sample: s = √( Σ(x − x̄)2 ÷ (n − 1) )

The only difference is the divisor: N for a population and n − 1 for a sample. Dividing by n − 1 (called Bessel's correction) makes up for the fact that a sample tends to understate the spread of the full group.

Worked example

For the data 2, 4, 4, 4, 5, 5, 7, 9:

  1. Mean: the sum is 40 and there are 8 values, so the mean is 5.
  2. Deviations: subtract the mean from each value: −3, −1, −1, −1, 0, 0, 2, 4.
  3. Squares: 9, 1, 1, 1, 0, 0, 4, 16. Their sum is 32.
  4. Population variance: 32 ÷ 8 = 4, so the population standard deviation is √4 = 2.
  5. Sample variance: 32 ÷ 7 = 4.571, so the sample standard deviation is √4.571 = 2.138.

Sample or population?

If your numbers include every member of the group you care about, such as the test scores of everyone in one class, use population. If they are a subset used to estimate a bigger group, such as 50 people surveyed from a city, use sample. When in doubt in a statistics class, sample is the more common choice. Our guide on sample vs population standard deviation explains why.

Frequently asked questions

How do I calculate standard deviation?

Find the mean, subtract it from each value, square the results, add them up, divide by N (population) or n − 1 (sample), and take the square root.

What is the difference between sample and population standard deviation?

Population standard deviation divides by the number of values (N). Sample standard deviation divides by one less (n − 1), which gives a slightly larger result and corrects for estimating from part of a group.

What is variance?

Variance is the standard deviation squared, or the average of the squared deviations from the mean. Standard deviation is used more often because it is in the same units as the data.

What does a standard deviation of 0 mean?

It means every value is the same, so there is no spread at all.

Results follow the formula shown on this page. Your school's official policy or scale takes priority.

Embed this calculator on your site

Free for blogs, schools and teachers. Paste this code into any page. Keep the credit line under the calculator.

Preview