Standard Deviation Calculator

Paste a list of numbers to see how widely they spread around their average, with every step of the calculation laid out.

Separate values with commas, spaces or new lines.
Your data is a

Result

Sample standard deviation (s)
5.237229366
  • Variance (s²)27.42857143
  • Mean18
  • Count8
  • Sum144
  • Sum of squared deviations192
  • Standard error of the mean1.8516402
  • Coefficient of variation29.0957187%
  • s = √( Σ(x − mean)² ÷ (n − 1) ) = √( 192 ÷ 7 ) = 5.237229366
  • Sample formula: divides by n − 1 (Bessel’s correction) to estimate the spread of a larger population.
Deviations from the mean
#Value (x)x − mean(x − mean)²
110-864
212-636
323525
423525
516-24
623525
72139
816-24

How to use the calculator

Type or paste your numbers into the box. Separate them with commas, spaces or new lines, so you can paste a column straight from a spreadsheet. Then choose whether the data is a sample or the whole population. The results update as you type:

  • the standard deviation (s for a sample, σ for a population)
  • the variance, mean, count and sum
  • the sum of squared deviations
  • the standard error of the mean (samples only)
  • the coefficient of variation

The table lists each value with its deviation from the mean and the square of that deviation. It shows up to 200 rows.

The formulas

Population standard deviation

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

Sample standard deviation

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

Here x is each value, μ or x̄ is the mean, and N or n is the number of values. The calculator works out the mean first and then sums the squared deviations in a second pass. This “two-pass” method stays accurate even for values like 1,000,000,001, 1,000,000,002 and 1,000,000,003. A one-pass shortcut can lose precision with numbers like these.

Worked example

The default data is 10, 12, 23, 23, 16, 23, 21, 16, treated as a sample.

  1. Mean: the sum is 144 and there are 8 values, so the mean is 144 ÷ 8 = 18.
  2. Deviations: −8, −6, 5, 5, −2, 5, 3, −2.
  3. Squared deviations: 64, 36, 25, 25, 4, 25, 9, 4. Their sum is 192.
  4. Sample variance: 192 ÷ (8 − 1) = 27.43 (to two decimals).
  5. Sample standard deviation: √27.43 ≈ 5.237.

If you switch to Population, the variance becomes 192 ÷ 8 = 24, and σ = √24 ≈ 4.899.

Interpreting the result

Standard deviation is in the same units as your data. Roughly speaking, it is the typical distance of a value from the mean. When the data is close to a bell-shaped (normal) distribution:

  • about 68% of values lie within 1 standard deviation of the mean
  • about 95% lie within 2
  • about 99.7% lie within 3

In the example, most values fall between 18 − 5.2 and 18 + 5.2, or about 12.8 to 23.2.

The coefficient of variation (SD ÷ |mean| × 100%) lets you compare spread between data sets on different scales. The standard error (s ÷ √n) measures how precisely the sample mean estimates the population mean, and it shrinks as you collect more data. Quadrupling the sample size halves the standard error.

Limitations

  • A sample standard deviation needs at least two values. With one value there is nothing to compare.
  • The 68–95–99.7 rule only holds for roughly normal data. With skewed data or outliers, the standard deviation can make the spread look larger or more symmetric than it is.
  • The calculator accepts up to 10,000 values. Numbers written with thousands separators (1,234) are read as two separate values, so remove the commas first.

Frequently asked questions

Should I use sample or population standard deviation?

Use population when your list contains every member of the group you care about, such as the scores of all 25 students in one class. Use sample when the list is a subset you are using to estimate a larger group. Most real-world data, such as survey responses or measurements, is a sample.

Why does the sample formula divide by n − 1?

A sample's own mean sits closer to its values than the true population mean does, so dividing by n would understate the spread. Dividing by n − 1, known as Bessel's correction, removes that bias from the variance.

What is the difference between variance and standard deviation?

Variance is the average squared deviation, so it is in squared units, such as cm². Standard deviation is its square root, which brings it back to the original units, so it is easier to interpret.

Can the standard deviation be negative?

No. It is a square root of a sum of squares, so it is zero or positive. It is zero only when every value is identical.

Last reviewed: