Calculating Standard Deviation

Master the step-by-step process of calculating standard deviation for any data set.

Advanced25 minLesson

Definition

Calculating standard deviation follows a systematic 5-step process that measures how spread out data values are from their mean.
The Formula:
The 5-Step Process: 1. Find the mean (): Add all values and divide by the count 2. Find each deviation: Subtract the mean from each value () 3. Square each deviation: 4. Find the average of squared deviations (variance): 5. Take the square root:
Why square the deviations? Squaring makes all deviations positive (so negatives don't cancel positives) and emphasizes larger deviations.

Try it now

What is the FIRST step when calculating standard deviation?

Worked Examples

Find the standard deviation of these test scores:

1

Find the mean

Mean =

2

Find each deviation from the mean

Deviations:

3

Square each deviation

Squared deviations:

4

Find the variance (average of squared deviations)

Variance =

5

Take the square root

SD

Common Mistakes

Forgetting to square the deviations

Why it's wrong: Without squaring, negative and positive deviations cancel out, giving a sum near zero regardless of actual spread.

Correct: Always square each deviation. The sum of squared deviations for a spread-out data set will be large.

Dividing by instead of (or vice versa)

Why it's wrong: Population SD uses ; sample SD uses . Using the wrong formula gives incorrect results.

Correct: Use when you have all data (population). Use when you have a sample of a larger population.

Forgetting to take the square root at the end

Why it's wrong: Stopping at variance gives units that are squared (like 'points squared'), which is hard to interpret.

Correct: Always take the square root of variance to get standard deviation in the original units.

Making arithmetic errors when summing squared deviations

Why it's wrong: With many values, it's easy to make calculation mistakes.

Correct: Create a table with columns: Value, Deviation, Squared Deviation. Check each calculation.

Interactive Visual

Box Plot Builder

12Q1: 16.524Q3: 3342
Min
12
Q1
16.5
Median
24
Q3
33
Max
42
IQR (Q3 - Q1):16.5
Range:30
Sorted data:
12, 15, 18, 22, 24, 27, 31, 35, 42
n = 9

Click on parts of the box plot to learn what they represent.

Bar Chart

Part A(25%)
Part B(35%)
Part C(20%)
Part D(20%)

Interactive Sandbox

Expression Calculator

Try these:

History

No calculations yet

Practice Problems

15 problems
Problem 1 of 15
Easy

What is the FIRST step when calculating standard deviation?

Why It Matters

Knowing how to calculate standard deviation by hand is essential for:
  • Understanding the concept: The calculation reveals WHY standard deviation measures spread
  • Checking calculator results: Verify that technology gives correct answers
  • Exams and tests: Many standardized tests require manual calculation
  • Small data sets: Quick mental calculation without technology
Real applications:
  • Quality control: A factory calculates SD to check if products are consistently sized
  • Sports analytics: Compare player consistency using calculated SD of performance
  • Finance: Calculate investment risk by finding SD of returns

Real World Applications

Quality Control in Manufacturing

Factory managers calculate standard deviation to ensure products meet specifications consistently.

Example:

A factory produces bolts that should be mm long. If mm, 95% of bolts are within mm of target. If mm, there's too much variation.

1Try It Yourself

Five bolts measured: mm. The target is mm.

Calculate the standard deviation. Is the production consistent?

Step 1: Write the mathematical expression

First find the mean of the measurements:

Comparing Student Performance

Teachers calculate SD to understand how varied student scores are on tests.

Example:

If a class has a mean of 75 with SD = 5, most students score between 70 and 80. If SD = 15, scores range widely from 60 to 90.

2Try It Yourself

Quiz scores: . Calculate the standard deviation.

How much do scores typically vary from the average?

Step 1: Write the mathematical expression

Mean = :

Key Takeaways

  • 1Standard deviation calculation follows 5 steps: mean → deviations → square → average → square root
  • 2Squaring deviations prevents negative values from canceling positive ones
  • 3Variance is the average of squared deviations; SD is its square root
  • 4Population SD divides by ; sample SD divides by
  • 5A higher SD means more spread; SD = 0 means all values are identical

Frequently Asked Questions

Use (population SD) when your data includes the entire group you're studying. Use (sample SD) when your data is a sample from a larger population. The correction gives a better estimate of the true population spread.
Use (population SD) when your data includes the entire group you're studying. Use (sample SD) when your data is a sample from a larger population. The correction gives a better estimate of the true population spread.
Squaring has mathematical advantages: it's differentiable (useful in calculus), gives more weight to larger deviations, and connects to the Pythagorean theorem and Euclidean distance. Absolute values work but don't have these properties.
No! Since we're taking the square root of a sum of squared numbers, standard deviation is always zero or positive. SD = 0 only when all values are identical.

Glossary

Standard deviation
A measure of how spread out data values are from the mean
Variance
The average of squared deviations; the square of standard deviation
Deviation
The difference between a data value and the mean:
Mean
The average of all data values: sum divided by count
Population
The complete set of all individuals or items being studied
Sample
A subset of a population used to represent the whole

Formula Card

Population Standard Deviation

Use when data represents the entire population

Sample Standard Deviation

Use when data is a sample from a larger population

Variance

The square of standard deviation (before taking the root)

More in This Topic