Free calculator

Standard Deviation Calculator

Enter your numbers separated by commas or spaces. The calculator returns the standard deviation and variance for a sample or a full population, plus the mean and median.

Report a problem or suggest a fix for this tool

What is standard deviation calculator?

Standard deviation measures how spread out a set of numbers is around its mean. A small value means the numbers sit close together. A large value means they vary a lot.

Use the sample version when your numbers are a part of a bigger group, which is the usual case. Use the population version only when you have every member of the group.

How to use the standard deviation calculator

  1. Paste or type your numbers, separated by commas, spaces or new lines.
  2. Choose sample or population.
  3. Press Calculate to see the standard deviation, variance, mean and median.

How the standard deviation calculator works

First the mean is found. Then each value minus the mean is squared and the squares are added. For a population, divide that sum by n to get the variance. For a sample, divide by n minus 1. The standard deviation is the square root of the variance.

Worked example

For 12, 15, 11, 18, 14, 16 and 13 the mean is 14.14. The sample standard deviation is about 2.41 and the population standard deviation is about 2.23.

Common uses of the standard deviation calculator

  • Analyzing test scores.
  • Comparing risk in investments.
  • Checking quality control measurements.
  • Statistics homework.
  • Understanding survey results.

Tips and common mistakes

When in doubt, use the sample option. It corrects the small bias that comes from estimating from a limited set.

Check for outliers. One extreme value can raise the standard deviation a lot.

Background: what to know before you rely on it

Standard deviation was named by Karl Pearson in 1893 and remains the most used measure of spread. In a normal distribution about 68 percent of values fall within one standard deviation of the mean, 95 percent within two and 99.7 percent within three. The n minus 1 correction, known as Bessel's correction, exists because a sample mean sits closer to its own data than the true mean does, which would otherwise understate the spread. Standard deviation uses the same units as your data, which is why it is easier to interpret than variance.

Private, free and fast

This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all calculators, or browse the full list of tools.

Field by field guide

  • Numbers: Type or paste your text here. Use a new line for each entry where the label says so.
  • Data type: Choose one of: Sample (divide by n minus 1); Population (divide by n).

Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.

What standard deviation means

Standard deviation measures how spread out numbers are. A small value means they cluster near the mean, a large value means they spread widely.

Expert tips

  • Use the population formula when you have all the data and the sample formula, dividing by n minus 1, when you have a part of it.
  • In a normal distribution about 68 percent of values are within one standard deviation of the mean and 95 percent within two.
  • For test scores 70, 75, 80, 85, 90 the mean is 80 and the population deviation is about 7.07.
  • Variance is the square of standard deviation.
  • Outliers have a big effect, so check data first.

Report the mean together with the deviation. One number alone can mislead.

Frequently asked questions

What is the difference between sample and population?

A sample is a subset of a group, so we divide by n minus 1. A population is the whole group, so we divide by n.

What does a high standard deviation mean?

The values are spread far from the mean.

Can the standard deviation be negative?

No. It is a square root, so it is zero or higher.

What is variance?

The square of the standard deviation.

Embed this tool on your website

Copy the code below and paste it into your page or blog post. The tool is free to embed, runs in the visitor's browser and needs no account. Please keep the credit link.

Related tools

Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Financial results are estimates and exclude fees and taxes unless the tool says otherwise.