Skip to content

Math glossary

Standard deviation

Standard deviation measures how far values typically fall from their mean. It is the square root of the variance, and it uses the same units as the data. A small value means the data is tightly grouped, and a large one means it is spread out.

Standard deviation meaning

Standard deviation (SD, σ or s) measures the typical distance between the values in a data set and their mean. It is the square root of the variance, which puts the spread back into the same units as the data. If the heights in a class have a mean of 160 cm and an SD of 8 cm, most students are within about 8 cm of 160.

Two data sets can share a mean and look nothing alike. 50, 50, 50 and 0, 50, 100 both average 50, but the first has an SD of 0 and the second about 40.8. The mean tells you the centre; the standard deviation tells you how much to trust it as a description of individual values.

Standard deviation formulas

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

The left formula is the population standard deviation, used when the data covers the whole population. The right is the sample standard deviation, used when the data is a sample. The n − 1 (Bessel's correction) makes the sample variance an unbiased estimate of the population variance.

Worked example

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

StepResult
Mean40 ÷ 8 = 5
Squared deviations9, 1, 1, 1, 0, 0, 4, 16
Sum of squares32
Population variance32 ÷ 8 = 4
Population SD√4 = 2
Sample variance32 ÷ 7 ≈ 4.571
Sample SD≈ 2.138

A second example: test scores 72, 75, 78, 80 and 85 have a mean of 78 and a sample SD of about 4.95 points.

Interpreting standard deviation

Low SD: values are consistent. A machine filling 500 ml bottles with an SD of 1 ml is precise.

High SD: values vary widely. Daily temperatures in a desert have a high SD; on a tropical island they have a low one.

The empirical rule. If data is roughly bell-shaped (normal):

RangeShare of data
Mean ± 1 SDabout 68%
Mean ± 2 SDabout 95%
Mean ± 3 SDabout 99.7%

So with a mean of 160 cm and an SD of 8 cm, about 95% of heights fall between 144 and 176 cm. Values beyond 3 SD are rare and are often flagged as possible outliers. Measuring a value's distance from the mean in SD units gives its z-score.

MeasureWhat it is
VarianceSD squared; squared units
RangeMax − min; uses only two values
Interquartile rangeSpread of the middle 50%; resists outliers
Standard errorSD ÷ √n; uncertainty of a sample mean
Coefficient of variationSD ÷ mean; spread relative to size

Standard deviation and standard error are often confused. SD describes how individuals vary; standard error describes how precisely the sample mean estimates the true mean, and it shrinks as the sample grows.

Properties

  • SD is never negative, and it is 0 only when all values are equal.
  • Adding a constant to every value leaves SD unchanged.
  • Multiplying every value by k multiplies SD by |k|.
  • SD is sensitive to outliers because deviations are squared.

Standard deviation in Excel and Google Sheets

Use STDEV.S for a sample and STDEV.P for a population. The older STDEV function is the sample version. Calculators label the two as sx (or σₙ₋₁) and σx (or σₙ).

Real-world uses

  • Finance: volatility of returns is the standard deviation, a key measure of risk.
  • Manufacturing: Six Sigma aims for defects only beyond six standard deviations from target.
  • Education: standardised test scores are reported in SD units.
  • Weather: forecasters describe how unusual a temperature is in SDs from the long-term average.

Standard deviation from a frequency table

When values repeat, multiply by the frequencies instead of listing every value. Suppose 10 families have 1 child (2 families), 2 children (5) or 3 children (3). The mean is (2 + 10 + 9) ÷ 10 = 2.1. The sum of f·x² is 2 + 20 + 27 = 49, so the population variance is 49 ÷ 10 − 2.1² = 0.49, and the standard deviation is 0.7 children. For grouped classes, use each class midpoint as x.

Common mistakes

  • Forgetting the square root and reporting variance.
  • Mixing up sample and population formulas.
  • Applying the 68-95-99.7 rule to strongly skewed data.
  • Comparing SDs of data on different scales without the coefficient of variation.

Calculate both versions with steps in the standard deviation calculator, and read standard deviation explained and sample vs population standard deviation.

FAQ

Frequently asked questions

01What is standard deviation in simple terms?

Standard deviation tells you how spread out the numbers are around the mean. A small standard deviation means values sit close to the average; a large one means they are widely scattered.

02What is a good standard deviation?

There is no universal good value. It depends on the scale and context. Compare it with the mean: a standard deviation of 5 on test scores averaging 78 is modest, while 5 on a 10-point scale is huge. The ratio SD ÷ mean, the coefficient of variation, helps compare.

03How do you calculate standard deviation?

Find the mean, subtract it from each value, square the results, add them, divide by N (population) or n − 1 (sample), and take the square root.

04What is the 68-95-99.7 rule?

For data that follows a normal distribution, about 68% of values lie within 1 standard deviation of the mean, 95% within 2 and 99.7% within 3.

05Should I use sample or population standard deviation?

Use population standard deviation (σ, divide by N) when you have every member of the group. Use sample standard deviation (s, divide by n − 1) when the data is a sample used to estimate a larger group, which is the usual case in research.

06How do you find standard deviation from a frequency table?

Compute the mean as Σfx ÷ Σf, then the variance as Σfx² ÷ Σf minus the mean squared (for a population), and take the square root. Use class midpoints for grouped data.

Related terms

Last updated November 9, 2026. See all math terms.