Standard Deviation: Formula Steps and Examples

#Standard Deviation
TL;DR
Standard deviation is the typical distance of a value from the mean. This guide covers the population and sample formulas, the five calculation steps, the empirical rule and six worked examples.
Rishi Dhawanยทreviewed by
PK
Prabhjot KaurLast updated on November 27, 202610 min read

Key Points

  • Standard deviation measures the typical distance between a value and the mean, in the same units as the original data.
  • It is the square root of the variance, which is why it reports centimetres rather than square centimetres and why it reaches readers more often.
  • Population standard deviation divides by N, while sample standard deviation divides by n minus 1 and is slightly larger on identical data.
  • For a roughly normal distribution, about 68 percent of values lie within one standard deviation of the mean and about 95 percent within two.
  • A standard deviation of zero is possible and means every value in the data set is identical.

The Number That Tells You What Typical Means

A mean of 50 is a fact about a data set, and it cannot tell you what typical means. Whether 50 describes any actual observation is a different question, and the mean cannot answer it.

Standard deviation answers it in one number. A standard deviation of 2 says values cluster tightly around 50. A standard deviation of 25 says 50 is an arithmetic artefact that almost nobody in the data resembles.

standard deviation shown as typical distance from the mean.
Dot plot of the values 2, 4, 4, 4, 5, 5, 7 and 9 with the mean marked at 5 and lines one standard deviation above and below at 7 and 3.

What Is Standard Deviation?

Standard deviation is a measure of spread equal to the square root of the variance. For a population of NN values with mean ฮผ\mu:

ฯƒ=โˆ‘(xiโˆ’ฮผ)2N\sigma = \sqrt{\frac{\sum (x_i - \mu)^2}{N}}

For a sample of nn values with mean xห‰\bar{x}:

s=โˆ‘(xiโˆ’xห‰)2nโˆ’1s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n-1}}

The square root is what makes the measure readable. Variance squares the deviations to stop them cancelling, which also squares the units. Taking the root undoes that, returning a figure in centimetres, marks or dollars that can sit next to the mean and be compared with it directly.

Try It Yourself

Use the data explorer to see Standard Deviation at work: drag, change the numbers and watch what happens.

How Do You Calculate Standard Deviation?

Five steps, in a fixed order.

the five steps to calculate standard deviation.
Five numbered steps: find the mean, subtract it from every value, square each deviation, average the squared deviations to get the variance, then take the square root.

Work the eight values 2, 4, 4, 4, 5, 5, 7, 9 as a population.

Mean: 408=5\frac{40}{8} = 5

Deviations: โˆ’3,โˆ’1,โˆ’1,โˆ’1,0,0,2,4-3, -1, -1, -1, 0, 0, 2, 4

Squared: 9, 1, 1, 1, 0, 0, 4, 16, totalling 32

Variance: 328=4\frac{32}{8} = 4

ฯƒ=4=2\sigma = \sqrt{4} = 2

Values sit about 2 units from the mean on average, which matches the dot plot above.

What Does the Empirical Rule Say?

For data that is roughly normally distributed, the standard deviation predicts how much of the data falls where.

the empirical rule linking standard deviation to the normal distribution.
Normal curve with bands shaded: 68 percent of values within one standard deviation of the mean, 95 percent within two, and 99.7 percent within three.

About 68 percent of values lie within one standard deviation of the mean, about 95 percent within two, and about 99.7 percent within three. The NIST/SEMATECH handbook gives the normal distribution properties this rule comes from, including its skewness of 0 and kurtosis of 3.

The rule applies only when the distribution is approximately normal. On a strongly skewed quantity such as income, it fails badly, which is why skewed data is described with quartiles instead.

Examples of Standard Deviation

Example 1

Find the population standard deviation of 4, 8, 6, 5, 7.

Mean: 305=6\frac{30}{5} = 6. Squared deviations: 4, 4, 0, 1, 1, totalling 10.

ฯƒ=105=2=1.41\sigma = \sqrt{\frac{10}{5}} = \sqrt{2} = 1.41

Example 2

Treat the same five values as a sample.

The tempting move is to take the population answer of 1.41 and call the job done, since the data has not changed.

The divisor has. For a sample the squared total of 10 is divided by nโˆ’1=4n-1 = 4:

s=104=2.5=1.58s = \sqrt{\frac{10}{4}} = \sqrt{2.5} = 1.58

The sample figure is always the larger of the two, because the sample mean sits closer to its own data than the population mean would.

Example 3

Find the standard deviation of 11, 11, 11, 11.

Mean is 11, every deviation is zero, so the variance is zero.

ฯƒ=0=0\sigma = \sqrt{0} = 0

Zero spread is a legitimate result and happens only when every value is identical.

Example 4

A test has mean 70 and standard deviation 8, and the scores are roughly normal. What range holds about 95 percent of students?

Two standard deviations either side:

70ยฑ2(8)=70ยฑ1670 \pm 2(8) = 70 \pm 16

About 95 percent of students scored between 54 and 86.

Example 5

Heights have mean 160 cm and standard deviation 10 cm. A student is 185 cm. How unusual is that?

z=185โˆ’16010=2.5z = \frac{185 - 160}{10} = 2.5

The student is 2.5 standard deviations above the mean, beyond the 95 percent band and inside the 99.7 percent band. Unusual, but not extraordinary.

Example 6

Find the population standard deviation of the grouped data: values 10, 20, 30 with frequencies 2, 5, 3.

Mean: 2(10)+5(20)+3(30)10=21010=21\frac{2(10)+5(20)+3(30)}{10} = \frac{210}{10} = 21

Weighted squared deviations: 2(11)2+5(1)2+3(9)2=242+5+243=4902(11)^2 + 5(1)^2 + 3(9)^2 = 242+5+243 = 490

ฯƒ=49010=49=7\sigma = \sqrt{\frac{490}{10}} = \sqrt{49} = 7

Why Standard Deviation Is the One That Gets Published

Variance does the mathematical work, and standard deviation does the communicating.

  • It shares the data's units. A spread of 7 cm can be compared with a mean of 160 cm. A variance of 49 square centimetres cannot.
  • It converts any value into a z-score. Subtracting the mean and dividing by the standard deviation says how unusual an observation is on a scale that works for any quantity.
  • It sets the width of every confidence interval. The standard error is the standard deviation divided by n\sqrt{n}, which is why precision improves only with the square root of effort.
  • It is the standard measure of financial risk. Two investments with equal average returns and different standard deviations carry different risk, and the spread is what the comparison turns on.

Wage data shows why spread matters as much as centre. The US Bureau of Labor Statistics recorded a mean hourly wage of $33.54 against a median of $24.51 across all occupations in its May 2025 survey, a gap produced by a wide, one-sided spread.

standard deviation compared with variance.
Table comparing variance and standard deviation: symbols sigma squared and sigma, squared units against original units, values 4 and 2 on the worked data, and how often each is reported to readers.

What Most Guides Get Wrong About Standard Deviation

Two things get left out, and both change how the number is read.

The first is that the empirical rule is conditional. The 68-95-99.7 figures hold for approximately normal data and nothing else. Applied to income, waiting times or any strongly skewed quantity they produce confident nonsense, such as a lower bound below zero. Any guide quoting the rule without naming the condition has taught a result and withheld its scope.

The second is that standard deviation is not a maximum. Values beyond three standard deviations are rare, not impossible, and in a large data set some are expected. Treating the three-sigma band as a boundary rather than as a probability statement is how genuine outliers get discarded as errors.

Where Students Trip Up on Standard Deviation

Mistake 1: Stopping at the variance

Where it slips in: Long multi-step questions where the variance is an intermediate result.

Don't do this: Reporting 4 as the standard deviation when 4 is the variance.

The correct way: Take the square root. The standard deviation here is 2.

This is the single most common lost mark in the topic, and it is a stopping error rather than a reasoning one. The work is finished, correct and unreported, because the final operation feels like a formality rather than part of the answer.

Mistake 2: Using the wrong divisor

Where it slips in: Questions that name the data as a sample, as in Example 2.

Don't do this: Dividing by nn out of habit.

The correct way: Divide by nโˆ’1n-1 for a sample. On the five values above that is the difference between 1.41 and 1.58.

Mistake 3: Applying the empirical rule to skewed data

Where it slips in: Word problems about income, house prices or waiting times.

Don't do this: Concluding that 95 percent of incomes lie within two standard deviations of the mean.

The correct way: Check the shape first. On right-skewed data the rule understates the upper tail and often produces a negative lower bound, which is an immediate signal that the assumption failed.

The real-world version of underestimating spread appears in engineering tolerance. Components that meet an average specification but vary widely around it fail in assembly, which is why manufacturing quality control targets the standard deviation directly rather than the mean.

The Short Version

  • Standard deviation is the square root of the variance and reports typical distance from the mean in the data's own units.
  • Divide by NN for a population and by nโˆ’1n-1 for a sample, which always gives the larger figure.
  • The empirical rule of 68, 95 and 99.7 percent holds only for approximately normal data.
  • The most common error is reporting the variance without taking the final square root.
  • To work through spread problems with a teacher, explore Bhanzu's high school math tutor sessions or math classes online.

A Practical Next Step

Compute the standard deviation of a data set twice, once as a population and once as a sample, and confirm the sample figure is larger. Then check your answer against the data: about two thirds of the values should sit within one standard deviation of the mean. When they do not, the arithmetic is usually wrong before the interpretation is.

Practice these to solidify your understanding. If the final square root keeps slipping, return to Mistake 1. Want a live Bhanzu trainer to walk through more standard deviation problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.5.6 Measures of Scale (2022). itl.nist.gov
  2. US Bureau of Labor Statistics, Occupational Employment and Wages Summary, May 2025 (2026). bls.gov
  3. NIST/SEMATECH, e-Handbook of Statistical Methods, 1.3.3.7 Box Plot (2022). itl.nist.gov
  4. NIST/SEMATECH, e-Handbook of Statistical Methods, 7.2.2 Are the data consistent with the assumed process mean? (2022). itl.nist.gov
  5. US Census Bureau, Income and Poverty: income data and reports (2026). census.gov

Quick Quiz: Check Yourself

Three levels, fresh numbers every time, instant feedback with the working.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is standard deviation in simple words?
How far a typical value sits from the average, measured in the same units as the data.
What is the standard deviation formula?
Population: ฯƒ=โˆ‘(xiโˆ’ฮผ)2N\sigma = \sqrt{\frac{\sum (x_i - \mu)^2}{N}}. Sample: s=โˆ‘(xiโˆ’xห‰)2nโˆ’1s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n-1}}.
Can standard deviation be negative?
No. It is a square root of an average of squares, so it is zero or positive. A negative result means an arithmetic error.
What does a high standard deviation mean?
That values are spread widely around the mean, so the mean describes any individual observation poorly. What counts as high depends on the quantity, which is why the coefficient of variation exists for comparing across scales.
Why divide by n minus 1 for a sample?
Because the sample mean is computed from the same data, so deviations measured from it come out slightly too small. Dividing by nโˆ’1n-1 corrects that bias.
โœ๏ธ Written By
Rishi Dhawan
Rishi Dhawan
Senior Math Curriculum Expert
Rishi Dhawan is a mathematics expert and curriculum designer with 15 years of experience in K-12 education. His work spans curriculum development, teacher training, content strategy and assessment design. He specializes in turning complex ideas into simple, discovery-based learning that builds deep conceptual understanding, and has designed content aligned with national curricula and board requirements. He also writes on education, technology and the future of learning.
LinkedIn
๐Ÿ”ฌ Reviewed By
PK
Subject Matter Expert & Curriculum Developer
Book a FREE Demo ClassBook Now โ†’