Skip to content

Standard Deviation Calculator

Standard deviation measures how spread out data is around the mean. See the squared deviations, the variance and the square root for both sample and population.

How to use the standard deviation calculator

  1. Enter the data values.
  2. Choose the sample or population result depending on your data.

Examples

2, 4, 4, 4, 5, 5, 7, 9

Answer: σ = 2, s ≈ 2.138

What standard deviation means

Standard deviation measures how spread out data is: roughly, the typical distance of a value from the mean. A small SD means values cluster near the mean, and a large SD means they're spread out. The calculator gives sample and population SD and variance, with a full table of deviations.

The formulas

Variance is the same thing without the square root ( or ).

Worked example (sample)

Data: 2, 4, 4, 4, 5, 5, 7, 9

  1. Mean: .
  2. Deviations from the mean: .
  3. Squared: , which sum to 32.
  4. Sample variance: , so .
  5. Population variance: , so .

Why ?

A sample's values sit a little closer to their own mean than to the true population mean, so dividing by would underestimate the spread. Dividing by (Bessel's correction) fixes this. Use only when you have the whole population.

Interpreting SD: the 68-95-99.7 rule

For roughly bell-shaped (normal) data:

  • about 68% of values lie within 1 SD of the mean,
  • about 95% within 2 SD,
  • about 99.7% within 3 SD.

If test scores have mean 70 and SD 8, about 95% of students scored between 54 and 86. To see how unusual one value is, use the z-score calculator.

Common mistakes

  • Forgetting to square the deviations (they'd sum to zero).
  • Forgetting the square root at the end, which gives the variance instead.
  • Using the population formula for a sample.
  • SD has the same units as the data. Variance has squared units.

Properties worth knowing

Adding a constant to every value doesn't change the SD. Multiplying every value by multiplies the SD by . SD is never negative, and it's 0 only if all values are equal.

In real life: comparing consistency

Two basketball players both average 20 points per game over 5 games:

  • Player A: 18, 20, 21, 19, 22
  • Player B: 8, 30, 25, 12, 25

For A, the deviations are , giving . For B, the deviations are , giving .

The means are equal, but Player A is far more consistent. A coach who needs reliable scoring every game would pick A.

Factories use the same idea for quality control. If bolts should be 10.00 mm wide, a small standard deviation means almost every bolt fits.

Formulas

Practice problems

Try each one first, then open the answer to check your work.

  1. 1.Population SD of 2, 4, 6?

    Show answer

    .

  2. 2.Sample SD of 2, 4, 6?

    Show answer

    2. .

  3. 3.SD of 5, 5, 5, 5?

    Show answer

    0. There's no spread.

  4. 4.Variance is 16. What is the SD?

    Show answer

    4.

  5. 5.Mean 50, SD 5. Between which values do about 95% of normal data fall?

    Show answer

    40 and 60.

Key terms

Standard deviation
The typical distance of data from the mean.
Variance
The square of the standard deviation.
Deviation
A value minus the mean.
Bessel's correction
Dividing by for a sample.
Normal distribution
The symmetric bell curve.

Frequently asked questions

Why divide by n − 1 for a sample?

Bessel's correction: dividing by n − 1 makes the sample variance an unbiased estimate of the population variance.

Is a bigger standard deviation bad?

Not necessarily. It just means more spread. In manufacturing you want a small SD (consistent parts), while a varied test can have a larger one.

What's the difference between variance and standard deviation?

Variance is the average squared distance from the mean. SD is its square root, which brings it back to the same units as the data.

What is standard error?

The standard deviation of a sample mean, . It shrinks as the sample gets bigger.

Can I compute SD in a spreadsheet?

Yes. In Excel and Google Sheets, use STDEV.S for a sample and STDEV.P for a population.