Calculator Bar

Standard Deviation Calculator

Standard Deviation Calculator

Separate numbers with commas, spaces or new lines. Don't put commas inside numbers.

Standard deviation—

How to calculate standard deviation

  1. Find the mean: add the numbers and divide by how many there are.
  2. Subtract the mean from each number and square the result.
  3. Add up the squares.
  4. Divide by n for a population, or by n − 1 for a sample. That's the variance.
  5. Take the square root. That's the standard deviation.
Population: σ = √( Σ(x − μ)² ÷ n ) Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

Example: 2, 4, 4, 4, 5, 5, 7, 9 has a mean of 40 ÷ 8 = 5. The squared differences are 9, 1, 1, 1, 0, 0, 4, 16, which add up to 32. The population variance is 32 ÷ 8 = 4, so σ = 2. The sample variance is 32 ÷ 7 = 4.571, so s = 2.138.

The 68–95–99.7 rule

For data that follows a bell-shaped (normal) curve, about 68% of values fall within one standard deviation of the mean, 95% within two, and 99.7% within three. Test scores with a mean of 75 and a standard deviation of 8 would put about two-thirds of students between 67 and 83. The rule doesn't apply to lopsided data, such as incomes.

Sample or population?

Ask whether you have all the values or just some of them. Every employee's salary at a 12-person company is a population. A survey of 200 voters standing in for a whole state is a sample. Spreadsheets have both: STDEV.P for a population and STDEV.S for a sample. If you just need the average, use the average calculator.

Frequently asked questions

Should I use sample or population standard deviation?

Use population if your list contains every value you care about, such as the scores of everyone in one class. Use sample if your list is a sample from a bigger group, such as 50 survey answers standing in for all customers. When in doubt, use sample: it's what most statistics classes and spreadsheets (STDEV.S) mean.

Why does the sample formula divide by n − 1?

A sample's values sit closer to their own mean than to the true mean of the whole group, so dividing by n would underestimate the spread. Dividing by n − 1 (Bessel's correction) makes the estimate unbiased for the variance.

What does standard deviation tell you?

How far a typical value is from the mean. A small standard deviation means the numbers are bunched together; a large one means they're spread out. It's in the same units as the data, unlike the variance.

What is the difference between variance and standard deviation?

The variance is the average squared distance from the mean. The standard deviation is its square root, which brings it back to the original units. For 2, 4, 4, 4, 5, 5, 7, 9 the population variance is 4 and the standard deviation is 2.

See also

Last updated: November 16, 2026