Standard Deviation Calculator

Quick answerTo find standard deviation, work out the mean, subtract it from every value and square each difference, add the squares, divide by n − 1 (sample) or n (population), then take the square root. For 4, 8, 6, 5, 3 the sample standard deviation is 1.9235.

Type or paste numbers separated by commas, spaces or new lines. Decimals and negative numbers are fine. Use "sample" if your numbers are only part of a bigger group, which is the usual case.

Sample standard deviation (s) = 1.9235

  • Mean: 5.2
  • Variance: 3.7
  • Count (n): 5
  • Population SD: 1.7205
  • Coefficient of variation: 36.9911%
Your 5 values with the mean and one standard deviation either sidemean ± 1 s345678Mean 5.2Your 5 values with the mean and one standard deviation either sideRule of thumb for bell-shaped data: 68%, 95%, 99.7%Rule of thumb for bell-shaped data: 68%, 95%, 99.7%-0.570615−3 SD1.352923−2 SD3.276462−1 SD5.2mean7.123538+1 SD9.047077+2 SD10.970615+3 SD68%95%99.7%

Step-by-step solution

  1. Count the values: n = 5. The data are 4, 8, 6, 5, 3.
  2. Find the mean: add the values (26) and divide by 5. Mean = 5.2.
  3. Subtract the mean from each value and square the result:
    xx − mean(x − mean)²
    4-1.21.44
    82.87.84
    60.80.64
    5-0.20.04
    3-2.24.84
  4. Add the squared differences: sum of squares = 14.8.
  5. Divide by n − 1 = 4 (sample): variance = 14.8 ÷ 4 = 3.7.
  6. Take the square root of the variance: s = √3.7 = 1.9235.

Example shown: the default numbers above. Change them and press Calculate.

What you get when you use this calculator

Every result includes the answer, a picture of what the answer means and the full working, so you can check the method as well as the number.

What you get from the Standard Deviation Calculator. A list of numbers and sample or population → Mean, squared differences, variance, square root → Standard deviation, variance, mean and a bell-curve pictureWhat you get from the Standard Deviation CalculatorYOU ENTERA list of numbersand sample orpopulationTHE CALCULATORMean, squareddifferences,variance, squarerootYOU GETStandard deviation,variance, mean and abell-curve picture

How to use the Standard Deviation Calculator

  1. Type or paste your numbers into the box above.
  2. Press Calculate (or hit Enter).
  3. Read the highlighted answer, check the picture, then follow the numbered steps to see how it was found.
  4. Use Copy answer to paste the result into your homework or notes.

Formula and method

Sample SDs = √[ Σ(x − x̄)² ÷ (n − 1) ]
Population SDσ = √[ Σ(x − μ)² ÷ n ]
VarianceThe standard deviation squared

Worked examples

Example 1: 4, 8, 6, 5, 3 (sample)

Sample standard deviation (s) = 1.9235

  1. Count the values: n = 5. The data are 4, 8, 6, 5, 3.
  2. Find the mean: add the values (26) and divide by 5. Mean = 5.2.
  3. Subtract the mean from each value and square the result:
    xx − mean(x − mean)²
    4-1.21.44
    82.87.84
    60.80.64
    5-0.20.04
    3-2.24.84
  4. Add the squared differences: sum of squares = 14.8.
  5. Divide by n − 1 = 4 (sample): variance = 14.8 ÷ 4 = 3.7.
  6. Take the square root of the variance: s = √3.7 = 1.9235.

Example 2: 10, 12, 23, 23, 16, 23, 21,… (sample)

Sample standard deviation (s) = 5.2372

  1. Count the values: n = 8. The data are 10, 12, 23, 23, 16, 23, 21, 16.
  2. Find the mean: add the values (144) and divide by 8. Mean = 18.
  3. Subtract the mean from each value and square the result:
    xx − mean(x − mean)²
    10-864
    12-636
    23525
    23525
    16-24
    23525
    2139
    16-24
  4. Add the squared differences: sum of squares = 192.
  5. Divide by n − 1 = 7 (sample): variance = 192 ÷ 7 = 27.428571.
  6. Take the square root of the variance: s = √27.428571 = 5.2372.

Example 3: 2, 4, 4, 4, 5, 5, 7, 9 (population)

Population standard deviation (σ) = 2

Show the steps
  1. Count the values: n = 8. The data are 2, 4, 4, 4, 5, 5, 7, 9.
  2. Find the mean: add the values (40) and divide by 8. Mean = 5.
  3. Subtract the mean from each value and square the result:
    xx − mean(x − mean)²
    2-39
    4-11
    4-11
    4-11
    500
    500
    724
    9416
  4. Add the squared differences: sum of squares = 32.
  5. Divide by n = 8 (population): variance = 32 ÷ 8 = 4.
  6. Take the square root of the variance: σ = √4 = 2.

Example 4: 1.5, 2.5, 2.5, 2.75, 3.25, … (sample)

Sample standard deviation (s) = 1.0811

Show the steps
  1. Count the values: n = 6. The data are 1.5, 2.5, 2.5, 2.75, 3.25, 4.75.
  2. Find the mean: add the values (17.25) and divide by 6. Mean = 2.875.
  3. Subtract the mean from each value and square the result:
    xx − mean(x − mean)²
    1.5-1.3751.8906
    2.5-0.3750.1406
    2.5-0.3750.1406
    2.75-0.1250.0156
    3.250.3750.1406
    4.751.8753.5156
  4. Add the squared differences: sum of squares = 5.84375.
  5. Divide by n − 1 = 5 (sample): variance = 5.84375 ÷ 5 = 1.16875.
  6. Take the square root of the variance: s = √1.16875 = 1.0811.

Practice problems

Try each one on paper first, then open the answer.

Problem 1: 7, 9, 3, 6, 5 (sample)

Sample standard deviation (s) = 2.2361

Problem 2: 12, 15, 11, 18, 14, 20 (population)

Population standard deviation (σ) = 3.1623

Problem 3: 100, 102, 98, 105, 95 (sample)

Sample standard deviation (s) = 3.8079

Frequently asked questions

What does standard deviation tell you?

It tells you how far values typically sit from the mean. A small standard deviation means the numbers are bunched close to the average, and a large one means they are spread out.

Should I use sample or population standard deviation?

Use population when your numbers are every member of the group you care about. Use sample when they are only a subset, which is the usual case, because dividing by n − 1 corrects the tendency to underestimate spread.

Is standard deviation the square root of variance?

Yes. Variance is the average squared distance from the mean, and standard deviation is its square root, which puts the answer back in the same units as your data.

Can standard deviation be negative or zero?

It can never be negative. It is zero only when every value is identical, because then nothing differs from the mean.

What is a good standard deviation?

There is no universal good value. Compare it with the mean: the coefficient of variation (SD ÷ mean) shows the spread as a percentage, which makes different data sets comparable.

Learn the method

Related calculators

Calculators are for learning and general use. If a result matters (an exam, a report, a research paper), double-check it and read the methodology. Read the disclaimer.