• Foundation
  • About 14 min
  • 5 practice questions

Median: the middle value when the data are arranged in order

Find the median of a list with an odd or an even number of values, locate its position quickly, and see why the median is not disturbed by extreme values.

If something looks wrong, please tell us.

The mean uses every value, so a single extreme value can pull it a long way. The median avoids this. It is simply the value in the middle once the data are put in order. Half of the observations lie at or below it and half lie at or above it. Exam questions on the median are quick to solve, but only if you follow the steps carefully; the most common error is forgetting to arrange the data first.

Steps to find the median

  1. Arrange the observations in order, smallest to largest (ascending). Descending order also works, as long as it is ordered.
  2. Count the observations: n.
  3. If n is odd, the median is the value in position (n + 1) ÷ 2.
  4. If n is even, there are two middle values, in positions n ÷ 2 and (n ÷ 2) + 1. The median is the mean of these two values.
Where the median sits in an ordered list
Number of values (n)Odd or evenMedian is
7Oddthe 4th value
9Oddthe 5th value
15Oddthe 8th value
8Eventhe mean of the 4th and 5th values
10Eventhe mean of the 5th and 6th values
20Eventhe mean of the 10th and 11th values

Worked example 1: an odd number of values

The heights (in cm) of seven students are 152, 147, 160, 155, 149, 158 and 151. Find the median height. Working: in order the heights are 147, 149, 151, 152, 155, 158, 160. Here n = 7, which is odd, so the median is in position (7 + 1) ÷ 2 = 4. The 4th value is 152 cm. Three students are shorter and three are taller.

Worked example 2: an even number of values

Eight shops sold 34, 28, 41, 37, 30, 45, 33 and 39 kg of rice in a day. Find the median sale. Working: in order the values are 28, 30, 33, 34, 37, 39, 41, 45. Here n = 8, which is even, so the two middle values are the 4th (34) and the 5th (37). Median = (34 + 37) ÷ 2 = 71 ÷ 2 = 35.5 kg. As with the mean, the median of an even-sized list need not be one of the values.

Arrange first, then find the middle

  • Odd n
    • Median = the value at position (n + 1) ÷ 2
    • 7 heights: (7 + 1) ÷ 2 = 4
    • The 4th value is 152 cm
  • Even n
    • Mean of the values at positions n ÷ 2 and (n ÷ 2) + 1
    • 8 sales: the 4th (34) and 5th (37)
    • (34 + 37) ÷ 2 = 35.5 kg

Why the median resists extreme values

Go back to the office from the last lesson, where the salaries were ₹20,000, ₹20,000, ₹20,000, ₹20,000 and ₹1,20,000. The mean was ₹40,000. The median is the 3rd of the five ordered values, which is ₹20,000, and that is what most people in the office actually earn. If the top salary rose to ₹5,00,000 the mean would jump, but the median would stay at ₹20,000, because the middle position does not change. This is why reports on incomes and house prices often quote the median.

The office salaries

  • Mean
    • ₹40,000
    • Would jump if the top salary rose to ₹5,00,000
  • Median
    • The 3rd of five ordered values: ₹20,000
    • What most people in the office actually earn
    • Would stay at ₹20,000

Traps to avoid

  • Not sorting first. The middle of an unsorted list means nothing. For 13, 7, 9, 21, 15 the middle entry as written is 9, but the true median is 13.
  • Writing the position as the answer. For 9 values the median is the 5th value, not the number 5.
  • Halving the wrong pair. For an even count, average the two middle values, not the first and last values.
  • Dropping repeated values. If a value appears twice in the data, it appears twice in the ordered list.

Arrange first. Odd n: median = value at position (n + 1) ÷ 2. Even n: median = mean of the values at positions n ÷ 2 and n ÷ 2 + 1.

Key takeaways: the median is the middle of the ordered data; its position depends only on n; for an even n you average the two middle values; and because it depends on position rather than size, extreme values hardly affect it.

Check your understanding

  1. 1. What is the median of 13, 7, 9, 21 and 15?

    1. 9
    2. 15
    3. 13
    4. 21
    Show answer

    Answer: C. In order: 7, 9, 13, 15, 21. There are 5 values (odd), so the median is the 3rd value, 13.

  2. 2. What is the median of 6, 2, 9, 4, 11 and 8?

    1. 6
    2. 8
    3. 6.5
    4. 7
    Show answer

    Answer: D. In order: 2, 4, 6, 8, 9, 11. There are 6 values (even), so the median is the mean of the 3rd and 4th values: (6 + 8) ÷ 2 = 7.

  3. 3. Twenty-five values are arranged in ascending order. The median is the value in which position?

    1. 12th
    2. 13th
    3. 12.5th
    4. 14th
    Show answer

    Answer: B. n = 25 is odd, so the median is at position (25 + 1) ÷ 2 = 13, the 13th value.

  4. 4. Find the median of 45, 52, 38, 61, 49, 55, 40 and 58.

    1. 49
    2. 52
    3. 50.5
    4. 51
    Show answer

    Answer: C. In order: 38, 40, 45, 49, 52, 55, 58, 61. There are 8 values, so the median is the mean of the 4th and 5th values: (49 + 52) ÷ 2 = 50.5.

  5. 5. The marks of five students are 35, 42, 48, 50 and 98. What is the median mark?

    1. 48
    2. 54.6
    3. 50
    4. 63
    Show answer

    Answer: A. The marks are already in order, and the 3rd of the 5 values is 48, so the median is 48. (The mean is 273 ÷ 5 = 54.6, pulled up by the 98; the median is not.)

Privacy · Terms · Refunds · Delivery