The median is the middle value in a sorted list of numbers. To find it, put the numbers in order first, then take the center: one middle number if the list has an odd number of values, or the average of the two middle numbers if the list has an even number of values.

There is no separate median formula you memorize for every case. The method depends on whether the number of values is odd or even.

odd number of valuesmedian=middle value\text{odd number of values} \Rightarrow \text{median} = \text{middle value} even number of valuesmedian=a+b2\text{even number of values} \Rightarrow \text{median} = \frac{a+b}{2}

Here aa and bb are the two middle values in the sorted list.

How to Find the Median in 3 Steps

  1. Put the numbers in order from least to greatest.
  2. Count how many values are in the list.
  3. 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 sorting, the word "middle" does not mean anything precise.

Median Example with an Even Number of Values

Find the median of 2,4,5,7,50,1002, 4, 5, 7, 50, 100.

The numbers are already in order. There are 66 values, so the count is even. That means the median is the average of the two middle values.

The two middle values are 55 and 77, so

median=5+72=6\text{median} = \frac{5+7}{2} = 6

So the median is 66. Even though 5050 and 100100 are much larger than the other values, they do not change which two values sit in the middle.

Why the Median Matters

The median tells you what sits in the center of a data set. In a sorted list, about half the values are on one side and about half are on the other side.

That makes the median useful when one or two values are unusually large or small. Those extreme values can pull the mean a lot, but they often change the median much less.

This is why people often report median income, median home price, or median response time instead of only the mean.

Odd Lists vs. Even Lists

If the list has an odd number of values, there is one exact middle value. If the list has an even number of values, there is no single middle item, so for a numerical data set you average the two middle values.

Be careful with the averaging rule: it applies to numbers. If the data are only ordered categories, you can still talk about the middle position, but averaging the two middle entries does not make sense.

Common Mistakes When Finding the Median

  • Not sorting first. In 9,2,7,4,59, 2, 7, 4, 5, the median is not the third number as written. After sorting to 2,4,5,7,92, 4, 5, 7, 9, the median is 55.
  • Mixing up median and mean. The mean averages all values, but the median only uses the middle position in 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 3,5,8,93, 5, 8, 9, the median is 5+82=6.5\frac{5+8}{2} = 6.5, which is not one of the listed values.

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.

Try a Similar Problem

Find the median of 1,3,4,6,9,20,251, 3, 4, 6, 9, 20, 25, then find the median of 1,3,4,6,9,201, 3, 4, 6, 9, 20. The only thing that changed is the number of values, so focus on what changes in the middle step. If you want to go further, compare each median with the mean and see which measure moves more.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →