Overview

The median is the middle value once data are sorted. Half the values are below it and half are above, which is why it's used for incomes and house prices, where a few huge values would skew the average.

Enter your values in any order. You also get the first and third quartiles.

Worked examples

InputsResult
Your numbers12, 16, 14, 21, 19Median: 16Q1: 14Q3: 19
Show 2 more examples
Your numbers12, 16, 14, 1000, 19Median: 16Q1: 14Q3: 19
Your numbers3.2, 1.1, 4.8, 2.5, 3.9Median: 3.2Q1: 2.5Q3: 3.9

How it works

Sort the values and take the middle one. With five values, it's the third. With an even number of values, the median would be the average of the two middle ones.

Practical tips

  • For 12, 16, 14, 21 and 19, the median is 16.
  • Changing 21 to 1,000 doesn't move the median at all, while the mean jumps from 16.4 to 212.2.
  • Q1 and Q3 are the medians of the lower and upper halves, roughly, and the gap between them is the IQR.

Frequently asked questions

When should I use the median instead of the mean?

When the data are skewed or have outliers, such as salaries, home prices or response times.

How do I find the median of an even number of values?

Average the two middle values. The median of 2, 4, 6 and 8 is 5.

Is the median the same as the 50th percentile?

Yes.