The median is the middle value of a sorted list, and you should prefer it over the mean whenever the data may contain outliers or skew. Sort the numbers first, then take the center: one middle number if the count is odd, or the average of the two middle numbers if the count is even.
There is no separate median formula to memorize for every case. The method depends only on whether the number of values is odd or even:
where and are the two middle values in the sorted list.
Median vs. Mean at a Glance
Median Mean
What it uses the middle position only every value in the set
After sorting? required not required
Outliers barely moves pulled strongly
Reported for income, home price, balanced numerical sets
response time
The median tells you what sits in the center of a data set: in a sorted list, about half the values fall on each side. The mean averages everything, so a few extreme values can drag it far from the typical case while the median stays put. That is why people report median income, median home price, or median response time instead of only the mean.
How to Find the Median in Three Steps
- Put the numbers in order from least to greatest.
- Count how many values are in the list.
- Take the middle value if the count is odd, or average the two middle values if the count is even.
Sorting is the step students miss most often. Without it, "middle" means nothing precise.
Worked Example with an Even Count
Find the median of .
The numbers are already in order. There are values, so the count is even, and the median is the average of the two middle values. Those values are and :
So the median is . Even though and are much larger than the rest, they do not change which two values sit in the middle, which is exactly why the median resists outliers.
When to Use the Median
Use the median when you want a typical middle value and the data may have outliers or skew. It is common in statistics, economics, and everyday summaries where a few very high or very low values can distort the mean. Note one limit: averaging the two middle values applies to numbers. If the data are only ordered categories, you can talk about the middle position, but averaging the two middle entries does not make sense.
Common Confusions: Odd vs. Even, Median vs. Mean
- Not sorting first. In , the median is not the third number as written. After sorting to , the median is .
- Mixing up median and mean. The mean averages all values; the median uses only the middle position of the sorted list.
- Picking only one middle number in an even-sized numerical list. You need both middle values and their average.
- Assuming the median must appear in the original list. In , the median is , which is not one of the listed values.
To lock in the odd-versus-even distinction, find the median of , then of . Only the number of values changed, so watch what happens in the middle step. Comparing each median with the mean of the same list shows which measure moves more when outliers are present.
Frequently Asked Questions
- How do you find the median of a data set?
- Put the numbers in order from least to greatest, count how many values there are, then take the middle value if the count is odd or the average of the two middle values if the count is even. Sorting is the step students miss most often, and without it the word middle means nothing precise.
- How do you find the median with an even number of values?
- Average the two middle values of the sorted list. For example, in the sorted list 2, 4, 5, 7, 50, 100 there are six values, so the median is the average of 5 and 7, which is 6. The large values 50 and 100 do not change which two numbers sit in the middle.
- When is the median better than the mean?
- When a few values are unusually large or small. Extreme values can pull the mean a long way but often barely move the median, since the median only depends on what sits in the center of the sorted list. That is why people report median income, median home price, or median response time.
- What is the most common mistake when finding the median?
- Skipping the sorting step. The median is defined as the middle of a sorted list, so picking the middle number of an unsorted list gives an unreliable answer. Another point to watch: when the count is even, you must average the two middle values rather than choosing one of them.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →