Skip to content

Standard Deviation Calculator: Sample and Population, With Working

Sample and population standard deviation and variance of a list of numbers, with every deviation shown.

Inputs

Sample standard deviation (s)
2.1381

Use this calculator on your own site

Free embed

  • Two lines of HTML, unlimited views
  • Shows a small CalculateEveryday bar, with a credit link under the calculator

What each Standard Deviation input means

Numbers
At least two values, separated by commas, spaces or line breaks, so a column pasted from a spreadsheet works. Don't put commas inside numbers (1000, not 1,000). Decimals and negatives are fine, and lists of up to 40 values get a row each in the deviation table.

Standard Deviation formula

s = √(Σ(x − mean)² ÷ (n − 1)) · σ = √(Σ(x − mean)² ÷ n)

s=∑(x−xˉ)2n−1,σ=∑(x−μ)2Ns = \sqrt{\frac{\sum (x - \bar{x})^2}{n - 1}}, \qquad \sigma = \sqrt{\frac{\sum (x - \mu)^2}{N}}

Standard deviation measures how far values typically sit from their mean. Work out the mean, subtract it from every value, square those deviations so negatives don't cancel positives, and add them up. Divide by n − 1 for a sample or by n for a whole population — OpenStax Introductory Statistics explains that dividing a sample by n − 1 gives a better estimate of the population's variance — and take the square root. The headline is the sample figure, which matches a spreadsheet's STDEV.S; the population figure, matching STDEV.P, is shown beneath it with both variances and a table of each value's deviation.

Standard Deviation worked example

The values 2, 4, 4, 4, 5, 5, 7, 9 have a mean of 5. Their squared deviations — 9, 1, 1, 1, 0, 0, 4, 16 — add up to 32. As a population, 32 ÷ 8 = 4 and σ = 2 exactly; as a sample, 32 ÷ 7 = 4.571 and s = 2.138. OpenStax's own example, the ages of 20 fifth-graders, gives s = 0.72.

More Standard Deviation examples

Eight test scores: the mean is 80.25 and the squared deviations add up to 837.5. Treated as a sample, 837.5 ÷ 7 = 119.6429 and s = 10.9381; as the whole class, 837.5 ÷ 8 = 104.6875 and σ = 10.2317. A typical score sits roughly 10 to 11 points from the average.

Same mean, different spread, part one: 45, 50, 55 and 50 average 50, and their squared deviations are 25, 0, 25 and 0, totalling 50. 50 ÷ 3 = 16.6667, so s = 4.0825.

Part two: 20, 50, 80 and 50 also average 50, but the squared deviations are 900, 0, 900 and 0, totalling 1,800. 1,800 ÷ 3 = 600, so s = 24.4949 — six times the spread of the first list with the same mean.

Where the Standard Deviation calculator can give the wrong answer

  • At least two values are needed; one number has no spread.
  • Use the sample figure when your numbers are a sample from something larger (most data), the population figure when they are every member of the group.
  • Identical values give 0: no variation at all.
  • Commas separate values, so type 1000, not 1,000.

Spotted a mistake? Tell us

Standard Deviation reference table

How much of a normal distribution lies within a given number of standard deviations of the mean
WithinShare of valuesOutside, both tails together
±1 standard deviation68.27%31.73%
±1.64590%10%
±1.9695%5%
±295.45%4.55%
±2.57699%1%
±399.73%0.27%
Source: The standard normal distribution; the 68–95–99.7 empirical rule as in OpenStax Introductory Statistics 2e, §6.1

Standard Deviation FAQ

The divisor. A sample divides the sum of squared deviations by n − 1, a population by n, so the sample figure is a little larger — 2.138 against 2.000 for the example above.