Guide
The five-number summary, quartiles and outlier fences, and why quartile methods disagree
The five-number summary describes a data set with five values: the smallest, the first quartile, the median, the third quartile and the largest. Together they show the centre, the spread and the symmetry of the data, and they are the numbers drawn in a box plot. This tool computes them for any list, adds the interquartile range and the outlier fences, and draws the box plot.
How it works
The numbers are sorted. The median splits them into a lower and an upper half. The first quartile is the middle of the lower half, and the third quartile is the middle of the upper half. The interquartile range, IQR, is the third quartile minus the first, and it measures the spread of the middle half of the data without being pulled by extremes. A value more than 1.5 times the IQR below the first quartile or above the third is flagged as a possible outlier, which is the rule Tukey used for box plots.
Three quartile methods
Quartiles are not defined the same way everywhere. The first option takes the median of the lower and upper halves and leaves the overall median out when the count is odd, which is how most textbooks teach it. The second keeps the median in both halves, which gives the Tukey hinges. The third interpolates at position 1 plus p times n minus 1, which is what Excel QUARTILE.INC and R type 7 do. For some lists all three agree, and for others they differ by a fraction, so the page names the method next to the result.
Edge cases
At least two numbers are needed to get a meaningful quartile. Repeated values are fine and are counted each time. The fences can fall outside the range of the data, as with a lower fence below the minimum, which simply means nothing is flagged on that side. Numbers may be separated by commas, spaces or new lines, and the box plot whiskers extend to the most extreme values that are not flagged.
A worked example
Take 12, 15, 11, 18, 21, 14, 16, 19, 13, 17 and 45. The sorted list has 11 values. The minimum is 11, the median is 16 and the maximum is 45. With the textbook method the first quartile is 13 and the third is 19, so the IQR is 6. The lower fence is 13 minus 9, which is 4, and the upper fence is 19 plus 9, which is 28. Only 45 lies beyond a fence, so it is listed as the single outlier, and the box plot draws it as a separate point.
Limits
The fences are a rule of thumb that works best for data that are roughly symmetric, and they are not a statistical test. With very few values the quartiles jump around, and different methods can disagree noticeably. The tool does not remove outliers or recompute without them, and it does not handle grouped data given as frequencies.
Related tools
- Average Calculator gives the mean and mode to go with the median.
- Standard Deviation Calculator measures spread using every value rather than the middle half.
- Percentile to Rank Calculator places one value within the distribution you just summarised.
- Linear Regression Calculator fits a line when you have pairs of values instead of a single list.
Checked against the current version of the Five-Number Summary Calculator on .

