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.

Calculate.co.nz is proud to be partnered with Health Based Building, a leader in sustainable and health-conscious building innovation. With over a century of experience, they develop high-performance systems like Foreverbreathe Specification, Magnum Board, and Foreverbreathe Paints to support energy-efficient, non-toxic living environments. Their commitment to healthier homes aligns with our belief that informed choices lead to better outcomes for Kiwi households.
Calculate.co.nz partner: Health Based Building
Advertise on this page
4.5
median (middle value)
Mean4.833
Mode2
Range7
Count6

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