Skip to content

Math & Geometry

Standard Deviation Calculator

Find the standard deviation of a list of numbers. Choose population when the numbers are the whole group and sample when they are a sample of a larger group.

Use calculator

Tool updated

Decimals and negative numbers are fine. Up to 10,000 numbers. 8 numbers read.

Try

Calculate as

Use population when your numbers are the whole group. Use sample when they are a sample taken from a larger group.

Population standard deviation

2

Variance 4

On average, values are about 2 away from the mean of 5. About 75% of your values fall within one population standard deviation of the mean.

Count (n)

8

Sum

40

Mean

5

Median

4.5

Minimum

2

Maximum

9

Range

7

Sum of squares

32

ฮฃ(x โˆ’ mean)ยฒ

Population versus sample

Population and sample results
ResultPopulation (รท n)Sample (รท n โˆ’ 1)
Variance44.5714
Standard deviation22.1381
Standard error of the mean-0.7559
Coefficient of variation-42.76%

The sample result is larger because dividing by n โˆ’ 1 corrects for the fact that a sample tends to underestimate the spread of the whole group; here it adds 0.1381. With many values the two are very close.

Dot plot

mean 51.445.59.56
Each dot is one valueWithin one population SD of the mean (75% of values)

Distribution

29

Step by step

  1. Add the 8 numbers: sum = 40.
  2. Divide by the count to get the mean: 40 รท 8 = 5.
  3. Subtract the mean from each number to get the deviations (shown in the table below).
  4. Square each deviation and add them: sum of squares = 32.
  5. Divide by n = 8 to get the population variance: 32 รท 8 = 4.
  6. Take the square root of the variance: โˆš4 = 2.
Deviations and squared deviations for each value
Value (x)Deviation (x โˆ’ mean)Squared deviationShare of total
2-3928.1%
4-113.1%
4-113.1%
4-113.1%
5000.0%
5000.0%
72412.5%
941650.0%

Values far from the mean contribute the most to the standard deviation because deviations are squared. The share column shows each value's part of the total sum of squares.

Worked example

Find the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9

Enter the eight numbers and choose Population. The mean is 5 and the squared deviations add up to 32.

Population: 32 รท 8 = 4, so ฯƒ = โˆš4 = 2. Sample: 32 รท 7 โ‰ˆ 4.5714, so s โ‰ˆ 2.1381

The sample result is larger because the divisor is n โˆ’ 1 instead of n. Use the sample formula when your data are a sample from a larger group.

Back to the calculator

How to use the calculator

  1. Type or paste your numbers into the box, separated by commas, spaces or line breaks. Decimals and negative numbers are fine.
  2. Choose Population if your numbers are the whole group, or Sample if they are a sample taken from a larger group.
  3. Choose how many decimal places to show.
  4. Read the standard deviation and variance at the top, along with the count, sum, mean, median, minimum, maximum and range.
  5. Check the population versus sample table to see both results, the standard error and the coefficient of variation.
  6. Look at the dot plot and histogram to see how the values are spread around the mean.
  7. Open the step-by-step section to follow the calculation and the table of deviations. Copy the link to save your data.

Calculator Overview

This free Standard Deviation Calculator finds the standard deviation, variance, mean, sum, count, minimum, maximum and range of any list of numbers. Paste or type your data separated by commas, spaces or line breaks, choose whether to calculate the population or the sample standard deviation, and the results update instantly. Decimals and negative numbers are supported, and entries that are not numbers are flagged instead of silently ignored.

A step-by-step breakdown shows exactly how the answer is built: the mean, each value's deviation from the mean, the squared deviations, their sum, the variance and finally the square root. A table lists every value's deviation, squared deviation and share of the total, so you can see which values contribute most to the spread. Charts show your data as a dot plot with the mean and a one-standard-deviation band, and as a histogram of the distribution.

The calculator makes the difference between population and sample results explicit. It shows both side by side, along with the standard error of the mean and the coefficient of variation, and explains that the sample formula divides by n โˆ’ 1 to correct for estimating the spread of a larger group from a sample. If you pick the sample option with a single number, you get a clear message instead of a misleading result.

Standard deviation is one of the most widely used measures in statistics. It describes how consistent a set of measurements is, how volatile an investment has been, how much exam scores vary and how reliable an experiment's results are. Use this tool to check homework, analyze data or learn how the calculation works.

Formula

Loading formula...

Formula and Step-by-Step Example

The mean is the sum of the values divided by the count. A deviation is a value minus the mean, and deviations always add up to zero, so they are squared to measure spread without cancelling. The sum of squared deviations is the basis of both the population and the sample formulas.

The population variance divides that sum by n and the sample variance divides it by n โˆ’ 1. The standard deviation is the square root of the variance, which returns the spread to the original units. Because the sample formula divides by a smaller number, the sample standard deviation is always a little larger than the population standard deviation for the same data.

The standard error of the mean is the sample standard deviation divided by the square root of n. The coefficient of variation is the sample standard deviation divided by the absolute mean, shown as a percentage. The calculator uses a compensated sum and a two-pass method (find the mean first, then the squared deviations), which keeps the answer accurate for long lists of decimals and for numbers with a large common offset.

Frequently asked questions

What is standard deviation?

Standard deviation measures how spread out numbers are around their mean. A small standard deviation means the values are close to the mean, and a large one means they are more spread out. It is in the same units as the data, which makes it easy to interpret.

What is the difference between population and sample standard deviation?

Use the population standard deviation when your numbers are every member of the group you care about. Use the sample standard deviation when your numbers are a sample from a larger group. The population formula divides the sum of squared deviations by n. The sample formula divides by n โˆ’ 1, which corrects for the tendency of a sample to underestimate the spread of the whole group.

Why do we divide by n โˆ’ 1 for a sample?

This is Bessel's correction. Deviations are measured from the sample mean, which is always closer to the sample's own values than the true population mean is, so dividing by n would make the variance too small on average. Using n โˆ’ 1 makes the sample variance an unbiased estimate of the population variance.

How do I calculate standard deviation by hand?

Find the mean, subtract it from every value, square each difference, add the squares, divide by n (population) or n โˆ’ 1 (sample) to get the variance, and take the square root. For 2, 4, 4, 4, 5, 5, 7, 9 the mean is 5, the squares add up to 32, the population variance is 4 and the population standard deviation is 2.

What is variance and how is it related to standard deviation?

Variance is the average of the squared deviations from the mean. Standard deviation is the square root of the variance. Variance is in squared units, while standard deviation is in the original units, which is why standard deviation is used more often to describe spread.

Can standard deviation be negative?

No. It is the square root of a sum of squares, so it is zero or positive. It is zero only when all values are identical.

What does a high or low standard deviation mean?

It depends on the context and the size of the numbers. Compare it with the mean (the coefficient of variation does this), with other datasets measured the same way, or with a standard that matters for your use. There is no universal cutoff for high or low.

What is the 68-95-99.7 rule?

For data that follow a normal distribution, about 68% of values lie within one standard deviation of the mean, about 95% within two and about 99.7% within three. It is a rule of thumb that only applies when the data are roughly bell-shaped.

How do negative numbers and decimals affect the result?

They are handled normally. Deviations are squared, so negative values do not cancel out. The calculator accepts decimals and negative numbers, and also numbers in scientific notation such as 1.5e3.

How do outliers affect standard deviation?

A lot. Because deviations are squared, a single far-away value can increase the standard deviation a great deal. The share column in the step table shows how much of the total each value contributes, so you can spot outliers.

Can I calculate a standard deviation with only one number?

The population standard deviation of a single number is 0. The sample standard deviation needs at least two numbers because it divides by n โˆ’ 1, which would be zero.

What is the standard error of the mean?

It is the sample standard deviation divided by the square root of n. It estimates how much the sample mean would vary from sample to sample, and it gets smaller as the sample grows. It is different from the standard deviation, which describes the spread of the data itself.

What is the coefficient of variation?

It is the sample standard deviation divided by the mean, as a percentage. It lets you compare the relative spread of datasets with different units or very different means.

How is standard deviation used in the real world?

In science to describe measurement error, in finance to describe the volatility of returns, in manufacturing to monitor quality, in education to describe how scores vary, and in research to compare groups and test hypotheses.

Which separators can I use when entering data?

Commas, semicolons, spaces and line breaks all work, and you can mix them. Entries that are not numbers are listed and ignored so you can fix them.

Why is my result slightly different from my spreadsheet?

Check whether the spreadsheet function matches your choice. In many spreadsheets STDEV.P is the population standard deviation and STDEV.S is the sample standard deviation. Also check the number of decimal places shown.

Understand your result

Standard Deviation Calculator guide

Standard deviation turns a list of numbers into one measure of spread. The calculation is short, but small choices such as population versus sample change the answer, so it helps to know what each step means.

A worked check with a small dataset

Take the numbers 2, 4, 4, 4, 5, 5, 7 and 9. They add up to 40, so the mean is 40 รท 8 = 5. The deviations from the mean are โˆ’3, โˆ’1, โˆ’1, โˆ’1, 0, 0, 2 and 4. Squaring them gives 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32.

If these eight numbers are the whole group, the population variance is 32 รท 8 = 4 and the population standard deviation is โˆš4 = 2. If they are a sample, the sample variance is 32 รท 7 โ‰ˆ 4.5714 and the sample standard deviation is about 2.1381. The sample value is larger because the divisor is smaller.

Choosing population or sample

Ask whether your numbers are everything you care about or a subset. The heights of all students in a class, when the class is the whole group, call for the population formula. The heights of 30 students used to learn about all students in a school call for the sample formula.

When in doubt, most data analysis uses the sample formula, since data are usually a sample of something larger. With a large dataset the two results are nearly the same, but with a small dataset the difference can be large.

What the standard deviation tells you

A standard deviation of 2 around a mean of 5 means values typically lie about 2 units from the mean. For bell-shaped data, about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three.

The number is only meaningful relative to the data. A standard deviation of 5 is large for test scores that range from 70 to 80 and tiny for house prices. The coefficient of variation, which divides by the mean, helps compare datasets with different scales.

Common mistakes

The most common mistake is using the wrong divisor, so check whether you need n or n โˆ’ 1. Others include forgetting to take the square root at the end, using the median instead of the mean, rounding the mean too early and letting a typing mistake, such as a misplaced decimal point, create an outlier.

Standard deviation is also sensitive to outliers because deviations are squared. If one value is far from the others, check that it is correct before relying on the result, and consider reporting the median and interquartile range as well.

Continue with a related calculation

References and further reading

Quick reference: The 68-95-99.7 rule for normal data

Worked example: shares of values within a number of standard deviations of the mean for a normal distribution. These shares apply only to roughly bell-shaped data.

The 68-95-99.7 rule for normal data
Range around the meanShare of valuesMeaning
Within ยฑ1 standard deviation68.27%Most values
Within ยฑ2 standard deviations95.45%Nearly all values
Within ยฑ3 standard deviations99.73%Almost every value
Within ยฑ1.96 standard deviations95%The 95% interval
Within ยฑ2.576 standard deviations99%The 99% interval

Read the complete Standard Deviation Calculator guide

See the longer walkthrough and reference notes for Standard Deviation Calculator.

Open Guide

Author & Formula Review

Author

Jitendra Kumar

Founder & Lead Developer

Reviewed by

OmniCalc Editorial Review

Formula QA, source review, and calculator maintenance

Last reviewed

Math & Geometry calculator

Formulas, rounding behavior, and worked examples are checked against hand calculations and calculator QA scenarios before publishing.

Primary Sources

Results are general-purpose estimates. Verify critical figures against official sources or a qualified professional. See our sources and methodology and editorial policy.

Explore more calculators