Sort a data set and the quartiles mark its quarter points. The first quartile, Q1, has a quarter of the values below it. The second quartile is the median, with half below. The third quartile, Q3, has three quarters below. Between Q1 and Q3 sits the interquartile range, or IQR, which captures the middle half of the data and ignores the extremes entirely. One widely used method, Tukey hinges, finds Q1 and Q3 as the medians of the lower and upper halves of the data. Other methods interpolate slightly differently, so small disagreements between textbooks are normal and harmless. Together with the minimum and maximum, the quartiles form the five-number summary, the shortest honest description of a distribution that statistics has.
The IQR is the length of the box in a box plot, with the median drawn as a line inside it and the quartiles as its two ends. That picture is the quickest honest summary of a data set ever devised: centre, spread of the middle half, and skew all visible at a glance. When the median line sits closer to Q1 than to Q3, the upper half is more stretched, a hint of right skew. Comparing two groups, such as test scores for two classes, two side-by-side boxes show in seconds what tables of averages hide: which group is higher, which is more consistent, and whether either has strange values floating away from the pack. A short box means a consistent group; a long box means the middle half itself is widely spread, a very different situation from having a few outliers.
Tukey also gave the IQR its most famous job: flagging outliers. Draw fences at Q1 minus 1.5 times the IQR and Q3 plus 1.5 times the IQR. Any value beyond a fence is marked an outlier, worth a look but not automatically an error. For typical data the fences sit roughly where the extreme few percent live, so flags are rare enough to investigate one by one. The rule is popular because it is self-adjusting: it judges each data set by its own middle spread, so it works for exam marks and river levels alike. Outliers it flags deserve investigation, never silent deletion, because sometimes the outlier is the discovery: the first unusual seismic reading, the patient whose response rewrites the treatment, the transaction that exposes the fraud.
The free calculators that go with this guide:
Calculate quartiles and IQR