Standard Deviation Calculator

Paste your numbers, choose sample or population, and see the standard deviation with every step of the working: mean, deviations, sum of squares and variance.

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

8 numbers read

Your data is a:

Sample standard deviation of 8 values

Sample standard deviation (s)

2.1381

Sample variance (s²)
4.5714
Mean (x̄)
5
Count (n)
8
Sum of squares (SS)
32
Population SD
2
if you divide by n instead
Standard error (s/√n)
0.7559

Showing the sample standard deviation (divides by n − 1). Results are rounded to 4 decimal places.

How the standard deviation was calculated

  1. Find the mean. Add the 8 values and divide by 8.x̄ = (2 + 4 + 4 + 4 + 5 + 5 + 7 + 9) ÷ 8 = 40 ÷ 8 = 5
  2. Subtract the mean from each value, then square the result. For the first value:(2 − 5)² = (−3)² = 9The table below does this for every value.
  3. Add the squared differences to get the sum of squares, SS.SS = 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32
  4. Divide by n − 1 to get the sample variance. Dividing by one less than the count (Bessel’s correction) stops a sample from understating the spread of the whole population.s² = 32 ÷ (8 − 1) = 32 ÷ 7 = 4.5714
  5. Take the square root of the variance to get the standard deviation, which is back in the same units as your data.s = √4.5714 = 2.1381

Deviations table

Each value, its difference from the mean and that difference squared
xx − x̄(x − x̄)²
2-39
4-11
4-11
4-11
500
500
724
9416
Sum032

The differences from the mean always add up to 0 (allowing for rounding), which is why they are squared before adding.

Standard deviation formulas

Sample standard deviation

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

Population standard deviation

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

The only difference is the divisor. This calculator starts on sample, because most homework and real data are samples, and labels the result with s or σ so you always know which one you are looking at. Switch to population if your data covers the entire group.

Worked example

Find the standard deviation of 2, 4, 4, 4, 5, 5, 7, 9.

  1. The mean is 40 ÷ 8 = 5.
  2. Subtract the mean from each value and square it: 9, 1, 1, 1, 0, 0, 4, 16.
  3. Add them up: the sum of squares is 32.
  4. Sample: divide by n − 1 = 7 to get a variance of 4.5714, then take the square root: s = 2.1381.
  5. Population: divide by n = 8 to get a variance of 4, then take the square root: σ = 2.

How to read the answer

For data that is roughly bell-shaped, the empirical rule says about 68% of values fall within one standard deviation of the mean, about 95% within two and about 99.7% within three. If a class has a mean of 75 and a standard deviation of 8, a score of 91 is two standard deviations above the mean, in roughly the top 2%. The z-score calculator turns any score into that kind of position and percentile.

Need only the variance? The variance calculator uses the same steps and leads with s² or σ². For the mean, median and mode of the same data, use the mean, median and mode calculator.

Frequently Asked Questions

More statistics calculators