Saved

Press the star next to a tool's name to save it.

All my tools

Standard Deviation Calculator

Paste your numbers and this standard deviation calculator gives the sample or population standard deviation, with the mean, variance and step-by-step working.

Restored your last values ·

Separate numbers with commas, spaces or new lines. You can paste a column from a spreadsheet.

Standard deviation

–

Enter at least two numbers to find the standard deviation.

A standard deviation calculator measures how spread out a set of numbers is. Paste or type your data, choose whether it is a sample or a whole population, and this free standard deviation calculator gives the standard deviation with the mean, the variance, the step-by-step working and the ranges that hold about 68%, 95% and 99.7% of values in a normal distribution.

What is standard deviation?

The standard deviation is a measure of how much the values in a set vary around their average. A low standard deviation means the values sit close to the mean; a high one means they are spread over a wider range. It is usually written σ (the Greek letter sigma) for a population and s for a sample, and is often shortened to SD. It is the square root of the variance, and a useful property is that, unlike the variance, it is in the same units as the data.

Standard deviation formulas

Population: σ = √( Σ(x − μ)² ÷ N )

Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

Here x is each value, μ or x̄ is the mean, N or n is the number of values, and Σ means add them all up. The only difference is the divisor. Dividing by N for a sample would underestimate the spread of the whole population it came from, so the sample formula divides by n − 1 instead. This adjustment is known as Bessel's correction.

How to use the standard deviation calculator

  1. Enter your numbers, separated by commas, spaces or new lines. You can paste a column straight from a spreadsheet.
  2. Choose Sample or Population. Use Sample when your data is part of a bigger group, such as 30 students from a school. Use Population when you have every member, such as the marks of a whole class you are describing.
  3. Press Calculate. The standard deviation appears at the top, with the mean, both variances and both standard deviations in the table, and the working below.

Standard deviation example

Take the eight values 2, 4, 4, 4, 5, 5, 7 and 9.

  1. Find the mean: (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5.
  2. Subtract the mean and square each value: 9, 1, 1, 1, 0, 0, 4 and 16.
  3. Add the squares: 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32.
  4. Divide: for a population, 32 ÷ 8 = 4, the variance.
  5. Take the square root: √4 = 2, the population standard deviation.

If those eight values are a sample, divide by 8 − 1 = 7 instead: 32 ÷ 7 = 4.571429, and the sample standard deviation is about 2.13809. Paste the values into the calculator to see every step.

The 68–95–99.7 rule

When data follows a normal distribution, the symmetrical bell-shaped curve, about 68.3% of values fall within one standard deviation of the mean, 95.4% within two and 99.7% within three. For example, if adult men in the United States average about 69 inches tall with a standard deviation of about 3 inches, roughly 68% of them are between 66 and 72 inches, and about 95% between 63 and 75 inches. The calculator shows these three ranges for your data, but remember they only describe real data well when it is roughly bell-shaped.

Sample or population: which should you choose?

  • Population: you have the entire group you care about, and you only want to describe it. Every student in one class, every sale in one month.
  • Sample: your numbers are a subset used to learn about a bigger group. A survey of 200 customers, a batch of products tested from a production line, or measurements in an experiment.

In research, homework and most statistics software, the sample standard deviation is the default. With large data sets the two answers become very close, because dividing by n or by n − 1 makes little difference.

Standard deviation and variance

The variance is the average of the squared deviations from the mean, and the standard deviation is its square root. Variance is in squared units, such as square centimetres for heights in centimetres, which makes it hard to interpret, so the standard deviation is usually reported instead. Both appear in the result table so you can use whichever your work asks for.

Where standard deviation is used

Standard deviation turns up wherever people need to know how consistent something is. Teachers use it to see whether a class's marks are bunched together or widely spread. Factories use it in quality control to check that parts come off the line at a steady size. Investors use it as a measure of how much a price swings, and scientists report it alongside an average so readers can judge how reliable the average is. In each case, two data sets with the same mean can behave very differently, and the standard deviation is the number that shows the difference.

Common mistakes

  • Using the wrong divisor. Check whether your teacher, textbook or software expects the sample (n − 1) or population (N) formula.
  • Forgetting to square the deviations. The deviations from the mean always add up to zero, so they must be squared before adding.
  • Forgetting the square root. Without it you have the variance, not the standard deviation.
  • Rounding the mean too early. Keep full precision until the final answer.

Find the average with the mean calculator, the middle value with the median calculator, the spread from smallest to largest with the range calculator, and percentage variance with the variance calculator.

What next

Use this often? Add Standard Dev to your Home screen.

Frequently asked questions

How does the standard deviation calculator work?

It finds the mean, squares each value's distance from the mean, adds the squares, divides by n − 1 for a sample or N for a population, and takes the square root.

What is the difference between sample and population standard deviation?

Population divides by N, the number of values. Sample divides by n − 1, Bessel's correction, because a sample tends to underestimate the spread of the whole population.

What is the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9?

The population standard deviation is 2 and the sample standard deviation is about 2.13809. The mean is 5.

What does a standard deviation tell you?

How spread out the values are around the mean. A small standard deviation means values are close to the average; a large one means they are spread out.

What is the 68–95–99.7 rule?

In a normal distribution, about 68% of values lie within one standard deviation of the mean, 95% within two and 99.7% within three.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Math Tools