- Home
- Tools
- Math
- Statistics Calculator
- Median Calculator
Median Calculator
Paste a list of numbers to find the median, the value in the middle once the list is sorted. The sorting is done for you.
Separate the numbers with commas, spaces, semicolons or new lines. Decimals need a point: 1,5 is read as the two numbers 1 and 5.
- Median
- 6
- halfway between the two middle values
- Mean
- 6.666666667
- sum ÷ count
- Mode
- No mode
- every value appears once
- Count
- 6
- Sum
- 40
- Minimum
- 3
- Maximum
- 12
- Range
- 9
- Lower quartile (Q1)
- 4
- Upper quartile (Q3)
- 9
- Interquartile range
- 5
Variance and standard deviation
| Population (÷ n) | Sample (÷ n − 1) | |
|---|---|---|
| Variance | 9.555555556 | 11.46666667 |
| Standard deviation | 3.091206165 | 3.386246693 |
Box plot
Sorted, smallest first
3, 4, 5, 7, 9, 12
Finding the median by hand
Sort the values from small to large and take the one in the middle. For 3, 9, 4, 7, 5 the sorted list is 3, 4, 5, 7, 9 and the median is 5: two values lie below it and two above.
With an even number of values there is no single middle. Add a 12, as in the box above, and the list becomes 3, 4, 5, 7, 9, 12. The median is then halfway between the two middle values, 5 and 7, which makes it 6. Note that 6 is not in the list at all.
In a long list, count to position (n + 1) ÷ 2. With 25 values that is the 13th. With 26 values it comes out at 13.5, which means halfway between the 13th and the 14th.
Mistakes to avoid
- Not sorting first. The middle of the list as it was written down, the 4 in 3, 9, 4, 7, 5, is not the median.
- Leaving out repeated values. In 2, 2, 2, 5, 9 the median is 2. Every occurrence counts.
- Expecting it to react like the mean. Replace the 12 by 1,200 and the median is still 6, while the mean jumps from about 6.7 to about 204.7.
That last point is the median's strength. It is the reason incomes and house prices are usually summed up by their median: a few very large values do not drag it along.
The statistics calculator page explains the other results, including how the quartiles are found and how to read the box plot.