Free online tools
English EN, Choose a language

Standard deviation calculator

Standard deviation and variance of a list of numbers, population or sample, with every step and a deviation table.

Result

—

Enter some numbers to see the standard deviation.

Runs in your browser. Nothing you type is sent.

Related tools

All calculators →

How to use this standard deviation calculator

Paste your numbers (commas, spaces or new lines), then choose Sample if they are a sample drawn from a larger group, or Population if they are every value in the group. You get the standard deviation, the variance, the mean and a table of each value's deviation. Runs in your browser.

Standard deviation formula

The standard deviation measures how far values typically sit from the mean. Sample: s = √(Σ(x − mean)² ÷ (n − 1)). Population: σ = √(Σ(x − mean)² ÷ n). For 12, 7, 9, 15, 9 and 22 as a sample:

  1. Mean = 74 ÷ 6 = 12.3333.
  2. Sum of squared deviations = Σ(x − mean)² = 151.3333.
  3. Variance = 151.3333 ÷ 5 (n − 1) = 30.2667.
  4. Standard deviation = √30.2667 = 5.5015.

The sample standard deviation of 6 numbers with a mean of 12.3333 is 5.5015. Treated as a whole population the same numbers give 5.0222.

Sample or population?

Use the population formula only when you have every member of the group (all students in this class, all days this month). Use the sample formula when the numbers are a sample meant to represent a larger group (a poll of 1,000 voters). Dividing by n − 1 corrects for the fact that a sample tends to understate the spread (Bessel's correction), so the sample figure is always a little larger. Spreadsheets call them STDEV.S and STDEV.P.

A worked classic

The numbers 2, 4, 4, 4, 5, 5, 7, 9 have a mean of 5, and the population standard deviation is exactly 2. This data set is a common textbook check: if your calculator or spreadsheet gives a different result, it is probably using the sample formula.

Reading the result

A small standard deviation means the values cluster around the mean; a large one means they are spread out. For bell-shaped data about 68% of values fall within one standard deviation of the mean and about 95% within two. The deviation is in the same units as your data. To compare spread across data with different units or scales, divide it by the mean (the coefficient of variation) or use a z-score.

Related calculators and converters

Standard deviation calculator FAQ

How do you calculate standard deviation?

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

What is the standard deviation of 12, 7, 9, 15, 9, 22?

As a sample it is 5.5015 and as a population 5.0222; the mean is 12.3333.

What is the difference between sample and population standard deviation?

The sample version divides by n − 1 instead of n, which gives a slightly larger value and corrects for estimating the mean from the same data.

Can the standard deviation be negative?

No. It is a square root, so it is 0 or positive. It is 0 only when every value is the same.

What does a high standard deviation mean?

The values are spread far from the mean. Whether it is high depends on the scale of your data.

Is variance the same thing?

Variance is the standard deviation squared. The calculator shows both.

Missing something in the standard deviation calculator?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools