Relvora Prep

GMAT Quant lesson · Median & range

GMAT median, mode and range: sorting, comparing and unknowns

Median, mode and range on GMAT Quant: medians of odd and even lists, mean vs. median, the mode, ranges with an unknown value, and frequency tables.

The core idea

The median is the middle of a sorted list (the average of the two middle values when the count is even), the mode is the most frequent value, and the range is greatest minus least. Always sort first, and when a value is unknown, consider every position it could take.

Core ideas

Words used here

  • Sorted list: the values written in order, from least to greatest.
  • Median: the middle value of a sorted list.
  • Mode: the value that appears most often. A unique mode means only one value has the highest count.
  • Range: the greatest value minus the least value. It measures how spread out the list is.
  • Mean (average): the sum of the values divided by how many values there are.
  • Outlier: a value far above or far below the others.
  • Frequency: how many times a value appears. A frequency table lists each value with its frequency.
  • Position: the place of a value in the sorted list (1st, 2nd, 3rd, …).
  • Median: sort the list first. With an odd number of values, the median is the single middle value. With an even number, it is the average of the two middle values.
  • Where the middle is: in a sorted list of n values, the median is at position (n + 1) ÷ 2. For 7 values, (7 + 1) ÷ 2 = 4, so the 4th value. For 8 values, (8 + 1) ÷ 2 = 4.5, so halfway between the 4th and 5th values.
  • Mode: the most frequent value. A list can have several modes, or none if every value appears once.
  • Range: greatest − least.
  • Mean vs. median: one very large value (an outlier) pulls the mean up a lot, but it hardly moves the median.

Try it. For the list 7, 2, 9, 4, 9, 12, find the median, the mode and the range.

Show the answer
  1. Sorted: 2, 4, 7, 9, 9, 12. There are 6 values, an even number.
  2. Median: the two middle values are 7 and 9, so (7 + 9) ÷ 2 = 16 ÷ 2 = 8.
  3. Mode: 9 appears twice, every other value once, so the mode is 9.
  4. Range: 12 − 2 = 10.

Median of an odd-length list

Sort the values from least to greatest. The median is the single value in the middle.

Why it works. The median splits a sorted list into two halves of equal size. Sorting is what makes "middle" mean the middle value rather than the middle position on the page.

How to spot it: an odd number of values.

Example. What is the median of 13, 4, 21, 8, 17, 6, 10?

  1. Sorted: 4, 6, 8, 10, 13, 17, 21.
  2. There are 7 values. The middle position is (7 + 1) ÷ 2 = 4.
  3. The 4th value is 10.

Trap: picking the middle of the unsorted list, 8.

Two sorted lists. Odd: 2, 3, 5, 8, 9, 11, 14 has 7 values; the median is the 4th, 8, with 3 values on each side. Even: 2, 3, 5, 8, 9, 11, 14, 20 has 8 values; the middle pair is the 4th and 5th, 8 and 9, so the median is 8.5.

Edge cases.

  • Repeated values each take a position. The median of 3, 3, 3, 8, 9 is 3.
  • Negatives sort below zero: −5 comes before −2.
  • Changing the extremes doesn't move the median, as long as they stay the extremes.

GMAT-level example. The list 12, 7, x, 15, 3 has a median of 7. What is the greatest possible value of x?

  1. Without x, the sorted values are 3, 7, 12, 15. With x there are 5 values, so the median is the 3rd.
  2. If x ≤ 7, the sorted list has 7 in 3rd place (for example 3, x, 7, 12, 15 or x, 3, 7, 12, 15). The median is 7 ✓.
  3. If x > 7, the 3rd value becomes x or 12, which is more than 7 ✗.
  4. So x ≤ 7, and the greatest possible value is 7 (then the list is 3, 7, 7, 12, 15).

Check yourself. What is the median of 5, −2, 0, 8, −2, 3, 11?

Check your answer

Sorted: −2, −2, 0, 3, 5, 8, 11. The 4th of 7 values is 3.

Median of an even-length list

Sort the values. With an even number of values there are two middle values, and the median is their average.

Why it works. With an even count, no single value sits in the middle. The point halfway between the two middle values splits the list into two halves of equal size, so that is the median.

How to spot it: an even number of values.

Example. What is the median of 14, 3, 9, 21, 7, 12, 5, 18?

  1. Sorted: 3, 5, 7, 9, 12, 14, 18, 21.
  2. There are 8 values, so the middle pair is the 4th and 5th values: 9 and 12.
  3. Median: (9 + 12) ÷ 2 = 21 ÷ 2 = 10.5.
median 10.5024681012141618202224
Four values on each side: the median is halfway between the 4th value (9) and the 5th (12)

When an unknown is one of the middle values, set their average equal to the median and solve. If x and 12 are the middle pair and the median is 10, then (x + 12) ÷ 2 = 10. Multiply both sides by 2: x + 12 = 20, so x = 8.

Trap: answering 9 or 12, only one of the two middle values.

Edge cases.

  • The median may not be in the list: 10.5 above.
  • If the two middle values are equal, the median is that value.
  • An unknown can move into the middle. Try each place it could sit in the sorted list (see the example).

GMAT-level example. A list of six numbers is 2, 5, 7, 12, 14 and x. Its median equals its mean. What are the possible values of x?

  1. The mean is (40 + x) ÷ 6, because 2 + 5 + 7 + 12 + 14 = 40.
  2. If x ≤ 5, the middle pair is 5 and 7, so the median is 6: (40 + x) ÷ 6 = 6 gives x = −4. That is ≤ 5 ✓.
  3. If 5 ≤ x ≤ 12, x is in the middle pair with 7: (x + 7) ÷ 2 = (40 + x) ÷ 6 gives 3x + 21 = 40 + x, so x = 9.5. It is between 7 and 12 ✓.
  4. If x ≥ 12, the middle pair is 7 and 12, so the median is 9.5: (40 + x) ÷ 6 = 9.5 gives x = 17. That is ≥ 12 ✓.
  5. x = −4, 9.5 or 17.
  6. Check x = 17: the list 2, 5, 7, 12, 14, 17 has median 9.5 and mean 57 ÷ 6 = 9.5 ✓.

Check yourself. What is the median of 1, 3, 3, 6, 8, 9?

Check your answer

The 3rd and 4th values are 3 and 6, so the median is (3 + 6) ÷ 2 = 4.5.

The mode

The mode is the value that appears most often. Count how many times each value appears. If an unknown value must create a particular mode, the unknown has to equal that value.

Why it works. The mode depends on counts, not on sizes. The only way to change it is to change how often values appear, which is why an unknown that must create a mode has to copy a value.

How to spot it: "most frequent", "unique mode" (only one value appears the most times).

Example. The list 4, 9, x, 6, 9, 4, 2, 11 has a unique mode of 4. What is its median?

  1. Without x, both 4 and 9 appear twice. For 4 to be the only mode, x must be 4 (then 4 appears three times).
  2. Sorted: 2, 4, 4, 4, 6, 9, 9, 11. There are 8 values.
  3. The 4th and 5th values are 4 and 6, so the median is (4 + 6) ÷ 2 = 5.
mode 4median 50123456789101112
x = 4 makes the 4s the tallest stack; the median sits between the 4th and 5th values, 4 and 6

Trap: answering 4, the mode, when the question asks for the median.

Edge cases.

  • No mode: every value appears once. Two modes: two values tie for most often.
  • A unique mode needs strictly more copies than any other value.
  • The mode can be any value, even the smallest or the largest.

GMAT-level example. The list 3, 5, 5, 8, x, y has a unique mode of 8. Which is greater, its mean or its median?

  1. 5 already appears twice, so 8 must appear at least 3 times: x = 8 and y = 8.
  2. The list is 3, 5, 5, 8, 8, 8.
  3. Median: the 3rd and 4th values are 5 and 8, so (5 + 8) ÷ 2 = 6.5.
  4. Mean: 37 ÷ 6 ≈ 6.17.
  5. The median is greater.

Check yourself. What is the least number of 7s you must add to 2, 4, 4, 7, 9, 9 to make 7 the unique mode?

Check your answer

4 and 9 each appear twice. 7 needs 3 copies, and it has 1, so add 2.

Mean vs. median

You can often compare the mean (average) and the median without much arithmetic. A value far above the rest pulls the mean up. A value far below the rest pulls the mean down. In a symmetric list (values spread the same way on both sides of the middle, such as 3, 5, 7, 9, 11), the mean equals the median.

Why it works. The mean uses the size of every value; the median uses only the middle position. Making the largest value even larger changes the total, but not the order, so only the mean moves.

How to spot it: "which is greater, the mean or the median?", or a list with one outlier.

Example. For the list 2, 3, 3, 4, 28, which is greater, the mean or the median?

  1. Median: the list is already sorted, and the 3rd of 5 values is 3.
  2. Mean: 2 + 3 + 3 + 4 + 28 = 40, and 40 ÷ 5 = 8.
  3. The mean is greater. The outlier 28 pulls it up.

Trap: assuming the mean and the median are always close.

Explore. This is the example list 2, 3, 3, 4, 28. Drag the outlier (orange) and watch: the mean follows it, the median stays at 3 until the value moves into the middle.

Mean, median and SD when values change

Sorted: 2, 3, 3, 4, 28 (5 values).

Mean = 40 ÷ 5 = 8. Median = 3. Range = 28 − 2 = 26. SD ≈ 10.02.

Move the orange value: the mean moves every time, the median moves only if the value crosses the middle, and the SD grows as the value moves away from the mean.

Add the same number to every value: the mean and median move by that number; the range and SD stay the same.

Edge cases.

  • Adding the same number to every value moves the mean and the median by that number.
  • Moving one value without crossing the middle changes the mean only.
  • Outliers on both sides can balance, leaving the mean close to the median.

GMAT-level example. A list of 9 numbers has mean 20 and median 18. The largest number is increased by 27 and the smallest is decreased by 9. What are the new mean and median?

  1. Total before: 9 × 20 = 180. Change: +27 − 9 = +18. New total: 198.
  2. New mean: 198 ÷ 9 = 22.
  3. The largest value only got larger, and the smallest only got smaller, so the sorted order of the middle values is unchanged. The 5th value is still 18.
  4. New median: 18.

Check yourself. In 10, 20, 30, 40, 50, the 50 becomes 100. Which changes: the mean, the median, or both?

Check your answer

Only the mean (from 30 to 40). The median stays 30.

Range with an unknown

The range is greatest − least. An unknown value x might be the new greatest value, the new least value, or somewhere in between. Test each case.

Why it works. The range depends only on the two extremes. An unknown changes the range only if it becomes a new greatest or a new least value.

How to spot it: "the range of the list is r; what could x be?"

Example. The list 8, 15, 4, x, 11 has a range of 14. What are the possible values of x?

  1. Without x, the least value is 4 and the greatest is 15.
  2. If x is the greatest: x − 4 = 14, so x = 18.
  3. If x is the least: 15 − x = 14, so x = 1.
  4. If x is between 4 and 15, the range is 15 − 4 = 11, not 14. So this case is impossible.
  5. x = 18 or x = 1.
18 − 4 = 1415 − 1 = 1401234567891011121314151617181920x = 1x = 18
x must be a new extreme: 14 above the least value, 4, or 14 below the greatest value, 15

Trap: finding only x = 18.

Try it. The list 5, 12, 9, x has a range of 10. What could x be?

Show the answer
  1. Without x: least 5, greatest 12.
  2. x greatest: x − 5 = 10, so x = 15.
  3. x least: 12 − x = 10, so x = 2.
  4. x in between: the range would be 12 − 5 = 7, not 10.
  5. x = 15 or x = 2.

Edge cases.

  • The unknown can fit anywhere in between when the given range already equals the gap between the known extremes (see Check yourself).
  • A range of 0 means every value is the same.
  • A range smaller than the known gap is impossible: adding a value can't shrink the range.

GMAT-level example. A = {3, 8, 12, x} and B = {5, 9, 20} have the same range. What are the possible values of x?

  1. Range of B: 20 − 5 = 15.
  2. Without x, A runs from 3 to 12, a gap of 9. So x must be a new extreme.
  3. x greatest: x − 3 = 15, so x = 18. x least: 12 − x = 15, so x = −3.
  4. x = 18 or x = −3.

Check yourself. The list 6, 2, 9, x has a range of 7. What could x be?

Check your answer

Without x the range is already 9 − 2 = 7. So any x from 2 to 9 inclusive works; anything outside makes the range larger.

Greatest or least possible value

To make one value as large as possible, make all the other values as small as the conditions allow. The mean fixes the total (mean × number of values). The median fixes the middle position. A unique mode must appear more often than any other value, so no other value may repeat as often. Whatever is left of the total goes to the value you want to make large.

Why it works. A fixed mean is a fixed budget (the total). Every unit you save on the other values can be spent on the one you want to be large, so push every other value to its limit first.

How to spot it: "greatest possible value", "least possible value", or "greatest possible range", together with a mean, a median or a mode.

Example. A list of 5 positive integers has a mean of 12, a median of 10, and exactly one mode, 4. What is the greatest possible value of the largest integer?

  1. Total: 5 × 12 = 60. In order, the 3rd value is the median, 10.
  2. The mode 4 must appear at least twice, and it is less than the median, so the 1st and 2nd values are 4 and 4.
  3. The 4th value is at least 10. It can't be 10: then 10 would appear twice, as often as 4, and 4 would not be the only mode. So the 4th value is 11.
  4. Largest value: 60 − (4 + 4 + 10 + 11) = 60 − 29 = 31.
  5. Check: 4, 4, 10, 11, 31 adds up to 60, has median 10, and 4 is the only value that appears twice ✓.
Total 6044101131
Mode 4 twice, median 10, then 11 (not 10 again): what is left of the 60, 31, goes to the largest

Trap: making the 4th value 10. That gives 32, but then 4 and 10 are both modes.

Try it. A list of 7 positive integers has a mean of 20, a median of 15, and exactly one mode, 6. What is the greatest possible value of the largest integer?

Show the answer
  1. Total: 7 × 20 = 140. The 4th value is the median, 15.
  2. Option 1: the mode 6 appears twice. The smallest value can then be 1, so use 1, 6, 6 below the median. After the median, 15 can't appear again and the next two values can't be equal, so use 16 and 17. The six values add to 1 + 6 + 6 + 15 + 16 + 17 = 61.
  3. Option 2: the mode 6 appears three times: 6, 6, 6, then 15, 15, 16 (15 may now appear twice). These add to 6 + 6 + 6 + 15 + 15 + 16 = 64.
  4. Option 1 uses less, so the largest value is 140 − 61 = 79.
  5. Check: 1, 6, 6, 15, 16, 17, 79 adds up to 140, the 4th value is 15, and only 6 appears twice ✓.

Edge cases.

  • "Positive" means at least 1; "non-negative" allows 0; "different" forces the values apart.
  • The least possible largest value is the opposite problem: make the values as equal as the rules allow.

Check yourself. Five different positive integers have a mean of 10. What is the greatest possible value of the largest?

Check your answer

Total: 50. The other four are as small as possible and different: 1 + 2 + 3 + 4 = 10. Largest: 50 − 10 = 40.

Median from a frequency table

In a frequency table, each value comes with its frequency (how many times it appears). Add the frequencies to get n, the number of values. Find the middle position or positions. Then go down the table, keeping a running total, to see which value sits in that position.

Why it works. A frequency table is a sorted list written in short form: "7 students scored 2" stands for seven 2s in a row. The running totals show which value fills each position.

How to spot it: a table of values and how many times each one occurs.

Example. On a quiz, 4 students scored 1, 7 scored 2, 5 scored 3 and 4 scored 4. What is the median score?

Score Students Positions in the sorted list
1 4 1st to 4th
2 7 5th to 11th
3 5 12th to 16th
4 4 17th to 20th
  1. n = 4 + 7 + 5 + 4 = 20, an even number, so the median is the average of the 10th and 11th scores.
  2. From the table, the 10th and 11th scores are both 2.
  3. Median: (2 + 2) ÷ 2 = 2.
median 2012345
20 scores: counting from the left, the 10th and 11th dots are both in the stack of 2s

Trap: taking the median of the four score values 1, 2, 3 and 4 (which gives 2.5) and ignoring how many students got each score.

Edge cases.

  • Odd n has one middle position, (n + 1) ÷ 2.
  • The middle pair can fall on two different values, for example the last 2 and the first 3. Then average them.
  • The mean from a table is (each value × its frequency, added up) ÷ n. The mode is the value with the highest frequency, not the frequency itself.

GMAT-level example. In a survey, 3 people gave a rating of 0, 5 gave 1, 6 gave 2 and x gave 3. The median rating is 2. What is the least possible value of x?

  1. The 2s fill positions 9 to 14 (after 3 + 5 = 8 lower ratings). The median must fall in that block.
  2. n = 14 + x. Try x = 2: n = 16, so the median is the average of the 8th and 9th ratings, 1 and 2: 1.5 ✗.
  3. Try x = 3: n = 17, so the median is the 9th rating, which is 2 ✓.
  4. The least possible value is x = 3.

Check yourself. What is the mean score in the quiz table above?

Check your answer

(1 × 4 + 2 × 7 + 3 × 5 + 4 × 4) ÷ 20 = (4 + 14 + 15 + 16) ÷ 20 = 49 ÷ 20 = 2.45.

How hard questions disguise it

For harder questions (L4–L5)

L4 versions ask what must be true when one value changes, or add an unknown that could land anywhere in the list. At L5, median and range combine with optimization (the greatest possible range given a median and a mean) and with standard deviation (which change moves the spread but not the center). Sort, mark the middle position, and test the extreme placements of any unknown.

Practice

Practice median, mode and range questions in timed sets on the median and range practice page.

Common traps

  • Not sorting first

    The median is the middle of the SORTED list. Rewrite the list in order before you pick the middle.

  • Using the wrong middle position

    With n values the median sits at position (n + 1) ÷ 2; with an even count, average the two values on either side of that position. Report the value there, not the position number.

  • Mixing up mean, median and mode

    The mean adds and divides, the median locates the middle, and the mode is the most frequent value. (Greatest + least) ÷ 2 is none of them, so read which measure the question names.

  • Answering the range, or the old range

    Range is greatest minus least, a measure of spread, not of the center. When an unknown joins the list, the question usually wants the unknown, not a range.

  • Assuming an unknown value sits in one place

    An unknown x could be the new greatest or least value, which changes the range and the median. Test each possible position and check the condition each time.

  • Stopping before isolating the unknown

    If x and 12 are the two middle values and the median is 10, then x + 12 = 20 and x = 8. Write the equation the condition gives, then finish solving it.

  • Reading a frequency table wrong

    In a frequency table the counts tell you how many times each value occurs. The mode is the value with the largest count, and the median is found by walking through the counts to the middle position.

  • Breaking a condition while shrinking the other values

    Make the other values as small as possible, but keep every condition: positive integers start at 1, the median keeps its place, and no other value may appear as often as a unique mode.

  • Moving the median with a frequency table

    For the median to reach v, the values of v or more must outnumber the rest by at least one. Count what's already there, add just enough, and check the middle position lands on v.