Averages

How to Find the Median: Odd and Even Data Sets

How to Find the Median: Odd and Even Data Sets - featured image
Quick answerTo find the median, sort the numbers from smallest to largest and pick the middle one. If there are two middle numbers, add them and divide by 2. For 14, 3, 8, 21, 6 the sorted list is 3, 6, 8, 14, 21, so the median is 8.

Skip the manual work: use the Median Calculator to check any answer with full steps.

Finding the median in 3 stepsFinding the median in 3 steps1Sort the numbers from smallest to largest.2Count them. Odd count: take the middle number.3Even count: average the two middle numbers.

Step 1: sort the data

The median is a position in an ordered list, so always sort first. The list 14, 3, 8, 21, 6 becomes 3, 6, 8, 14, 21.

Odd number of values

With 5 values the middle is the 3rd one. In 3, 6, 8, 14, 21 that is 8. Two values sit below it and two above.

Even number of values

Data: 2, 4, 6, 8, 10, 12 (already sorted, 6 values)

There is no single middle, so take the two middle numbers, 6 and 8, and average them: (6 + 8) ÷ 2 = 7. Notice that the median, 7, is not in the list.

A longer example with duplicates

Data: 12, 5, 9, 5, 14, 7, 9, 9

Sorted: 5, 5, 7, 9, 9, 9, 12, 14. There are 8 values, so average the 4th and 5th: (9 + 9) ÷ 2 = 9.

Why the median resists outliers

Compare the mean and median of 55, 60, 65, 70 and 1000:

Measure Value
Mean 250
Median 65

The single value 1000 drags the mean up to 250, but the median stays at 65. That is why incomes and house prices are usually reported as medians.

Try your own numbers in the median calculator.

Frequently asked questions

What is the median?

The median is the middle value of a sorted data set. Half the values are below it and half are above it.

How do you find the median of an even set?

Sort the numbers, take the two in the middle and find their mean. For 2, 4, 6, 8 the middle two are 4 and 6, so the median is 5.

Do duplicates count in the median?

Yes. Keep every repeated value when you sort and count.

Try it yourself

Median Calculator

Free median calculator. Paste your numbers to sort them and find the middle value, with odd and even cases explained.

Keep learning

Matthew P. Wood
Writes and checks the worked examples and formulas on this site. See how we check our work.