Median Calculator
This calculator works out the median, the middle value of a list of numbers, along with three related measures so you can see the full picture of your data at a glance. The median matters because it is not pulled about by a few unusually high or low figures, which is why it is the standard measure reported for things like household incomes or house prices rather than the mean. To use it, type or paste your numbers into the box, separating them with commas, spaces or new lines in any combination; you do not need to sort them first, and negative numbers and decimals are both fine. As soon as you enter your figures, the calculator sorts them in ascending order and works out the median, the middle number, or the average of the two middle numbers if you have entered an even count of values. Alongside the median it also returns the mean, the simple average, the mode, the value or values that occur most often, or none if every number is unique, the range, the highest value minus the lowest, and a count of how many numbers you entered. Comparing these figures side by side is useful because a big gap between the median and the mean usually signals outliers pulling the average away from the typical value in your data.
How it works
The numbers are sorted in order. The median is the middle one, or the average of the two middle ones if there is an even count. The mean is the total divided by the count, the mode is the most frequent value, and the range is the largest minus the smallest.
Worked example
For 5, 2, 9, 4, 7, 2, sorted that is 2, 2, 4, 5, 7, 9. The two middle values are 4 and 5, so the median is 4.5. The mode is 2, the value that appears twice.
Related calculators
- Average Calculator: the mean.
- Standard Deviation Calculator: spread of the data.
- Percentage Calculator: percentages.
- Ratio Calculator: simplify ratios.
- How House Prices Are Measured NZ: the background to this calculation.
- Ascending Order Calculator: Sort any list of numbers into ascending order, smallest to largest, instantly.