Mean vs MedianWhat's the difference?
The mean is the sum of all values divided by their count; the median is the middle value when sorted. The median resists outliers, the mean does not.
Mean
Symmetrical data without extreme outliers
Median
Skewed data or data with outliers
In short
The mean is the sum of all values divided by their count; the median is the middle value when sorted. The median resists outliers, the mean does not.
The difference in 30 seconds
Different ways of finding the average
The mean adds all values and divides by the count, while the median is the middle value once the data is put in order.
Sensitivity to outliers
One extreme value can pull the mean sharply up or down, whereas the median barely moves.
Use of all the data
The mean reflects every value in the set, while the median depends mainly on the middle position and ignores the rest.
Best fit for skewed data
For skewed figures such as house prices or salaries, the median usually describes a typical case better than the mean.
Side by side
| Mean | Median | |
|---|---|---|
| Definition | Sum of values divided by number of values | Middle value of ordered data (or average of the two middle values) |
| Example for 1, 2, 3, 4, 100 | 22 | 3 |
| Affected by outliers | Yes, strongly | Little or not at all |
| Uses all values | Yes | No, relies on position |
| Works with ordinal data | Generally no | Yes |
| Best for distribution shape | Symmetrical | Skewed |
| Ease of calculation | Simple with a calculator | Simple but needs sorting first |
| Typical real-world use | Exam averages, average temperatures | Median household income, house prices |
Key traits
Mean
- Uses every value in the dataset
- Easy to calculate and widely understood
- Works well with further statistical analysis
- Ideal for evenly spread, symmetrical data
- Heavily distorted by outliers and extreme values
- Can be misleading for skewed data such as incomes
Median
- Not affected by extreme values
- Better represents a typical value in skewed data
- Works with ordinal data, such as rankings
- Easy to find once data is ordered
- Ignores the actual size of most values
- Less useful for further mathematical calculations
Questions people ask
What is the main difference between mean and median?
The mean is the total of all values divided by how many there are, while the median is the middle value when the data is arranged in order.
When should you use the median instead of the mean?
Use the median when your data is skewed or contains outliers, such as incomes or house prices, because extreme values will not distort it.
Can the mean and median be the same?
Yes, in perfectly symmetrical distributions such as a normal distribution the mean and median are equal or very close.
Why is the mean higher than the median for incomes?
A small number of very high earners pull the mean upwards, while the median stays at the middle of the distribution, so the mean is typically higher.