Mean, Median and Mode: How to Find Each (With Examples)
The mean is the sum of the numbers divided by how many there are. The median is the middle number once the list is in order. The mode is the number that appears most often. For 4, 7, 7, 9, 12, 15 and 21, the mean is 10.71, the median is 9 and the mode is 7.
This guide shows each step with worked examples, covers even counts, ties and outliers, and explains which measure to use.
What are the mean, median and mode?
They are three ways to describe the centre of a set of numbers. Each one is a type of average.
- Mean: add all the numbers, then divide by how many numbers there are.
- Median: the middle number once the list is in order.
- Mode: the number that appears most often.
- Range: the largest number minus the smallest. This shows spread and is not an average.
We use one data set through this guide: 12, 7, 9, 15, 7, 21 and 4.
How do you find the mean?
Add every number, then divide by the count. For our data set:
- Add the numbers: 12 + 7 + 9 + 15 + 7 + 21 + 4 = 75.
- Count the numbers: there are 7.
- Divide the sum by the count: 75 divided by 7 = 10.71.
The mean is 10.71. When people say average, they usually mean this one.
How do you find the median?
Put the numbers in order from smallest to largest, then pick the middle one. Our set in order is 4, 7, 7, 9, 12, 15, 21. There are 7 numbers, so the middle is the 4th number, which is 9. The median is 9.
How do you find the median of an even set?
With an even count there are two middle numbers. Add them and divide by 2. Take 2, 4, 6, 8, 20 and 30. The middle pair is 6 and 8, so the median is (6 + 8) divided by 2 = 7.
To find the middle position, add 1 to the count and halve the result. For 7 numbers the position is 4. For 6 numbers the position is 3.5, which sits between the 3rd and 4th numbers.
How do you find the mode?
Count how often each number appears. The number with the highest count is the mode. In our set, 7 appears twice and every other number appears once, so the mode is 7.
A set can have one mode, more than one mode or none at all:
- 2, 2, 2, 5 has one mode, which is 2
- 3, 3, 5, 7, 7, 9 has two modes, 3 and 7, and is called bimodal
- 1, 2, 3, 4 has no mode, because each number appears once
The mode is also the only one of the three that works for categories, such as the most common shirt size or favourite colour.
Mean, median, mode and range worked together
Here are all four answers for 12, 7, 9, 15, 7, 21 and 4.
| Measure | Working | Answer |
|---|---|---|
| Mean | 75 divided by 7 | 10.71 |
| Median | 4th of 7 numbers in order | 9 |
| Mode | 7 appears twice | 7 |
| Range | 21 minus 4 | 17 |
You can check these with our average calculator. Paste in your numbers and it gives the mean, median, mode, range, sum and count.
Which should you use: mean, median or mode?
Use the mean when numbers are spread evenly. Use the median when a few extreme values would pull the mean off course. Use the mode to find the most common value, or when the data is made of categories.
Here is how one extreme value changes the answers. Take 30, 32, 35, 36 and 38. The mean is 34.2 and the median is 35. Now add 200. The mean jumps to 61.83, while the median moves only to 35.5. One extreme value shifted the mean by more than 27 points and the median by half a point.
| Measure | Best for | Weak spot |
|---|---|---|
| Mean | Evenly spread data, totals and grades | One extreme value skews it |
| Median | Skewed data with outliers | Ignores how large the extremes are |
| Mode | Most common value, and categories | May be none, or several |
How can you remember which is which?
- Mean: the one that needs a sum. Add, then divide.
- Median: think of the median strip, the middle of a road.
- Mode: think most. Both words start with mo.
What if some numbers count more than others?
When some values carry more weight, as with exams and homework in a course grade, use a weighted mean. Multiply each value by its weight, add the results, then divide by the total weight. Our semester grade calculator does this for you.
FAQ
What is the formula for the mean?
Mean equals the sum of all values divided by the number of values.
How do you find the median of an even set of numbers?
Put the numbers in order, take the two middle numbers, add them and divide by 2.
Can a set of numbers have more than one mode?
Yes. A set with two modes is bimodal, and a set can have three or more. If every number appears once, there is no mode.
Which measure is best when there are outliers?
The median. Extreme values pull the mean towards them, while the median stays near the middle of the data.
What is the range?
The range is the largest number minus the smallest. For 4, 7, 7, 9, 12, 15 and 21, the range is 21 minus 4, which is 17.
Is the average the same as the mean?
In everyday use, average usually means the mean. Strictly, the mean, median and mode are all types of average.

