The median is the middle value when the data are sorted. Half of the values lie below it and half above. Because it ignores how extreme the largest and smallest values are, it is the preferred “typical value” for skewed data.
How to find the median
- Sort the values from smallest to largest.
- If n is odd, the median is the value in position (n + 1) ÷ 2.
- If n is even, the median is the average of the values in positions n ÷ 2 and n ÷ 2 + 1.
Example: for 3, 9, 4, 7 the sorted data are 3, 4, 7, 9; n = 4 is even, so the median is (4 + 7) ÷ 2 = 5.5.
Frequently asked questions
Median or mean?
Use the median when the data are skewed or contain outliers (incomes, house prices, waiting times). Use the mean when the data are roughly symmetric, because it uses all the information.
Can the median be a value that isn’t in the data?
Yes. With an even number of values, the median is halfway between the two middle values.