Paste a list of numbers to find the median, the middle value once they're sorted. The calculator shows which value (or pair of values) it comes from and compares it with the mean.
Median = value at position (n + 1) ÷ 2 of the sorted data
Separate with commas, spaces or new lines. They don't need to be in order.
The median is the middle value once the data is sorted. Half the values are at or below it and half are at or above it. With an even number of values there are two middle values, and the median is halfway between them.
Its main strength is that extreme values hardly move it. A street of four ordinary houses and one mansion has a median price that still describes an ordinary house, while the mean is dragged up by the mansion. That's why incomes and house prices are usually reported as medians.
Comparing the median with the mean is a quick check on the shape of the data. A mean well above the median points to a long tail of high values; a mean well below it, to a tail of low values.
Definition as given in the NIST/SEMATECH e-Handbook of Statistical Methods. See Sources.
Arrange them from smallest to largest. Keep every repeated value; each one counts.
With 9 values that's position 5. With 10 values it's 5.5, halfway between positions 5 and 6.
The mean of $432k is higher than four of the five prices, so it describes none of the ordinary houses. The median does.
Four fixed prices ($210k, $235k, $250k, $265k) plus a fifth house that gets more and more expensive. The median doesn't move; the mean follows the outlier.
| Fifth house | Median | Mean |
|---|---|---|
| $290k | $250k | $250k |
| $500k | $250k | $292k |
| $1,200k | $250k | $432k |
| $5,000k | $250k | $1,192k |
| $50,000k | $250k | $10,192k |
There’s no single middle value, so the median is the average of the two in the middle. For 2, 4, 6, 8 it’s (4 + 6) ÷ 2 = 5.
Yes, when the count is even. The median of 2, 4, 6, 8 is 5, which isn’t one of the values. With an odd count, the median is always one of the values.
When the data is skewed or has outliers: incomes, house prices, journey times, hospital stays. Also for ranked data such as survey ratings, where the gaps between ranks aren’t equal.
Yes. It’s also called the second quartile (Q2). Every quartile method gives the same median.
No. The calculator sorts them before finding the middle.
Use MEDIAN(range). It handles even counts the same way, by averaging the middle two values.
When you only have counts for ranges (such as “12 people aged 30–40”), the median is estimated by interpolating within the class that contains the middle value. The grouped data calculator does this.
Income is right-skewed: most people earn moderate amounts and a few earn a great deal. The high earners raise the mean but barely affect the median, so the median is closer to what a typical person earns.
Related Tools