Standard Deviation Calculator

Paste or type a list of numbers to find how spread out they are. The calculator returns the sample standard deviation, the population standard deviation, the mean and both variances, and lists the formula behind each one. Separate numbers with commas, spaces or new lines; you can paste a column straight from a spreadsheet. Everything is calculated in your browser.

Inputs

Separate numbers with commas, spaces or new lines.

Result

Sample standard deviation (s)
2.13809
Population standard deviation (σ)
2
Mean
5
Sample variance (s²)
4.57143
Population variance (σ²)
4
Count (n)
8

How it is calculated

  1. Sample standard deviation s = √(Σ(x − mean)² ÷ (n − 1))
  2. Population standard deviation σ = √(Σ(x − mean)² ÷ n)
  3. Mean = Σx ÷ n
  4. Sample variance s² = Σ(x − mean)² ÷ (n − 1)
  5. Population variance σ² = Σ(x − mean)² ÷ n
  6. Count = the number of values (n)

Resources for your next step

Helpful downloads

View all statistics & probability downloads
Store coming soon

We are preparing practical spreadsheets, planners, and guides. Explore the store page for what is next.

What standard deviation measures

Standard deviation describes how far values typically sit from their mean. A small value means the numbers cluster tightly around the average; a large value means they are spread out. It is in the same units as your data, so the standard deviation of test scores is in points and of delivery times is in minutes.

The default example is 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5, and the squared distances from the mean add up to 32. Divided by 8 values, the population variance is 4 and the population standard deviation is 2. Divided by 7 instead, the sample variance is about 4.571 and the sample standard deviation is about 2.138.

Sample or population

Use the population standard deviation, written σ, when your list contains every value you care about, such as the scores of everyone in one class. Use the sample standard deviation, written s, when the list is a sample drawn from a larger group and you want to estimate that group's spread, such as a survey of some customers.

The sample formula divides by n − 1 instead of n. This correction, often called Bessel's correction, makes the sample variance an unbiased estimate of the population variance, because a sample's values tend to sit a little closer to their own mean than to the true population mean. With large lists the two results are nearly the same.

How the calculation works

First the calculator finds the mean by adding the values and dividing by the count. Then it adds up the squared difference between each value and the mean, divides by n − 1 or n to get the variance, and takes the square root to get the standard deviation. It uses a numerically stable running method, so long lists and large values with small differences stay accurate.

The sample standard deviation needs at least two numbers, because with one value there is no spread to estimate. If every value is the same, both standard deviations are zero. Results show six significant digits; the calculation itself keeps full precision.

Reading the result

For data that roughly follow a bell-shaped curve, about 68% of values fall within one standard deviation of the mean and about 95% within two. That rule of thumb does not hold for skewed data or lists with outliers, where the five-number summary or the mean absolute deviation can describe spread more robustly.

To compare the spread of data sets with different units or very different means, divide the standard deviation by the mean to get the coefficient of variation. The related tools below calculate it, along with other common measures of spread.

Frequently asked questions

What is the difference between sample and population standard deviation?

The population version divides the squared deviations by n; the sample version divides by n − 1 to estimate the spread of a larger group from a sample.

Which one should I use?

Use population when your list is the whole group you care about. Use sample when the list is a sample from a bigger group.

How do I enter my numbers?

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

Why do I need at least two numbers?

The sample standard deviation divides by n − 1, which is zero for one value, so it is undefined.

What is variance?

Variance is the average squared distance from the mean, and standard deviation is its square root, so it is back in the original units.

Can the standard deviation be negative?

No. It is a square root of a sum of squares, so it is zero or positive.

Sources

Results are calculated in your browser from the numbers you enter and rounded for display. Check that the data and the sample or population choice fit your task.

All statistics & probability tools