The mean is the sum of your values divided by how many there are. The median is whatever sits in the middle once the numbers are sorted. When a data set is balanced, the two land close together, and when it is not they split apart. That split is the whole story of mean vs median, and it tells you which one describes your data fairly.
This guide explains the difference between mean and median with numbers you can follow, shows what one extreme value does to each, and gives a simple rule for choosing. We ran every figure below in R, so the numbers you see are the numbers we got. To get both values for your own data, use our free mean median mode calculator.
Mean vs median: the short answer
Use the mean when the values are fairly even and every value should count. Use the median when a few very large or very small values would drag the mean away from what is typical. The table sets the two side by side. Whether you search for mean vs median or median vs mean, the question is the same: which centre should you trust for your data?
| Mean | Median | |
|---|---|---|
| Definition | Sum of the values divided by n | Middle value of the sorted list |
| How you get it | Add everything up, then divide | Sort, then take the middle (or average the middle two) |
| Uses every value? | Yes | No, only the middle position matters |
| Effect of one extreme value | Large: it moves the mean a lot | Small: it barely moves |
| Best for | Balanced data without extreme values | Skewed data such as income and house prices |
| Our example (commute times, n = 8) | 40.375 minutes | 30.5 minutes |
The last row comes from the worked example below, where one very long commute separates the two values by almost ten minutes. Mean versus median, sometimes written mean v median, is the same comparison in every row of this table.
The difference between mean and median
The difference between median and mean starts with how each is found. The definition of mean vs median comes down to what each one does with your numbers. The mean treats the data as a balance: it is the point where the distances above it and below it cancel out exactly. The median treats the data as a queue: it is the value with half of the numbers on each side.
Take seven commute times in minutes: 22, 25, 27, 30, 31, 33 and 35. For this mean vs median calculation, they add to 203, so the mean is 203 ÷ 7 = 29. Already sorted, the middle (fourth) value is 30, so the median is 30. Here the mean and the median are close, because no value sits far from the rest.
When the count is even, there is no single middle, so the median is the average of the two middle numbers. For 4, 8, 15 and 16 the median is (8 + 15) ÷ 2 = 11.5, while the mean is 43 ÷ 4 = 10.75. If you want to see the sorting and the steps for your own list, our mean tool and the median section of the calculator above show the working.
Mean vs median formula
The mean formula is x̄ = Σx ÷ n: add every value, then divide by the count n. The median formula is a position: with n values sorted, the median sits at position (n + 1) ÷ 2. For nine values that is position 5, so the median of 1, 2, 3, 4, 5, 6, 7, 8, 9 is 5. When n is even, average the values at positions n ÷ 2 and n ÷ 2 + 1. For 2, 3, 4, 5, 6, 7, 8 and 9 those are the 4th and 5th values, so the median is (5 + 6) ÷ 2 = 5.5.
There is one more difference worth knowing. The deviations from the mean always add up to zero, which is why the mean is the balance point. The median is the value that makes the total absolute gap smallest. For the seven commute times the absolute gaps total 26 around the mean and 25 around the median, so the median wins on that measure, while the mean wins on squared gaps (126 versus 133).
How one outlier moves the mean
Now add one very long trip of 120 minutes to the same seven commutes. The eight values sort to 22, 25, 27, 30, 31, 33, 35 and 120.
- New mean. The values now add to 323, and 323 ÷ 8 = 40.375. The mean rose by 11.375 minutes.
- New median. With eight values the middle two are the fourth and fifth, 30 and 31, so the median is 30.5. It rose by only 0.5 minutes.
- Check the result. Seven of the eight commutes are below the mean of 40.375, so the mean no longer describes a typical trip. The median of 30.5 still does.

Make the outlier even larger, 1,200 instead of 120, and the mean climbs to 175.375 while the median stays at 30.5. The median depends on position, not size, so the biggest value could be any number above 35 and the median would not change. That is the practical meaning of the median being resistant to outliers.
Mean vs median in skewed data
Skewed data has a long tail on one side. In mean vs median in skewed data, the mean is pulled toward the tail and the median is not, so the gap between them is a quick sign of skew.
- Right skew (long tail of high values): the mean is larger than the median. Eight home prices in thousands of dollars, 210, 225, 240, 255, 270, 285, 310 and 1,450, give a mean of 405.625 and a median of 262.5.
- Left skew (long tail of low values): the mean is smaller than the median. Eight quiz scores, 40, 85, 88, 90, 92, 93, 94 and 96, give a mean of 84.75 and a median of 91.
- Symmetric data: the mean and the median are about equal. The values 46, 48, 50, 52 and 54 have a mean and a median of exactly 50.

A matching gap does not prove the data are perfectly symmetric, but a large gap is a useful warning. When you see one, look at a histogram or box plot before you pick a single number to report. The mean, median and mode calculator also shows the order of the three averages, which is another quick check for skew.
When to use the mean or the median
Here is a plain rule for when to use mean vs median, and when to use median vs mean if you think of it the other way round. It also answers when to use median vs average and when to use average vs median, because average here usually means the mean.
- Use the mean when the data are roughly symmetric, there are no extreme values, and you need a figure that uses every observation, such as a total or a forecast.
- Choose the median if the data are skewed or a few values sit far from the rest and you want a typical value, such as income, house prices or waiting times.
- Report both when they differ a lot. The size of the gap tells the reader how skewed the data are.
- Keep an outlier in the mean when it is a real, important result and not a typing error. A 120-minute commute may be exactly what you want to count.
- Think about the type of data. The median works for ordered categories, for example a rating scale, where a mean can be hard to interpret. For text categories with no order, neither one applies and the mode is the choice, which our mode calculator finds.
Spread matters too. A mean is usually reported with a standard deviation, and a median with the interquartile range, so see the standard deviation tool and the IQR calculator for the matching measure of spread.
Mean vs median income and house prices
Mean vs median income is the textbook case (and median vs mean income comparisons work the same way), because incomes are right-skewed: a small number of very high earners pull the mean up. Take nine household incomes in thousands of dollars: 31, 38, 42, 47, 55, 63, 72, 98 and 640. They add to 1,086, so the mean is 1,086 ÷ 9 = 120.6667, or about $120,667. The fifth value of the nine sorted incomes is 55, so the median is $55,000.

Eight of the nine households are below the mean, so quoting the mean would overstate what a typical household earns. The same gap shows up in median vs average income figures, where average usually means the mean. The same pattern explains median income vs mean income reports and why housing reports usually quote a median home price, as in the eight prices above. You will usually see the median in official income statistics for exactly this reason, and the mean used when a total is needed, such as total income divided by households.
Mean vs average vs median
In everyday speech, average usually means the mean, so mean vs average, or average vs mean, is mostly a question of wording. In statistics, though, average is a loose word for any measure of the centre. The mean, the median and the mode all count as averages, which is why median vs average and average vs median searches often mean the same thing as mean vs median. A search for mean vs median vs average, or median vs mean vs average, is really asking how three ideas fit together: average is the family, and the mean and the median are two members of it.
When a news story says the average rose, check which one it is. If the figure is the mean, one huge value can move it. If it is the median, the middle of the data moved. Our mean median mode calculator returns all three so you can compare them on your own numbers.
Mean vs median FAQs
What is the difference between mean and median?
The mean is the total of all the values divided by the count. The median is the number in the middle of an ordered list. Extreme values move the mean because it uses every value, while only the middle position matters to the median.
When should I use the median instead of the mean?
Choose the median if the data are skewed or contain extreme values, for example incomes or house prices, and you want a typical value. Choose the mean if the data are roughly symmetric.
Which is bigger, the mean or the median?
It depends on the skew. In right-skewed data the mean is larger than the median. In left-skewed data the mean is smaller. In symmetric data they are about equal.
Are the mean and median ever the same?
Yes, when the data are symmetric. For 2, 4, 6, 8 and 10 both come out as 6.
Is the median better than the mean?
Neither is always better. The median is better for skewed data and outliers. The mean is better for symmetric data and for any calculation that needs every value, such as a total.
Is average the mean or the median?
Average is a loose word. Most people mean the mean, but the median and the mode are averages too. If it matters, check which measure is being quoted.
How does an outlier affect the mean and the median?
An outlier pulls the mean toward it, sometimes by a lot. The median barely moves. In our commute example, adding one 120-minute trip raised the mean by 11.375 minutes and the median by only 0.5.
Is it better to use the mean or the median?
It depends on the data. The median is better when the data are skewed or have outliers, and the mean is better when the data are roughly symmetric and every value should count. Reporting both is often the safest choice.
When should I use the median instead of the average?
Use the median instead of the average when a few extreme values would distort it, such as income, house prices or commute times. Here the average means the mean.
How do you find the median of 1, 2, 3, 4, 5, 6, 7, 8, 9?
With nine values the median is the value at position (9 + 1) ÷ 2 = 5, which is 5. For 2, 3, 4, 5, 6, 7, 8 and 9 the count is even, so average the 4th and 5th values: (5 + 6) ÷ 2 = 5.5.
What is mean vs median in simple words?
The mean is the balance point of the numbers and the median is the number in the middle. When one value is far from the rest, the median tells you more about a typical value.
What is median vs mean for skewed data?
For skewed data the median is usually the better summary, because the mean is pulled toward the long tail. Eight home prices with one very expensive house give a median of 262.5 and a mean of 405.625 thousand dollars.
Ready to try your own numbers? Use the mean median mode calculator, the mean calculator or the MAD calculator, or browse the descriptive statistics calculators. How we test our numbers is explained on the methodology page.
Easy Stat Calc · Checked against R · Last updated November 28, 2026 · Methodology