Explainer
Average vs median: what is the difference?
What are the mean, median and mode?
The mean is what most people call the average: add up every value and divide by how many there are. The median is the middle value when you line the numbers up from smallest to largest. With an even count there are two middle values, so you take the halfway point between them. The mode is the value that appears most often.
All three are “measures of location”: single numbers that try to summarise where the data sits. They answer slightly different questions. The mean asks “if everything were shared out equally, how much would each get?” The median asks “what does the person in the middle have?” The mode asks “what is the most common value?”
In a neat, symmetrical set of numbers the three land close together. They split apart when the data is lopsided, and that is exactly when choosing the wrong one misleads.
How does one outlier change the mean but not the median?
Here is an illustrative example with made-up numbers. Imagine a small firm where nine staff earn, in thousands of pounds: 28, 30, 30, 34, 35, 36, 38, 40 and 44. The total is 315, and 315 ÷ 9 = 35, so the mean is £35,000. The fifth value in the sorted list is 35, so the median is also £35,000. The mode is £30,000, because two people earn it.
Now add the chief executive on £400,000. The total becomes 315 + 400 = 715, and 715 ÷ 10 = 71.5, so the mean salary jumps to £71,500. With ten values, the median is halfway between the fifth and sixth: (35 + 36) ÷ 2 = 35.5, or £35,500. The mode is still £30,000.
One person roughly doubled the mean, yet nine of the ten people earn less than half of it. The median moved by just £500. If the boss's pay rose tenfold to £4 million, the mean would rocket to £431,500 while the median would stay at £35,500. That is why a job advert or company report quoting the “average salary” can be technically true and still give the wrong picture.
What is a skewed distribution?
A distribution is skewed when it has a long tail on one side. Incomes are the classic case: most people earn moderate amounts, and a small number earn vastly more. House prices behave the same way, as a handful of mansions sit far above ordinary homes. Website and app response times are skewed too: most requests are fast, but a few get stuck and take many times longer.
In a right-skewed distribution (long tail of high values) the mean is pulled towards the tail and sits above the median. The NIST/SEMATECH e-Handbook of Statistical Methods puts it simply: for skewed data, the mean is pulled in the direction of the skew. A big gap between mean and median is itself a useful clue that the data is lopsided.
Why do official statistics use the median for income and house prices?
National statistics offices headline medians for income because of that skew. The UK Office for National Statistics (ONS) reports both figures in its household income bulletins and notes that a limitation of the mean is that a few individuals with very high incomes can influence it. The ONS describes the median as the income of the middle person if everyone were lined up from poorest to richest. The US Census Bureau likewise leads its annual income report with median household income.
House price statistics often follow the same logic, because one sale of a very expensive property in a small area would swing a mean far more than a median. When you read a headline figure, check which measure it is. If only the mean is given for something like pay or wealth, ask what the median would be.
What is a weighted average?
A weighted average gives some values more influence than others, usually because they represent more people or more of something. Suppose one class of 20 students averages 70% on a test and another class of 30 averages 80%. Averaging the two class figures gives (70 + 80) ÷ 2 = 75%, but that treats both classes as equal in size.
The weighted average counts every student once: (20 × 70 + 30 × 80) ÷ 50 = (1,400 + 2,400) ÷ 50 = 3,800 ÷ 50 = 76%. The difference looks small here, but averaging averages without weights can badly distort results when group sizes differ a lot, such as combining survey results from a small country and a large one.
When is the mean the right choice?
The mean is the right tool when you care about totals. A shop planning stock needs mean daily sales, because the mean times the number of days gives the total it will sell. A city budgeting for water needs mean use per household for the same reason. The median cannot be multiplied back up to a total.
The mean also works well when data is roughly symmetrical with no wild outliers, such as adult heights or repeated measurements of the same object. And sometimes the outliers are the point: an insurer cares a great deal about the rare huge claim, so throwing it away by using the median would hide the real cost. Often the best answer is to report both, and the gap between them tells its own story.
What are percentiles like p50, p90 and p99?
A percentile tells you the value below which a given share of the data falls. The 50th percentile (p50) is the median. The 90th percentile (p90) is the value that 90% of observations are at or below, and p99 marks the slowest or largest 1%. Engineers use them for response times because averages hide the bad experiences.
Illustrative example: a service handles 100 requests. 85 take 200 milliseconds, 10 take 1,000 ms and 5 take 4,000 ms. The mean is (85 × 200 + 10 × 1,000 + 5 × 4,000) ÷ 100 = (17,000 + 10,000 + 20,000) ÷ 100 = 470 ms, a time that no single request actually took. The median (p50) is 200 ms, p90 is 1,000 ms and p99 is 4,000 ms. Together they show that most users are fine and a small group waits 20 times longer.
How can an “average score” hide problems in AI benchmarks?
AI model comparisons often quote one average score across many tasks. That single number can hide large differences. Illustrative example: model A scores 98%, 95%, 90%, 75% and 42% on five task types, while model B scores 82%, 80%, 80%, 79% and 79%. Both add up to 400, so both average 80%.
Yet they behave very differently. Model A's median is 90% and it is excellent at most tasks but fails badly at one. Model B's median is 80% and it is steady everywhere. If your use case is the task where A scores 42%, the shared “80% average” is useless to you. When you see a headline benchmark average, look for the per-task breakdown, the spread of scores, and whether the tasks resemble what you actually need. The same applies to “average latency” claims: ask for p95 or p99 too.
Illustrative salaries (£ thousands): how one high earner moves the mean but not the median
| Scenario | Salaries | Mean | Median | Mode |
|---|---|---|---|---|
| Nine staff | 28, 30, 30, 34, 35, 36, 38, 40, 44 | 35 | 35 | 30 |
| Nine staff + CEO on 400 | …plus 400 | 71.5 | 35.5 | 30 |
| Nine staff + CEO on 4,000 | …plus 4,000 | 431.5 | 35.5 | 30 |
Examples
- Pay: a company's “average salary” can be inflated by a few executives, while the median shows what the middle employee earns
- House prices: one mansion sale on a street of terraced houses lifts the mean price far more than the median
- Website speed: a mean load time of 470 ms can hide that 5% of visitors wait 4 seconds; p99 exposes it
- Test scores: a few zeros from students who missed the exam drag the class mean down but barely move the median
- AI benchmarks: two models with the same 80% average can differ wildly on individual tasks
Common questions
Is the average the same as the mean?
In everyday speech, yes. “Average” almost always means the arithmetic mean: add the values and divide by the count. Strictly, the median and mode are also kinds of average, so careful writers say “mean” or “median” to remove the ambiguity. If a statistic just says “average”, assume it is the mean unless told otherwise.
How do you find the median of an even set of numbers?
Sort the numbers, find the two in the middle, and take the halfway point between them. For 4, 7, 9 and 20, the middle pair is 7 and 9, so the median is (7 + 9) ÷ 2 = 8. The median does not have to be one of the original values.
What does it mean if the mean is much higher than the median?
It usually means the data is right-skewed: a small number of very large values are pulling the mean up. Income, wealth, house prices and waiting times often look like this. Most individual values will sit below the mean, so the median is a better guide to the typical case.
Is the median always better than the mean?
No. The median is more robust to outliers, but the mean is needed whenever you care about totals, such as budgets, stock levels or total cost. If the extreme values matter, as with rare large insurance claims, the mean captures them while the median ignores them. Reporting both is often the most honest option.
When is the mode useful?
The mode is most useful for categories or values that repeat, such as the most common shoe size, the most popular product, or the most frequent answer in a survey. It is the only one of the three that works for non-numeric data like colours or brands. For continuous numbers such as salaries it is often less informative.
Sources and further reading
- Measures of Location (NIST/SEMATECH e-Handbook of Statistical Methods) — NIST
- Percentiles (NIST/SEMATECH e-Handbook of Statistical Methods) — NIST
- Average household income, UK (latest bulletin) — Office for National Statistics
- About Income — US Census Bureau
- OpenIntro Statistics — OpenIntro
Glossary terms
- Average (mean)
The average, or mean, is calculated by adding values and dividing by the count of values. Extremes can pull it far from what most cases look like.
- Median
The median is the middle value when numbers are ordered from smallest to largest. Half the values sit at or below it, and half sit at or above it.
Keep reading
- Correlation vs causation: what is the difference?
Correlation means two things tend to move together; causation means one actually makes the other happen. A correlation can come from a hidden third factor, from the effect running the other way, from chance, or from how the data was collected. Proving causation needs stronger evidence, ideally a randomised experiment.
- What is sample size?
Sample size is the number of people, items or measurements you actually observed in order to learn about a larger group. Bigger samples give more precise estimates, but with diminishing returns: the margin of error shrinks with the square root of the sample size, so quadrupling the sample only halves the error.
- What is selection bias?
Selection bias is a distortion that happens when the people, items or events in your data are not representative of the group you want to draw conclusions about, because of how they were chosen or who chose to take part. It can make results look precise while being systematically wrong, and a bigger sample does not fix it.
- AI model comparison (free tool)
Every major language model side by side: context window, price per million tokens, and whether you can download it.
- What is inflation?
Inflation is a general rise in prices over time, which means each unit of currency buys less. Mild inflation is common in modern economies; high or unstable inflation makes planning harder.