CalcVind

Students

Standard Deviation: Formula, Steps and What It Means

What SD measures, the step-by-step working, sample vs population, and the 68–95–99.7 rule.

By Team Vind · Updated · 5 min read

An average tells you where the middle of your data is. It says nothing about how spread out the values are. Standard deviation (SD) fills that gap: it measures how far, on average, the values sit from the mean. A small SD means they cluster tightly; a large one means they're scattered.

Why the average isn't enough

Two batters over six innings:

BatterScoresAverageStandard deviation
A42, 48, 51, 45, 55, 47484.16
B4, 110, 12, 96, 0, 664844.74

Both average 48, but A is dependable while B swings between ducks and centuries. The SD puts a number on that difference: 4.16 against 44.74.

How to calculate it, step by step

For the data 4, 8, 6, 5, 3, 10:

  1. Find the mean: 36 ÷ 6 = 6.
  2. Subtract the mean from each value and square the result (squaring removes the minus signs).
  3. Add up the squares: 34.
  4. Divide by N (population) or n − 1 (sample). This is the variance.
  5. Take the square root.
Value (x)x − mean(x − mean)²
4-24
824
600
5-11
3-39
10416
Total034

Population: σ = √( Σ(x − μ)² ÷ N )  ·  Sample: s = √( Σ(x − x̄)² ÷ (n − 1) )

  • Population: variance 34 ÷ 6 = 5.67, so σ = 2.38
  • Sample: variance 34 ÷ 5 = 6.8, so s = 2.61

Try it: Standard Deviation Calculator

Your Data

Separate numbers with commas, spaces or new lines.

Sample Standard Deviation

5.2372294Standard deviation (s)
27.428571Variance
18Mean
8
Count
144
Sum
4.8989795
Population SD (σ)
29.1%
Coefficient of variation
1.85164
Standard error of mean

Working

  1. Mean = 144 ÷ 8 = 18
  2. Squared differences: (10 − 18)² + (12 − 18)² + (23 − 18)² + (23 − 18)² + (16 − 18)² + (23 − 18)² + (21 − 18)² + (16 − 18)²
  3. Σ(x − mean)² = 192
  4. Variance = 192 ÷ (n − 1 = 7) = 27.428571
  5. SD = √27.428571 = 5.2372294

Sample or population?

  • Population (divide by N): your data is the whole group you care about, such as the marks of every student in one class.
  • Sample (divide by n − 1): your data is a part used to estimate a bigger group, such as 200 voters surveyed in a city. Dividing by n − 1 (Bessel's correction) makes up for a sample understating the true spread.

If in doubt, use the sample version: it's what Excel's STDEV and most statistics courses mean by default.

Reading it: the 68–95–99.7 rule

For bell-shaped (normal) data, such as heights or exam scores in a large group, with mean 165 cm and SD 6 cm:

WithinRangeShare of values
1 SD of the mean159–171 cmabout 68%
2 SD of the mean153–177 cmabout 95%
3 SD of the mean147–183 cmabout 99.7%

How many SDs a value sits from the mean is its z-score, which our Z-Score Calculator works out.

Where you'll meet it

  • Mutual funds: a fund's standard deviation on its factsheet is its volatility. Of two funds with the same return, the lower SD gave a smoother ride.
  • Exams: normalised marks in multi-session exams such as GATE are worked out from the mean and SD of each session.
  • Quality control: a “six sigma” process keeps its limits six standard deviations from the average, so defects are extremely rare.

Frequently asked questions

What does standard deviation tell you?

How spread out the values are around the mean. A low standard deviation means they're close to the average; a high one means they vary widely.

What is the formula for standard deviation?

The square root of the average squared difference from the mean: √(Σ(x − mean)² ÷ N) for a population, or ÷ (n − 1) for a sample.

When do I use n − 1 instead of n?

Use n − 1 when your data is a sample taken from a larger group, which is the usual case. Use n only when you have every member of the group.

What is the difference between variance and standard deviation?

Variance is the average of the squared differences from the mean. Standard deviation is its square root, which brings it back to the same units as the data.

Sources

Last reviewed: 12 October 2026

Calculators for this topic

More guides

All guides