How to Find the Median in Math: Definitions and Examples
The median is the middle value in data arranged from least to greatest. When there are two middle values, the median is the mean of those two values.
Because it represents the exact center of a sorted data set, the median in math is an essential measure of typical size.
What is the median?
The median is the middle value of a data set. It splits the data into two equal halves, ensuring that exactly half of the numbers are smaller and half of the numbers are larger than the middle number.
Finding the median value is especially useful when studying typical outcomes in real-world data, such as average household incomes, test scores, or housing prices.
Order the data first
To find the correct middle position, you must always arrange the data from least to greatest before doing anything else.
Sorting the data is the mandatory first step for finding the median.
If you attempt to pick the center of an unordered list, the result will be incorrect. When working with large amounts of data, organizing the numbers into frequency tables can help you sort and count the values accurately.
Find a median with an odd number of values
When a data set contains an odd number of values, there is exactly one central number. You can find its position using the formula , where is the total count of numbers.

For example, if you have values, the median is located at . The third number in the sorted list is your median.
Find a median with an even number of values
When a data set contains an even number of values, there is no single middle number. Instead, the center falls exactly between a middle pair of values.

Applying the position formula to a set of values gives . The decimal result means the median lies halfway between the 3rd and 4th numbers. To find it, add the two middle numbers and divide the result by .
Compare median and mean
The median represents the strict center position of a data set, while the mean is the arithmetic average calculated by combining all values.
When a data set contains extreme values, known as outliers, the mean is heavily affected. The outlier pulls the mean away from the center. In contrast, the median stays securely in the middle, making it a better summary of typical values for skewed data. The mode is simply the number that appears most frequently.

Because the median represents the middle value, extreme numbers at the edges of the ordered list do not change its position.
Worked examples
Review these examples to practice finding the median for both odd and even numbers of data points.
Example 1: Finding the median of an odd number of values
Question: Find the median of the data set .
Method:
- Order the data from least to greatest. The ordered list is .
- Count the total number of values. There are values.
- Find the middle position using . The position is , so the median is the 3rd value.
- Identify the 3rd value in the ordered list.
Answer: The median is .
Check: There are two values less than ( and ) and two values greater than ( and ), confirming it is the exact center.
Example 2: Finding the median of an even number of values
Question: What is the median of the data set ?
Method:
- Order the data from least to greatest. The ordered list is .
- Count the values. There are values.
- Find the middle position using . The position is , meaning the median is halfway between the 3rd and 4th values.
- Identify the 3rd and 4th values. They are and .
- Calculate the mean of these two middle numbers.
Answer: .
Check: is exactly units away from both and , placing it precisely in the middle.
Example 3: Using position for a larger data set
Question: A large ordered data set contains values. Which position holds the median?
Method:
- Identify the total number of values. Here, .
- Apply the position formula .
- Substitute for .
- Calculate the result.
Answer: . The median is the 23rd value.
Check: If the 23rd value is the middle, there are values before it and values after it. Since , the position is correct. For very large organized lists, you can track cumulative frequency to reach this 23rd position quickly.
Common mistakes
- Forgetting to order the data: The most frequent error is picking the center number of a disorganized list. The data must be sorted from least to greatest before you start counting.
- Assuming the median is always in the data set: When working with an even number of values, the median is the average of the two middle numbers. This often creates a decimal that does not appear in the original list.
- Confusing the median with the mean: The median is strictly a position-based middle, while the mean relies on adding all values.
Frequently asked questions
Can the median be negative?
Yes. If the middle values of your ordered data set are negative, the median itself will be negative. The steps to find it remain exactly the same.
What if multiple numbers share the middle position?
If the middle values are identical, the median is simply that repeated number. For example, the median of the ordered list is .
How does the range affect the median?
The median measures the center of the data, while the range in statistics measures how spread out the data is. A large range means the highest and lowest values are far apart, but it does not tell you whether the median itself is large or small.
Practice questions

What is the median number of books read according to this dot plot?
What is the median of the data set ?
What is the median of the data set ?

What is the median shoe size in this frequency table?

The boxes above show five numbers sorted from least to greatest. If the median is , what is the value of ?
