Skip to content
ihateDesmos

Standard deviation calculator

Paste a list of numbers and get the standard deviation straight away, along with the variance and mean, the working laid out step by step, and a histogram showing how spread out the data is.

Sample standard deviation (s)
2.581988897
Variance (s²)
6.666666667
Mean
15
Count (n)
10
Sum
150
Sum of squares
60
Steps
  1. Mean: add the values and divide by the count. 150 ÷ 10 = 15
  2. Subtract the mean from each value and square the result, then add those squares. The sum of squares is 60
  3. Divide by n − 1: 60 ÷ 9 = 6.666666667. This is the variance
  4. Take the square root: √6.666666667 = 2.581988897
Deviation from the mean for each value
xx − mean(x − mean)²
12−39
1500
11−416
19416
14−11
1500
1839
13−24
1611
1724
Sum060
101112131415161718192000.511.522.53ValueCount
Histogram of the data. The solid line is the mean; dashed lines are one standard deviation either side (12.418 and 17.582).

How to use it

  1. 1
    Paste or type your numbers. Commas, spaces, tabs and new lines all work, so you can copy a column straight from a spreadsheet.
  2. 2
    Choose sample or population. If your numbers are all the values there are, it is a population. If they are some of the values, used to estimate the rest, it is a sample.
  3. 3
    The result updates as you type, with the working underneath.

What standard deviation tells you

Standard deviation measures how far values typically sit from their mean. A small value means the numbers cluster tightly; a large one means they are spread out. It is in the same units as the data, which makes it easier to interpret than the variance: if test scores have a mean of 70 and a standard deviation of 8, a typical score is about 8 points from 70.

For data shaped like a bell curve, about 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three. The normal distribution calculator shows this on the curve.

The formula

For a sample of n values with mean x̄, s = √( Σ(x − x̄)² ÷ (n − 1) ). For a whole population with mean μ, σ = √( Σ(x − μ)² ÷ n ).

  1. Find the mean.
  2. Subtract the mean from each value and square the result.
  3. Add up the squares. This is the sum of squares.
  4. Divide by n − 1 for a sample, or n for a population. This is the variance.
  5. Take the square root.

A worked example

Take the values 2, 4, 4, 4, 5, 5, 7, 9. Their mean is 40 ÷ 8 = 5. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, which add up to 32.

As a population, the variance is 32 ÷ 8 = 4, and the standard deviation is √4 = 2. As a sample, the variance is 32 ÷ 7 ≈ 4.571, and the standard deviation is about 2.138.

Why a sample divides by n − 1

A sample’s values sit closer to their own mean than to the true mean, so dividing by n would underestimate the spread on average. Dividing by n − 1, known as Bessel’s correction, removes that bias in the variance. With large samples the difference is tiny; with five values it is 25%.

Frequently asked questions

Should I use sample or population standard deviation?
Use population only if your numbers are every value you care about, such as the scores of all 30 students in one class when that class is all you want to describe. If they are a sample used to say something about a larger group, use sample, which divides by n − 1.
What is the difference between variance and standard deviation?
The standard deviation is the square root of the variance. Variance is in squared units, so standard deviation is usually easier to interpret, because it is in the same units as the data.
What does a standard deviation of 0 mean?
Every value is identical. There is no spread at all.
Can standard deviation be negative?
No. It is the square root of an average of squares, so it is always zero or positive.
How do I find standard deviation on a calculator?
Paste your numbers above. In the full calculator you can also type stdev([1, 2, 3, 4]) for a sample or stdevp([1, 2, 3, 4]) for a population.

Related tools and guides

Try the standard deviation calculator

It opens instantly, with no account and nothing to install.

Open the calculator