Averages

What Is the Median? Definition, Examples and Uses

What Is the Median? Definition, Examples and Uses - featured image
Quick answerThe median is the middle value of a data set when the numbers are put in order, so half the values are below it and half are above. For house prices 150, 160, 170, 180, 950 (in thousands) the median is 170, while the mean is 322, which shows why the median is preferred for skewed data.

Skip the manual work: use the Median Calculator to check any answer with full steps.

The median in numbersThe median in numbers50%of values lie belowthe median50%of values lie abovethe median1middle value if nis odd2middle valuesaveraged if n iseven

Definition

The median is the middle value of an ordered data set. It splits the data into two halves of equal size: half the values are less than or equal to the median and half are greater than or equal to it.

A quick example

For 3, 7, 8, 12, 15 the median is 8. Two values lie below it and two above.

For 3, 7, 8, 12 (an even count) the median is the mean of 7 and 8, which is 7.5.

Why the median matters

Suppose five houses on a street sell for 150, 160, 170, 180, 950 thousand. The mean price is 322 thousand, but four of the five homes cost far less than that. The median, 170 thousand, is a far better description of a typical house. A single mansion dominates the mean and has no effect on the median.

Median and the box plot

The line inside a box plot is the median. The ends of the box are the first and third quartiles, and the box shows where the middle 50% of the data lives. See how to find quartiles and the IQR.

Median vs mean in skewed data

  • Right-skewed data (a long tail of high values): the mean is above the median.
  • Left-skewed data: the mean is below the median.
  • Symmetric data: the two are about equal.

Properties of the median

  • It is always between the smallest and largest values.
  • It is not affected by how extreme the highest and lowest values are.
  • With an odd number of values it is one of the data values. With an even number it may not be.
  • It can be found for ordinal data (such as rankings) where a mean makes no sense.

To work one out, follow how to find the median or use the median calculator.

Frequently asked questions

What is the median in simple words?

It is the middle number once the numbers are lined up in order from smallest to largest.

Is the median the same as the average?

Not exactly. "Average" usually means the mean. The median is a different kind of average that is not distorted by extreme values.

Where is the median used?

In reporting incomes, house prices, ages and waiting times, and as the middle line of a box plot.

Try it yourself

Median Calculator

Free median calculator. Paste your numbers to sort them and find the middle value, with odd and even cases explained.

Keep learning

Matthew P. Wood
Writes and checks the worked examples and formulas on this site. See how we check our work.