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

Statistics · Grade 6-8

Median

The median is the middle value when all data points are arranged in order from smallest to largest.

median position=n+12

Quick Answer

The median is the middle value when all data points are arranged in order from smallest to largest. Half the values sit at or below it and half at or above it. To find it, sort the data and take the middle value, or the average of the two middle values when there is an even number of them. Use the median when a few very large or very small values would drag the mean away from what is typical, as with house prices, incomes or race times.

Why This Matters

The median gives a typical value that one extreme cannot hijack. When a report says the median home price in a town is $350,000, you know half the homes cost less, even if a few mansions sold for millions. Without it, a single huge value can make a group look richer, faster or bigger than nearly everyone in it really is.

Intuitive Explanation

Seven runners finish a race in these times, in minutes: 31, 24, 28, 45, 26, 29, 27. Put them in order from fastest to slowest: 24, 26, 27, 28, 29, 31, 45. The runner in the middle position, the 4th, finished in 28 minutes. Three runners were faster and three were slower. That middle time is the median.

With an even number of values there is no single middle. Add an eighth runner at 30 minutes: 24, 26, 27, 28, 29, 30, 31, 45. Now the 4th and 5th values, 28 and 29, share the middle, and the median is halfway between them: (28+29)÷2=28.5. The position formula n+12 gives 4.5 here, which means halfway between the 4th and 5th values.

Go back to the seven runners and change the slowest time from 45 to 90 minutes, as if someone walked the course. The median does not move: the middle runner still finished in 28. The mean jumps from 30 to about 36.4. That resistance is the point of the median. But the median is not the middle of the range: the times run from 24 to 45, whose midpoint is 34.5, and nobody in the middle of the field ran anything like that.

Think of it like this. The median is the person standing in the middle of a line sorted by height, with as many people on one side as the other. Swap the tallest person for a basketball player and the middle person does not change. The picture needs one adjustment for an even-sized line, where the middle falls between two people and you take the value halfway between them.

Core idea. The median is the middle of the sorted data, with half the values on each side, so it is decided by position rather than by how large the extreme values are.


When to Use

Use the median when a question asks for the middle value or a typical value and the data include a few values far from the rest, such as incomes, house prices or one very slow finishing time. Sort first, then find the middle position. If the values are fairly balanced with no extremes and you want the even share, the mean works well; for the most common value or category, use the mode.

Tip. Ask: Do you need the value in the middle position once the data are sorted, so that half lie on each side?

How to Recognize It

Before sorting, decide what the answer must stand for: the middle of the ordered list, an even share of the total, or the most frequent value.

  1. Can the values be put in order from smallest to largest?

    Yes allows a median. Unordered categories such as eye colour have no middle, so the most common category, the Mode, is the only center there.

  2. Is there a value far from the others, like one $5 million house on a street of ordinary homes, that should not drag the summary?

    Yes favours the median, because it ignores how extreme the end values are. If the values are close and even, the Mean as Fair Share uses every value and works just as well.

  3. Do you need only the one middle value, not the edges of the lowest or highest quarter?

    Yes is the median. Cutting the sorted list at the quarter marks as well gives the Quartiles.

  4. Does the question want a typical value rather than how far apart the values are?

    Yes keeps you with a center such as the median. If it asks how spread out the values are, use a spread measure such as the Interquartile Range (IQR).

Median vs Mean as Fair Share vs Mode vs Quartiles

The three centers each sum up a list with one number, and quartiles are found by the same sorting. What separates them is what the number stands for: the middle position, an even share, the most frequent value, or a quarter mark.

Median

Meaning
The median is the middle value of a sorted list, with as many values below it as above it.
Key test
Found by position after sorting; extreme end values do not move it.
Formula
median position=n+12
Example
Sorted times of 21, 23, 24, 26 and 58 minutes have a median of 24, despite the slow 58.

Mean as Fair Share

Meaning
The mean is the even share found by adding every value and dividing by the count.
Key test
Uses every value, so a single extreme value moves it.
Formula
xˉ=∑xn
Example
The same times of 21, 23, 24, 26 and 58 minutes have a mean of 30.4, pulled up by the 58.

Mode

Meaning
The mode is whichever value appears the greatest number of times in the data.
Key test
Counts repeats; the order of the values does not matter.
Example
Shoe sizes 6, 6, 7, 8, 9 have a mode of 6 but a median of 7.

Quartiles

Meaning
Quartiles are the three values that cut a sorted list into four parts with equal counts.
Key test
Three cut points instead of one; the middle cut is the median.
Example
For 2, 4, 6, 8, 10, 12, 14, 16 the quartiles are 5, 9 and 13.

Formula & Notation

median position=n+12
For sorted data x(1)≤x(2)≤…≤x(n), the median is x~=x((n+1)/2) when n is odd, or x~=x(n/2)+x(n/2+1)2 when n is even.

How to read it: The median is denoted x~ or M. It equals the 50th percentile (P50) and the second quartile (Q2).

Worked Examples

Example 1 — Median of an odd-sized list

Easy

Find the median number of minutes Ria spent on her phone each day this week: 45, 12, 60, 30, 25, 90, 38.
Show the steps and the answer
  1. Sort the values: 12, 25, 30, 38, 45, 60, 90.

    The middle only means something once the values are in order.

  2. Find the middle position: there are 7 values, so the median is the 7+12=4th value.

    With 7 values, the 4th has 3 values before it and 3 after it.

  3. Read it off: the 4th value is 38.

    Three days were shorter than 38 minutes and three were longer.

Answer: The median is 38 minutes.

Takeaway: Sort, count, and take the value in position n+12.

Example 2 — A frequency table, not a list

Standard

A class recorded shoe sizes in a table: size 5, 2 students; size 6, 5 students; size 7, 2 students; size 8, 1 student. Find the median shoe size.
Show the steps and the answer
  1. Notice that the data are 10 students, not the 4 sizes in the table.

    The middle of the list 5, 6, 7, 8 would be 6.5, but that list gives each size one vote whatever its count.

  2. Write out the sorted data: 5, 5, 6, 6, 6, 6, 6, 7, 7, 8.

    Each size appears once for every student who wears it.

  3. Find the middle: with 10 values the median is halfway between the 5th and 6th values, which are both 6.

    An even count has two middle values, and here they happen to be equal.

  4. Compute: (6+6)÷2=6.

    Half the class wears size 6 or smaller, and half wears size 6 or larger.

Answer: The median shoe size is 6.

Takeaway: In a frequency table, each count is how many times that value appears; count through the students, not the rows.

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

Application

Five test scores are 88, 72, 95, 64, 81. Sam writes: "The middle number is 95, so the median is 95." Find the mistake and correct it.
Show the steps and the answer
  1. Spot the problem: Sam took the middle of the list in the order it was written.

    Position only means something after sorting.

  2. Sort: 64, 72, 81, 88, 95.

    Now the values run from lowest to highest.

  3. Take the 3rd of the 5 values: 81.

    Two scores are below 81 and two are above it.

  4. Sense-check: 95 is the highest score, so it cannot have half the scores above it.

    A median can never be the largest value in a list of several different values.

Answer: The median is 81.

Takeaway: Always sort before finding the middle; the order a list is written in means nothing.

Where You'll See It

  • Lining up the class by height

    Sort everyone shortest to tallest; the person standing in the exact middle has the median height, and it doesn't change even if the tallest kid grows another foot.

  • Typical home price in a neighborhood

    Realtors report the median price because one $5 million mansion among ordinary houses would inflate the mean, while the median still shows what a typical home costs.

  • Middle score on a list of game high scores

    If six friends scored 100, 120, 130, 150, 160, 900, ordering them and averaging the two middle values (130 and 150 = 140) gives the median, unbothered by the one lucky 900 run.

Common Mistakes

  1. The slip: You can read off the median from the data in the order it was given.

    Why it's tempting: The 'middle' of the written list looks like the median, but position only means something after sorting; an unsorted middle value can be anything.

    Instead: Always sort the data from smallest to largest first, then find the middle position.

  2. The slip: For an even number of values, the median is just one of the two middle numbers.

    Why it's tempting: With two middle candidates students grab whichever is handier, but the median should sit exactly between them.

    Instead: For an even count, the median is the average of the two middle values: (lower middle + upper middle) / 2.

  3. The slip: Median and mean are basically the same 'average', so you can use either.

    Why it's tempting: Both are 'centers' and often close together, so they seem interchangeable, but they react differently to extreme values.

    Instead: Median = middle position value (resistant to outliers); mean = sum/count (pulled by outliers). They can differ a lot for skewed data.


Mini Practice

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

  1. Find the median of these numbers: 7, 3, 9, 5, 11.

    Hint: Put the numbers in order first.

  2. Six test scores are 70, 85, 90, 75, 80 and 95. What is the median score?

    Hint: With an even count there are two middle values.

  3. In an ordered list of 25 values, which position holds the median? What about an ordered list of 24 values?

    Hint: Use n+12 for the position.

  4. A dot plot shows goals scored in 11 games: 1 goal in 3 games, 2 goals in 4 games, 3 goals in 2 games and 5 goals in 2 games. What is the median number of goals?

    Hint: Write all 11 values out in order and find the 6th one.

  5. Seven house prices (in thousands of dollars) are 210, 230, 250, 260, 280, 300 and 1,200. A website wants to report a typical price. Should it use the median or the mean?

    Hint: Compute both and see which one sits among most of the prices.

  6. A student finds the median of 9, 2, 14, 5, 7 by taking the number in the middle of the list as written, and gets 14. What is the correct median?

    Hint: What must you do to a list before finding its middle?

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 the median be a number that is not in the data?

Yes, when there is an even number of values. Then two values share the middle, and the median is halfway between them. For 4, 6, 9 and 11 the median is 6 plus 9, divided by 2, which is 7.5, a score nobody got. With an odd number of values the median is always one of the data values. If the two middle values are equal, as in 3, 5, 5, 8, the median is simply 5.

Does changing the largest value ever change the median?

Making the largest value even larger never does, which is why the median resists outliers. Moving a value across the middle does. In 2, 5, 8, 9, 10 the median is 8. Change the 10 to a 1 and the sorted list becomes 1, 2, 5, 8, 9, with median 5. So the median ignores how far out the end values are, but not which side of the middle they sit on.

How do I find the median from a frequency table or a dot plot?

Count your way to the middle position instead of writing every value out. Suppose 4 students own 0 pets, 7 own 1, 5 own 2 and 3 own 3. That is 19 students, so the middle is the 10th. The 0s fill positions 1 to 4 and the 1s fill positions 5 to 11, so the 10th student owns 1 pet. The median is 1, even though 2 and 3 appear too.

Is the median the same as the number halfway between the smallest and largest?

No. Halfway between the ends is called the midrange, and it uses only the two most extreme values, so it is pulled around even more than the mean. For 1, 2, 3, 4 and 20 the midrange is 1 plus 20, divided by 2, which is 10.5. The median is 3, the value with two numbers on each side. For symmetric data the two agree, but for lopsided data they can be far apart.

Learning Path

← Before

Mean as Fair Share
Median

You are here

You need Mean as Fair Share first, so you can compare two ideas of center. The median adds a center based on position in sorted data, which stays put when extreme values change. Next, Quartiles split each half again at its own median, and a Box Plot draws the median and quartiles as a picture of the whole data set.

See Also