On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Statistics & Probability · Grade 6-8

Median

The median is the middle value of an ordered data set — half the values fall below it and half above.

Median position=n+12

Quick Answer

The median is the middle value of an ordered data set — half the values fall below it and half above. Use it when you want a typical value that one extreme number cannot drag around, such as house prices, incomes or race finishing times. Sort the values first. With an odd number of values the median is the single middle one; with an even number it is the average of the two middle values, so it may not appear in the list at all.

Why This Matters

News reports give median household income rather than mean income because a few very rich households raise the mean but barely move the median. Once you can find a median you can split data into halves and quarters, which is how quartiles, the interquartile range and box plots are built. Skip the sorting step and the number you get means nothing.

Intuitive Explanation

Seven runners finish a race in 21, 22, 22, 24, 25, 27 and 40 minutes. The runner in fourth place, with three faster and three slower, finished in 24 minutes: that is the median. Now suppose the last runner took 90 minutes instead of 40. The order is the same, the fourth runner is the same, and the median is still 24. The mean, by contrast, jumps from about 25.9 to 33 minutes. The median cares about position, not about how far the end values reach.

With an even count there is no single middle runner. For 10, 12, 14, 20 the position formula gives 4+12=2.5, halfway between the 2nd and 3rd values, so the median is 12+142=13. The formula tells you where to look in the sorted list; the median is the value you find there.

What looks like a median but is not: the middle entry of an unsorted list. In 7, 2, 9 the number in the middle spot is 2, but sorted the list reads 2, 7, 9 and the median is 7. If you never put the numbers in order, you have only found the middle of the way someone happened to write them down.

Think of it like this. The median is the student standing in the middle of a height line-up. Swap the tallest student for a basketball player and the middle student does not change. With an even number of students there is no middle person, so the median sits halfway between the two in the middle.

Core idea. Sort the data and the median is the value standing in the exact middle, with half below and half above.


When to Use

Use the median when the question asks for a typical value and the data is lopsided or has an outlier: incomes, home prices, wait times, how many texts people send. Wording like middle or 'half of the values are below' also points here. If the values are close together and every one should count, the mean uses more information. For the most common answer, or for categories like favorite sport, use the mode.

Tip. Ask: After sorting the data smallest to largest, what value sits exactly in the middle?

How to Recognize It

Before choosing the median, check whether the values can be put in order and whether a few extreme ones would distort an average.

  1. Can the values be ranked from least to greatest, the way ages or prices can but eye colors cannot?

    If no, there is no middle to find, and the mode is the only summary that works for unordered categories. If yes, the median is available, and for numbers the mean is too.

  2. Would one extreme value, like a single 3-hour wait among 10-minute waits, make an average misleading?

    If yes, use the median, because making the largest value even larger does not move the middle. If the values are close together with no outliers, the mean is also fine and uses every value.

  3. Does the question want the value that splits the group in half, rather than the value that cuts off the bottom or top quarter?

    If yes, it is the median. If it wants the score that marks off the top 25% or the bottom 25%, you need the quartiles Q3 or Q1, which are the medians of the upper and lower halves.

  4. Is the question about a typical value, rather than how spread out the values are?

    If yes, the median is a good choice. If it asks how far apart the values are, such as the gap between the highest and lowest, use a spread measure like the range or the interquartile range.

Median compared with Mean, Mode, and Q2 / quartile

Mean, median, mode and the quartile Q2 all describe a center, and Q2 is the median under another name. What separates them is whether the answer depends on every value's size, on position in a sorted list, or on how often a value repeats.

Median

Meaning
Use this when you want a center that resists outliers and the data is skewed or has extreme values.
Key test
After sorting the data smallest to largest, what value sits exactly in the middle?
Formula
Median position=n+12
Example
Find the median of 4,8,15,16,23,42.

Mean

Meaning
Adds every value and divides, so extreme values pull it toward them.
Key test
Use when the data is symmetric with no outliers and you want every value to count.
Formula
∑xn
Example
Average of four close quiz scores

Mode

Meaning
Picks the most frequent value, which need not be in the middle at all.
Key test
Use when you want the most common value or the data is categorical.
Example
Most common jersey number on a team

Q2 / quartile

Meaning
Q2 is literally the median; quartiles also split the halves into Q1 and Q3.
Key test
Use quartiles when you need the 25th and 75th percentiles, not just the center.
Formula
Q2=x~
Example
Five-number summary of test scores

Formula & Notation

Median position=n+12
x~=x((n+1)/2) if n is odd; x~=x(n/2)+x(n/2+1)2 if n is even, where x(k) is the k-th order statistic

How to read it: x~ or Med(X) denotes the median

Worked Examples

Example 1 — Median of six values

Easy

Find the median of 4,8,15,16,23,42.
Show the steps and the answer
  1. Check the order: 4<8<15<16<23<42.

    The list is already sorted, so positions in it can be read directly.

  2. Find the position: n=6, so 6+12=3.5.

    A position of 3.5 means there is no single middle value; the median sits halfway between the 3rd and 4th values.

  3. Read the 3rd and 4th values: 15 and 16.

    These two split the list into a lower three (4, 8, 15) and an upper three (16, 23, 42).

  4. Average them: 15+162=15.5.

    The point halfway between the two middle values has exactly three values below it and three above.

Answer: 15.5

Takeaway: With an even count the median is the average of the two middle values, and it need not be one of the data values.

Example 2 — They want every value to count

Standard

Five close quiz scores 82,84,85,86,88 with no outliers — should you report the median?
Show the steps and the answer
  1. Find the median: the scores are sorted and the 3rd of 5 is 85.

    Two scores are below 85 and two are above.

  2. Find the mean: 82+84+85+86+885=4255=85.

    With no outlier, mean and median should land close together; here they match exactly.

  3. Look at the spread: every score is within 3 points of 85.

    No value is far enough away to pull the mean, so the median's resistance to outliers protects against nothing here.

  4. Choose the mean.

    It responds to every score: if the 88 became 89, the mean would rise to 85.2 while the median would stay at 85.

Answer: Mean 85 is the natural center here

Takeaway: When data is tight and symmetric, mean and median agree, and the mean is the usual choice because it uses every value.

Example 3 — Find the mistake: the middle of an unsorted list

Application

Nine students report how many books they read this year: 12, 3, 8, 15, 6, 9, 20, 4, 11. Sam writes: "There are 9 values, so the median is the 5th one, which is 6." Find the mistake and correct it.
Show the steps and the answer
  1. Check Sam's position: n=9, so the median is the 9+12=5th value.

    This part is right; the error is in which list Sam counted along.

  2. Look at where 6 really sits: only 3 and 4 are smaller, while six values are larger.

    A median needs equal numbers of values below and above it, and 6 has two below and six above.

  3. Sort the data: 3,4,6,8,9,11,12,15,20.

    Position only means something in sorted order.

  4. Read the 5th sorted value: 9.

    Four values (3, 4, 6, 8) are below 9 and four (11, 12, 15, 20) are above it.

Answer: The median is 9 books.

Takeaway: Sort first, then count to the middle position; the middle of an unsorted list is just where a number happened to be written.

Where You'll See It

  • Median home price in a town

    In a month with 100 home sales averaging $300k, one $9 million mansion sold in place of an ordinary house raises the mean to $387k, up $87k. The median can move at most one place in the sorted list, so it stays near $300k. That is why housing reports quote the median price.

  • How much sleep your class gets

    Ask 21 classmates how many hours they slept and sort the answers. The 11th answer is the median: 10 classmates slept no more than that and 10 slept no less. One friend who slept 14 hours after a sleepover does not change it.

Common Mistakes

  1. The slip: Finding the middle of the unsorted list

    Instead: always sort smallest to largest before locating the middle.

  2. The slip: Picking one middle value when n is even

    Instead: average the two middle values instead.

  3. The slip: Using the position number n+12 as the answer

    Instead: that is the position of the median, not its value.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Find the median of 13,7,21,4,9.

    Hint: Put the numbers in order from smallest to largest first.

  2. Find the median of 30,12,25,18,40,22.

    Hint: With an even number of values, two numbers share the middle.

  3. Nine students read these numbers of books over the summer: 3,0,5,2,8,2,4,1,6. What is the median?

    Hint: Sort the list, then find position n+12.

  4. Eight plants are 14,22,9,17,30,11,25,19 cm tall. The 30 cm plant is replaced by one that is 60 cm tall. Find the median before and after.

    Hint: Check whether the largest value is one of the two middle values.

  5. Six students finish a puzzle in 4,5,5,6,7 and 31 minutes; one got stuck. To describe a typical time, should you use the mean or the median?

    Hint: Find both centers and ask which one is closer to most of the times.

  6. Sam finds the median of 8,3,10,1,6 by taking the middle number of the list as written and says it is 10. What went wrong?

    Hint: The median is the middle of a list in a particular order.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can more than half of the values be equal to the median?

Yes. In 4, 4, 4, 4, 9 the median is 4, and four of the five values equal it; one value is above and none is below. The rule half above and half below is really at least half at or below, and at least half at or above. Ties are common in small data sets such as shoe sizes or quiz scores, so do not expect a clean split around the median.

Can the mean and the median be the same number?

Yes, whenever the data is balanced around its middle. For 2, 4, 6, 8 and 10, both are 6. Comparing the two also tells you something about shape: when the mean is well above the median, a few large values are stretching the data to the right, as with incomes. When the mean is well below the median, a few small values are pulling it the other way.

Does the median work for answers like letter grades?

Yes, as long as the answers have a natural order. Letter grades, T-shirt sizes and survey answers like disagree, neutral, agree can be sorted even though they cannot be added. For the grades C, B, B, A, A, the middle grade is B, so the median is B. There is no mean of letters, which makes the median the most useful center for ordered categories like these.

If I remove the highest and the lowest value, does the median change?

No. Removing one value from each end leaves the same value in the middle: 2, 5, 7, 9, 40 has median 7, and so does 5, 7, 9. Sports such as diving and figure skating use this idea, dropping the highest and lowest judges' scores so that one unusual judge cannot sway the result. The remaining scores are then added up, so the result still uses most of the judges' opinions.

Learning Path

← Before

No prerequisites
Median

You are here

Next →

MeanQuartiles
All you need first is to put numbers in order and to average two numbers. The median adds a center that resists outliers. Next, Mean shows how a center that uses every value behaves differently on the same data, and Quartiles repeat the median idea on each half of the sorted list to cut the data into four parts.

See Also