Median Formula

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

The Formula

Median position=n+12

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

Quick example

Data: 3, 7, 9, 15, 21. Median =9. Data: 3, 7, 9, 15. Median=(7+9)/2=8

Notation

x~ or Med(X) denotes the median

What this formula means

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

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.

Formal view

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

Worked examples

Example 1

easy
Find the median of {3,7,1,9,5}.
Show solution

Answer

Median=5

First step

1.
Sort the data in ascending order: {1,3,5,7,9}.

Full solution

  1. 2.
    Since n=5 (odd), the median is the middle value at position 5+12=3.
  2. 3.
    The third value is 5.
For an odd number of data points, the median is the middle value after sorting. The median is robust against outliers, unlike the mean.

Example 2

medium
Find the median of {12,4,7,19,3,15}.

Example 3

easy
In a class of 11 students, what position (rank) does the median occupy in sorted order?

Common mistakes

  • Finding the middle of the unsorted list — always sort smallest to largest before locating the middle.
  • Picking one middle value when n is even — average the two middle values instead.
  • Using the position number n+12 as the answer — that is the position of the median, not its value.

Why this formula 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.

Frequently asked questions

What is the Median formula?

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

How do you use the Median formula?

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.

What do the symbols mean in the Median formula?

x~ or Med(X) denotes the median

Why is the Median formula important in Math?

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.

What do students get wrong about Median?

The procedure for median is the easy part; the trap is finding the middle of the unsorted list. Asking "After sorting the data smallest to largest, what value sits exactly in the middle?" first is what keeps a correct-looking calculation from being attached to the wrong concept.