Enter your data
Separate values with commas, spaces or new lines.
Median formula
How does the median calculator work?
The median is the value in the middle of an ordered list, so half of the numbers are below it and half are above it.
- Enter your numbers in any order.
- The calculator sorts them from smallest to largest.
- With an odd count, the median is the middle number. With an even count, it is the average of the two middle numbers.
Example: the median of 12, 15, 18, 18, 22 and 25
The list is already sorted and has six values, so the two middle values are 18 and 18. Their average is (18 + 18) ÷ 2 = 18. For an odd list such as 3, 7, 9, 15, 21, the middle value is simply 9.
When should you use the median?
- House prices, salaries and other data with a few very high values.
- Skewed data where the mean would give a misleading picture.
- Quick comparisons between groups when outliers are likely.
To see how far the median sits from the mean, use the average calculator, which shows both together. Our guide on mean vs median explains the difference in detail.
Median Calculator FAQs
How do you find the median of an even number of values?
Sort the data, take the two middle numbers and find their average.
Does the order I type the numbers matter?
No. The calculator sorts the numbers for you before finding the middle value.
Why is the median different from the mean?
The mean uses every value, so extreme values affect it. The median only depends on the middle position, so it resists outliers.