How This Median Calculator Works
The median is the value in the middle of a data set once it is sorted: half the values lie at or below it, half at or above it. This median calculator sorts your data, highlights the middle position (or the middle pair), and averages the pair when the count is even. It also shows the mean alongside, because the comparison between the two is often the real story: when they agree, the data is balanced; when they pull apart, something in the tails is doing the pulling.
Worked Example: Ten Commute Times
Ten commute times in minutes: 12, 7, 3, 15, 9, 21, 7, 18, 5, 11. Sorted: 3, 5, 7, 7, 9, 11, 12, 15, 18, 21. The count is even (n = 10), so the median is the average of the 5th and 6th values: (9 + 11) ÷ 2 = 10 minutes. The mean is 108 ÷ 10 = 10.8 minutes — close to the median, so this data is fairly symmetric; the one 21-minute trip lifts the mean only slightly. Add a single 95-minute nightmare commute and the mean jumps to about 18.5 while the median moves only to 11: that stubbornness is exactly why medians headline income and house-price statistics. For the full centre-and-spread picture, the mean, median and mode calculator analyses a data set in one pass, and the statistics calculator adds quartiles and standard deviation.
Median, Quartiles and the Middle Half
The median is the second quartile (Q2). The first quartile is the median of the lower half of the data and the third quartile the median of the upper half; together with the median they frame the box of a box plot and define the interquartile range. Our quartiles calculator computes the full five-number summary and draws the plot. The NIST/SEMATECH e-Handbook of Statistical Methods covers percentile and quartile definitions formally.
Common Mistakes
- Forgetting to sort: the middle of the list as typed is not the median unless the list happens to be ordered already.
- Stopping at one middle value for even counts: with an even n there is no single middle — the two central values must be averaged.
- Quoting the median for tiny samples as if it were stable: with n = 3 the median is just the second value; treat it as descriptive, not decisive.