How this instrument works
The median is the value that sits exactly in the middle of a sorted data set: half the values fall at or below it, half fall at or above it. To find it by hand, sort your numbers from smallest to largest. If you have an odd count of values, the median is the single value sitting in the centre position. If you have an even count, there is no single centre value, so the median is the average of the two values on either side of the middle.
What makes the median genuinely useful is what it ignores. It only cares about position in the sorted order, not magnitude — so a single wildly large or small value shifts it little or not at all, while that same value can drag the mean substantially. That is why household income, home prices and response times are usually reported as medians: a handful of extreme values would otherwise distort the picture the mean gives.
Formally, the median is also the 50th percentile of the data, and statisticians call it Q2 — the second of the three quartiles that split a sorted data set into four equal-sized groups. It shares that percentile machinery with quartiles and the interquartile range, but it earns its own name because a single number describing 'the middle' is useful on its own, independent of any spread calculation built around it.
- Enter your numbers into Data set — separate them with commas, spaces or new lines in any order; the instrument sorts them for you.
- Read Median directly beneath the data field — no need to sort or count by hand first.
- Median alone doesn't describe how scattered your values are; pair it with Range or Standard deviation if you need spread as well.
- Enter at least two numbers. With only one value there is nothing to find the middle of, and the instrument will prompt you to add more.
Worked example — eight quiz scores, sorted
Enter 2, 4, 4, 4, 5, 5, 7, 9 into Data set — eight quiz scores, already listed in sorted order. There are n = 8 values, an even count, so the median is the average of the two values sitting in the middle of the sorted list: the fourth value (4) and the fifth value (5). Median reads 4.5.
Four of the eight scores sit at or below 4.5 and four sit at or above it — that is exactly what 'middle' means here. The mean of the same eight scores works out to 5, a touch higher, because the single 9 in the set pulls the balance point up while the median, which only tracks position, does not move for it.
Questions
What's the difference between the mean and the median?
The mean adds every value and divides by the count, so it is pulled toward extreme values. The median only looks at position after sorting, so extreme values barely move it. For the set {2,4,4,4,5,5,7,9}, the mean is 5 and the median is 4.5 — close here, but they diverge sharply once a data set has a few very large or very small values, like income or response-time data.
How do I find the median when I have an even number of values?
Sort the values, find the two that sit in the middle positions, and average them. With ten sorted values, for example, the median is the average of the fifth and sixth values. There is no single 'middle' entry when the count is even, which is why the result can land on a number, like 4.5, that never actually appears in your data.
Why is the median often reported for income or house prices instead of the mean?
Because a small number of very high incomes or very expensive homes pulls the mean far above what a typical household actually earns or pays, while the median stays anchored at the value where half of households fall above and half below. Government statistical agencies report median household income for exactly this reason — it better represents the 'typical' case.
Is the median always one of the values in my data set?
Only when the count of values is odd. With an odd count, the median is literally the middle entry after sorting, so it is one of your original numbers. With an even count, the median is the average of the two central entries, which can land between them — 4.5 in the worked example, even though no score of 4.5 was ever entered.
Is the median the same thing as the 50th percentile?
Yes. The median is the 50th percentile and is also called Q2, the second quartile — the point that splits a sorted data set into a lower half and an upper half of equal size. If you need the 25th or 75th percentile as well, this site's quartile and IQR instruments compute those using the same sorted-position logic.
How many numbers do I need to calculate a median?
At least two. With a single value there is no 'middle' to find — that one value is trivially everything, so the instrument asks for a second number before it will compute anything. Beyond two, any count works; the instrument sorts and picks (or averages) the centre automatically.