QwikCalculator

Standard Deviation Calculator

Standard deviation

Enter your numbers, separated by commas, spaces or new lines.

Use the sample standard deviation when your numbers are a sample from a larger group. Use the population value when you have every member of the group.

About the Standard Deviation Calculator

Standard deviation tells you how spread out a set of numbers is. A small value means the numbers cluster close to the mean, and a large value means they are scattered. It’s the most common measure of variability in science, finance, quality control and education.

This standard deviation calculator takes a list of numbers separated by commas, spaces or new lines. It gives the sample or population standard deviation, the variance, the mean and median, the standard error, and the range. For short lists it also shows each value’s deviation from the mean, so you can follow the working.

How to use the Standard Deviation Calculator

  1. Type or paste your numbers, separated by commas, spaces or new lines.
  2. Choose sample (n − 1) if your data is a sample of a bigger group, or population (n) if it includes every member.
  3. Read the standard deviation and variance.
  4. For lists of 15 or fewer numbers, check the table to see each deviation.

Standard deviation formulas

  • Mean (x̄) = Σx ÷ n
  • Population: σ = √( Σ(x − μ)² ÷ n )
  • Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )
  • Variance = standard deviation squared
  • Standard error = s ÷ √n

Dividing by n − 1 for a sample (Bessel’s correction) corrects for the fact that a sample tends to underestimate the spread of the full population.

Standard deviation examples

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

For 10, 12, 23, 23, 16, 23, 21, 16 the mean is 18 and the sum of squared deviations is 192. The sample standard deviation is √(192 ÷ 7) = 5.237 and the population value is √(192 ÷ 8) = 4.899.

Reading standard deviation

  • For data that follows a bell curve, about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three.
  • Standard deviation has the same units as your data, while variance uses squared units.
  • A standard deviation of 0 means every value is the same.
  • Outliers affect standard deviation strongly. Check for typing errors if the result looks too big.

Frequently asked questions

What is the difference between sample and population standard deviation?

Use population (divide by n) when your data covers the entire group. Use sample (divide by n − 1) when it is a subset used to estimate the group.

How do I calculate standard deviation by hand?

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

What is variance?

Variance is the average squared deviation from the mean. Standard deviation is its square root.

Can standard deviation be negative?

No. It is a square root of an average of squares, so it is zero or positive.

How many numbers do I need?

At least two. The sample standard deviation isn’t defined for a single number.