Math · By · Jun 29, 2026 · 6 min read

Mean, Median and Standard Deviation

Three summary statistics, three different questions. Choosing the wrong one is how completely honest data ends up telling a misleading story.

Mean, Median and Standard Deviation — ListCalc

Three numbers answering three different questions

Mean, median and standard deviation are usually taught together and then used interchangeably, which is where the trouble starts. They answer genuinely different questions, and picking the wrong one is how honest data produces misleading claims.

A worked example

Ten salaries on a team, in thousands: 42, 45, 47, 48, 52, 55, 58, 61, 64, 68.

MeasureValueMethod
Mean$54,000Total $540,000 ÷ 10
Median$53,500Average of 5th and 6th values
Sample SD$8,667Divides by n − 1
Population SD$8,222Divides by n

Mean and median sit within $500 of each other, which tells you the distribution is roughly symmetric. When those two numbers agree, either one is a fair summary.

Now add one founder

Replace the top earner with someone on $480,000 and nothing else changes:

MeasureBeforeAfter
Mean$54,000$95,200
Median$53,500$53,500
Sample SD$8,667$135,393

The mean rose by 76% and the median did not move at all. Nine of the ten people now earn less than the average. This is precisely why income, house prices and response times are reported as medians — the mean is dragged by the tail, while the median only cares about position.

The flip side: the mean is the right answer when you care about the total. Payroll budget depends on the mean, not the median. The average calculator returns mean, median and mode together so you can see whether they disagree.

What standard deviation actually measures

It is the typical distance from the mean, computed in a way that stops positive and negative gaps cancelling out.

1. Find the mean
2. Subtract it from each value, square the result
3. Average the squares → variance
4. Take the square root → standard deviation

The squaring is doing two jobs: it removes the sign, and it penalises large deviations disproportionately. That is why one extreme value can move the standard deviation far more than it moves the mean, as the salary example showed.

Population or sample? The n − 1 question

Step 3 hides a decision. Divide the sum of squares by n and you get the population standard deviation. Divide by n − 1 and you get the sample standard deviation.

Take the set 2, 4, 4, 4, 5, 5, 7, 9. The mean is 5, the median is 4.5, the population SD is exactly 2, and the sample SD is 2.138.

UseWhen
Population (÷ n)Your data is the entire group you care about
Sample (÷ n − 1)Your data is a subset used to estimate a wider group

The n − 1 adjustment exists because a sample’s own mean sits closer to its own values than the true population mean does, so the raw calculation systematically underestimates spread. Dividing by the smaller number corrects the bias. With 10 values the difference is about 5%; with 1,000 it is negligible. When in doubt, use the sample version — it is the default in most software and the conservative choice. The standard deviation calculator reports both.

The 68-95-99.7 rule, and its limits

For data that follows a normal distribution, roughly 68% of values fall within one standard deviation of the mean, 95% within two and 99.7% within three. That is a genuinely useful shortcut — it turns a standard deviation into an intuition about range.

It only holds for normal distributions. Applied to salary data, web response times, insurance claims or anything else with a long right tail, it will badly understate how often extreme values occur. Before leaning on the rule, check whether mean and median agree. When they diverge, the distribution is skewed and the rule does not apply.

For turning these differences into percentages, see percentage increase and decrease.

Run your own numbers

FAQ

What is the difference between mean and median?
The mean is the total divided by the count, and the median is the middle value once the data is sorted. When the two are close the distribution is roughly symmetric; when they diverge sharply, the data is skewed and the median is usually the fairer summary.
Why is median used for income and house prices?
Because both distributions have a long upper tail. A small number of very high values pulls the mean well above what most people experience, while the median stays anchored to the middle of the group.
Should I divide by n or n minus 1?
Divide by n when your data is the complete group you care about, and by n minus 1 when it is a sample being used to estimate something larger. The n minus 1 version corrects a systematic underestimate of spread and is the default in most software.
What does a standard deviation of zero mean?
Every value in the set is identical. There is no spread at all, so every observation sits exactly on the mean.
Does the 68-95-99.7 rule always work?
No. It applies to normally distributed data. For skewed data such as incomes, response times or claim sizes it will substantially understate how often extreme values appear, so check whether the mean and median agree before relying on it.

Sources

Primary references used for the figures and rules on this page.

  1. NIST/SEMATECH e-Handbook of Statistical Methods — NIST