Mean Median Mode Calculator · Practical guide
How to Find the Median With Even Numbers
With an even count, the median is the average of the two middle values after sorting.
At a glance
The Even-Count Rule
When a dataset has an even number of values, there is no single middle number. The median is the average of the two middle values in the sorted list: add them and divide by 2.
Interactive tool
Mean Median Mode Calculator
Enter your own values, then compare the result with the examples below.
Results
Sorted Data: -
Worked Example With Four Values
Take the dataset 3, 5, 8, 9:
- Sort it: 3, 5, 8, 9 (already sorted).
- The two middle values are 5 and 8.
- Median = (5 + 8) / 2 = 6.5.
Notice that 6.5 is not in the original dataset — that is completely normal for even counts.
Worked Example With Six Values
For 12, 4, 7, 9, 20, 4, first sort: 4, 4, 7, 9, 12, 20. The middle pair is 7 and 9, so the median is (7 + 9) / 2 = 8. Meanwhile the mean of the same data is 56 / 6 = 9.33 — a reminder that median and mean usually differ.
Odd Counts Are Simpler
With an odd count you just take the single middle value: for 1, 2, 4, 4, 7, 7, 9 the median is 4, the fourth of seven sorted values. Paste any list into the calculator above and it shows the sorted data plus the median step by step, so you can verify your work.
Frequently Asked Questions
Does the median have to be a number in the dataset?
No. With an even count, the median is the average of two middle values, so it often falls between two dataset values, like 6.5 for 3, 5, 8, 9.
Do I have to sort the data first?
Yes. The median is defined by position in the ordered list. Picking the middle of an unsorted list gives a meaningless value.
What if the two middle values are equal?
Then the median is that value. For 2, 5, 5, 9 the middle pair is 5 and 5, so the median is (5 + 5) / 2 = 5.
Is the median the same as the mean for even counts?
Not generally. The median uses only the two middle values; the mean uses every value. They coincide only for specially symmetric data.