Median Notes
These Median Notes explain how to find the middle of a list of numbers, with the working shown line by line. The values are sorted first, because the middle only means something once they are in order. An odd count leaves one value in the middle; an even count leaves two, which are added and halved. Unlike the mean, a single extreme value barely moves it. Following the same pattern every time is what makes the median easy to check and repeat.
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Formula: Median Position Formula
This formula gives where the median sits in a sorted list of n values. A position ending in .5 means the median is halfway between the two values either side of it.
Useful Tips to Remember
The median is the middle value once the data is in order from smallest to largest. With an odd number of values, it is the middle one; with an even number, it is the mean of the two middle values. Forgetting to order the data first is the most common mistake. The median is not affected by extreme values.
Required knowledge
- How to count the values, covered in the Count Calculator.
- How to find the mean of the two middle values, covered in the Mean Calculator.
Where Is the Median Used?
The median is the middle value when data is put in order, so half the values lie below it and half above. It is the preferred average for skewed data, which is why governments report median income and median house prices, since a few very high values would make the mean misleading. Doctors use median survival times, researchers use medians for reaction and waiting times, and the median is the centre line of every box plot. It gives a fair picture of what is typical when the data is uneven.
- Reporting median household income
- Describing typical house prices in an area
- Measuring median waiting times in hospitals
- Reporting median survival times in medical studies
- Finding the typical value in data with outliers
Median Practice Problems
Example 1 finds the median of 5, 8, 12 and 15, and Example 2 finds it for 6, 6, 7 and 10, both with an even number of values. Examples 3 and 4 give you two more of the same kind to try, \(4,\; 9,\; 11,\; 16\) and \(13,\; 2,\; 21,\; 8,\; 17\). Try averaging the middle two yourself first.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Formula
Formula: Median Position Formula
This formula gives where the median sits in a sorted list of n values. A position ending in .5 means the median is halfway between the two values either side of it.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(5,\; 8,\; 12,\; 15\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(5,\; 8,\; 12,\; 15\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(5,\; 8,\; 12,\; 15\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(4\) gives position \(2.5\), which is halfway between positions \(2\) and \(3\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(8\) and \(12\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(8,\; 12\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(8 + 12 = 20\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(8,\; 12\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(8 + 12 = 20\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(8,\; 12\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(20\) and \(n\) with \(2\) gives \(\bar{x} = \frac{20}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(20 \div 2 = 10\).
Final Answer
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Formula
Formula: Median Position Formula
This formula gives where the median sits in a sorted list of n values. A position ending in .5 means the median is halfway between the two values either side of it.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(6,\; 6,\; 7,\; 10\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(6,\; 6,\; 7,\; 10\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(6,\; 6,\; 7,\; 10\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(4\) gives position \(2.5\), which is halfway between positions \(2\) and \(3\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(6\) and \(7\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(6,\; 7\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(6 + 7 = 13\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(6,\; 7\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(6 + 7 = 13\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(6,\; 7\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(13\) and \(n\) with \(2\) gives \(\bar{x} = \frac{13}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(13 \div 2 = 6.5\).
Final Answer
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Formula
Formula: Median Position Formula
This formula gives where the median sits in a sorted list of n values. A position ending in .5 means the median is halfway between the two values either side of it.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(4,\; 9,\; 11,\; 16\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(4,\; 9,\; 11,\; 16\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(4,\; 9,\; 11,\; 16\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(4\) gives position \(2.5\), which is halfway between positions \(2\) and \(3\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(9\) and \(11\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(9,\; 11\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(9 + 11 = 20\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(9,\; 11\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(9 + 11 = 20\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(9,\; 11\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(20\) and \(n\) with \(2\) gives \(\bar{x} = \frac{20}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(20 \div 2 = 10\).
Final Answer
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Formula
Formula: Median Position Formula
This formula gives where the median sits in a sorted list of n values. A position ending in .5 means the median is halfway between the two values either side of it.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(13,\; 2,\; 21,\; 8,\; 17\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(2,\; 8,\; 13,\; 17,\; 21\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(5\) at the last value, so \(n = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(2,\; 8,\; 13,\; 17,\; 21\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(5\) at the last value, so \(n = 5\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(5\) gives position \(3\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(3\) of the sorted list is \(13\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Median Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Median Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.