Quartiles split sorted data into four equal parts. Different textbooks and programs use different rules, so this calculator shows the three common methods together and lets you pick the one to use.
The three methods
- Median of each half (TI-84, most textbooks): split the data at the median, leaving the median out when n is odd, and take the median of each half.
- Linear interpolation (Excel QUARTILE.INC, R, Python): Q1 is at position 1 + 0.25(n − 1) in the sorted data, interpolating between neighbours.
- Exclusive (Excel QUARTILE.EXC, SPSS): Q1 is at position 0.25(n + 1).
All methods agree on the median and converge as the sample grows.