Median

Definitionnoun

What is the median in math?

The median is the middle value when data are listed in order. If there is an even number of values, the median is the average of the two middle values. Half the data lie at or below the median and half at or above it, and outliers barely move it.

In Spanish
mediana
Also called
middle value, 50th percentile, second quartile (Q2)
How to say it
MEE-dee-un
Grade level
6-8
Grade 5Grade 6Grade 7Grade 8CCSS 6.SP.A.3CCSS 6.SP.B.4CCSS 6.SP.B.5.cGEDSATACT

Median in a picture

Finding the median for odd and even countsTop: seven ordered values 1, 3, 4, 6, 7, 8, 9 with the middle value 6 highlighted, three values below and three above. Bottom: four ordered values 2, 5, 9, 12 with the two middle values 5 and 9 highlighted and the median 7 halfway between them.7 values (odd count)13467893 below3 abovemedian = 64 values (even count)25912median = (5 + 9) ÷ 2 = 7
With an odd count, one value sits exactly in the middle. With an even count, two values share the middle, so the median is their average, which may not be in the data at all.

Formal definition and notation

Order the n data values from least to greatest. The median is the value in position n + 12 of the ordered list. If n is odd, that position is a whole number and the median is that data value. If n is even, the position ends in .5, and the median is the mean of the values in positions n2 and n2 + 1. The median is a measure of center; in a box plot it is the line inside the box.

Symbol Read it as Meaning
Q2 Q two the second quartile, another name for the median
Med median a common label on calculators; spreadsheets use the function MEDIAN
n + 12 n plus one, over two the position of the median in the ordered list of n values

Key facts

  • Always put the data in order first, from least to greatest (or greatest to least).
  • Odd count: the median is one of the data values. Even count: it can be a number that is not in the data, like 7 for 2, 5, 9, 12.
  • The median resists outliers: for 3, 4, 5, 6, 100 the median is 5, but the mean is 23.6.
  • In a box plot the median is the line inside the box, and it splits the data into two halves with the same number of values.
  • For skewed data, such as incomes or home prices, the median describes a typical value better than the mean, which gets pulled toward the long tail.

Median position rule

Median position rule
position of the median = n + 12
n
the number of data values (count repeats)
position
where to look in the list after you put it in order

The rule gives a position, not the median itself. For n = 40 the position is 20.5, so the median is halfway between the 20th and 21st values.

Try it: find the middle

Interactive

Edit the numbers, drag a dot, or press Add an outlier. The green chips mark the middle value or values. Watch how far the mean moves compared with the median.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Median examples, step by step

Example 1: An odd number of values

Warm-up

Find the median of 9, 3, 6, 11, 4.

  1. Put the values in order: 3, 4, 6, 9, 11.
  2. Count them: n = 5, so the middle is position 5 + 12 = 3.
  3. The 3rd value in the ordered list is 6, with two values below it and two above.

Answer: The median is 6.

Example 2: An even number of values

Core

Eight students scored 72, 95, 88, 64, 90, 81, 77 and 85 on a quiz. Find the median score.

  1. Order the scores: 64, 72, 77, 81, 85, 88, 90, 95.
  2. There are n = 8 scores. The position 8 + 12 = 4.5 means the median is between the 4th and 5th scores.
  3. The 4th score is 81 and the 5th is 85.
  4. Average them: 81 + 852 = 1662 = 83.

Answer: The median score is 83, even though no student scored exactly 83.

Example 3: Median or mean when there is an outlier?

Test-style

Five homes on a street sold for 210, 225, 240, 255 and 1,150 thousand dollars. Find the mean and the median. Which better describes a typical price on the street?

  1. The prices are already in order. With n = 5, the median is the 3rd value: 240.
  2. Add the prices: 210 + 225 + 240 + 255 + 1,150 = 2,080.
  3. Divide by the count to get the mean: 20805 = 416.
  4. The 1,150 sale is an outlier. It pulls the mean up to 416, higher than four of the five prices.
  5. The median, 240, sits among the typical prices, so it describes them better.

Answer: Median = 240 thousand dollars and mean = 416 thousand dollars. The median is the better typical value.

Common mistakes

✗ MistakeTaking the middle of the list as it is written: for 9, 3, 6, the median is 3.
✓ InsteadOrder first: 3, 6, 9. The median is 6.

The median is the middle of the ordered data. Always put the data in order before finding the middle; the original order means nothing.

✗ MistakeWith an even count, picking one of the two middle values.
✓ InsteadAverage the two middle values: for 2, 5, 9, 12 the median is 5 + 92 = 7.

An even count has no single middle value, so the median is halfway between the two middle ones. It does not have to be in the data set.

✗ MistakeReading n + 12 as the median: for 40 values, the median is 20.5.
✓ Insteadn + 12 is a position. For 40 values, the median is the average of the 20th and 21st values.

The rule tells you where to look in the ordered list, not what the value is.

✗ MistakeWriting repeated values only once: 4, 4, 4, 9 becomes 4, 9, so the median is 6.5.
✓ InsteadKeep every value: 4, 4, 4, 9 has middle values 4 and 4, so the median is 4.

Every data value counts, even when it appears more than once.

Not to be confused with

Medianvs.Mean

The mean adds all the values and divides by how many there are; the median only finds the middle. For 1, 2, 3, 4, 100 the mean is 22 but the median is 3.

Medianvs.Mode

The mode is the value that appears most often. For 1, 1, 5, 7, 9 the mode is 1, but the median is 5.

Medianvs.Median of a triangle

In geometry, a median of a triangle is a segment from a vertex to the midpoint of the opposite side. It shares the idea of a middle, but it is a different term from the statistics median.

Quick check: 3 questions

Question 1 of 3

What is the median of 8, 2, 5, 10, 7?

Show answer and explanation

Answer: A. Order first: 2, 5, 7, 8, 10. The middle (3rd) value is 7. Choice B is the middle of the list as written, and 6.4 is the mean.

Question 2 of 3

What is the median of 3, 6, 8, 11, 14, 20?

Show answer and explanation

Answer: C. There are 6 values, so average the 3rd and 4th: 8 + 112 = 9.5. Choices A and B are each only one of the two middle values.

Question 3 of 3

A data set has 15 values in order. Which one is the median?

Show answer and explanation

Answer: B. n + 12 = 15 + 12 = 8, so the 8th value is the middle one, with 7 values below it and 7 above.

Median: frequently asked questions

What if there are two middle numbers?

That happens whenever the data set has an even number of values. Add the two middle numbers and divide by 2. For 4, 8, 10, 15 the middle values are 8 and 10, so the median is 8 + 102 = 9. The median is halfway between them, so it can be a decimal such as 9.5.

Is the median always one of the numbers in the data?

Only sometimes. With an odd number of values, the median is always the middle data value. With an even number, it is the average of the two middle values, so it is in the data only when those two are equal. For 2, 5, 9, 12 the median is 7, which is not in the list; for 4, 6, 6, 9 it is 6.

When should I use the median instead of the mean?

Use the median when the data are skewed or include outliers, such as incomes, house prices or the time people spend on a hobby. Outliers barely move it, which is why it is the safer average for skewed data. When the data are roughly symmetric with no outliers, the mean and median are close and either one works.

Practice and tools

Sources

  1. Common Core State Standards, Grade 6 Statistics and Probability (6.SP.A.3, 6.SP.B.4, 6.SP.B.5.c)
  2. Common Core State Standards, Mathematics Glossary (median)
  3. OpenStax, Introductory Statistics 2e, 2.5 Measures of the Center of the Data

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 6.SP.A.3, CCSS 6.SP.B.4, CCSS 6.SP.B.5.c

Cite this entry

Effortless Math Team. “Median.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/median/

Flashcard

TermMedianthe middle of ordered data
DefinitionThe middle value when data are in order; with two middle values, average them. For 2, 5, 9, 12 the median is (5 + 9) ÷ 2 = 7.
Study the full deck

Browse all terms in the Math Dictionary · More statistics terms · Random term