Skip to content

Standard Deviation

Measures spread of data around the mean.

Variables

s
Sample standard deviation
x̄
Mean

Explanation

For an entire population divide by instead of (giving ). About 68% of normally distributed data lie within one standard deviation of the mean.

Example

Data 2, 4, 4, 4, 5, 5, 7, 9 has .

How to use it

  1. Find the mean .
  2. Subtract the mean from each value to get the deviations.
  3. Square each deviation.
  4. Add the squares.
  5. Divide by for a sample, or by for a whole population. This is the variance.
  6. Take the square root.

Another worked example

Sample: 4, 8, 6, 5, 7. The mean is 6. The deviations are and their squares are , totalling 10.

Why ?

A sample's values sit closer to their own mean than to the true population mean, so dividing by underestimates the spread. Dividing by (Bessel's correction) fixes this on average. The difference matters for small samples and fades for large ones.

Interpreting it

  • A small standard deviation means values cluster near the mean. A large one means they're spread out.
  • It has the same units as the data.
  • For roughly normal data, about 68% of values lie within 1 standard deviation of the mean, 95% within 2 and 99.7% within 3.
  • Adding a constant to every value doesn't change it. Multiplying every value by multiplies it by .

Shortcut formula

avoids computing each deviation, which is handy on a calculator.

Common mistakes

  • Forgetting the square root, which leaves the variance.
  • Using when the data are a sample.
  • Squaring the sum of deviations instead of summing the squares. The plain deviations always add to zero.

Where it's used

  • Finance: the volatility of a stock is the standard deviation of its returns.
  • Manufacturing: quality control checks that parts stay within a few standard deviations of target.
  • Education: test scores are often reported relative to the mean in standard deviations.
  • Science: error bars show the standard deviation or standard error of measurements.

Key takeaways

  • It measures typical distance from the mean.
  • Use for samples and for populations.
  • For normal data, the 68-95-99.7 rule describes the spread.

Try it: Standard Deviation Calculator

Compute sample and population standard deviation and variance step by step.

Open calculator

Practice problems

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

  1. 1.Find the population standard deviation of 2, 4, 6.

    Show answer

    .

  2. 2.Find the sample standard deviation of 2, 4, 6.

    Show answer

    .

  3. 3.What is the standard deviation of 5, 5, 5, 5?

    Show answer

    0. There's no spread.

  4. 4.Data have SD 3. Every value is multiplied by 4. Find the new SD.

    Show answer

    12.

  5. 5.Heights have mean 160 and SD 6. Roughly what range holds the middle 95%?

    Show answer

    148 to 172.

Key terms

Deviation
How far a value is from the mean.
Variance
The average squared deviation.
Sample
A subset of a population.
Bessel's correction
Dividing by for a sample.
Empirical rule
The 68-95-99.7 rule for normal data.

Frequently asked questions

What's the difference between variance and standard deviation?

Variance is the average squared deviation; standard deviation is its square root. Standard deviation is in the original units, so it's easier to interpret.

Sample or population: which should I use?

If your data are every member of the group you care about, use population (). If they're a sample used to estimate a larger group, use sample ().

What counts as a large standard deviation?

It depends on the mean and the context. The coefficient of variation, , compares spread across data sets with different scales.

Why square the deviations?

The raw deviations always add up to zero. Squaring makes them all positive and gives extra weight to larger deviations.

What is a standard error?

The standard deviation of a sample mean, . It shrinks as the sample grows, which is why larger samples give more precise estimates.

Can two data sets with the same mean have different standard deviations?

Yes. 50, 50, 50 and 0, 50, 100 both have mean 50, but the first has no spread and the second a lot.

Can the standard deviation be negative?

No. It's a square root of a sum of squares, so it's always zero or positive. It's zero only when every value is the same.

How does an outlier affect it?

A lot, because deviations are squared. Adding 100 to the data set 4, 5, 6 raises the sample standard deviation from 1 to about 47.5.

What's the interquartile range, and when is it better?

The spread of the middle 50% of data. Like the median, it isn't pulled by outliers, so it's better for skewed data.

Related formulas

More statistics formulas