Five Number Summary Calculator

Median (five-number summary)10.00
Minimum3
First quartile Q16.50
Third quartile Q313.25
Maximum21
Interquartile range (IQR)6.75
How this was calculated
  1. Sorted data: 3, 5, 7, 8, 12, 13, 14, 21 — the five numbers always come from the ordered data, never from the raw entry order.
  2. Minimum = 3 and maximum = 21 — the two extremes that anchor the summary.
  3. Q1 = 6.50, the median = 10.00, and Q3 = 13.25, using linear interpolation between the closest ranks (the type-7 percentile rule spreadsheets use).
  4. The five-number summary is 3, 6.50, 10.00, 13.25, 21 — minimum, first quartile, median, third quartile, maximum.
  5. IQR = Q3 - Q1 = 13.25 - 6.50 = 6.75: the middle half of the data lives inside a band 6.75 wide, which is exactly the box drawn in a box plot.

The five-number summary is minimum, first quartile (Q1), median, third quartile (Q3) and maximum — the complete skeleton of a box plot. This five number summary calculator takes your data set and returns all five values along with the interquartile range IQR = Q3 - Q1, which covers the middle half of the data and is resistant to outliers, unlike the full range. Outliers are conventionally flagged beyond Q1 - 1.5xIQR and Q3 + 1.5xIQR — the whisker rule drawn on every box plot. For example, the data 3, 5, 7, 8, 12, 13, 14, 21 summarize to 3, 6.50, 10.00, 13.25, 21 with an IQR of 6.75.

This calculator uses the type-7 percentile rule (linear interpolation between closest ranks), the default in spreadsheets and most statistics software. Quartile definitions differ between textbooks (Tukey hinges, Moore-McCabe, type-7) — small data sets can give different Q1/Q3 under each, which is normal, not an error. This page shows the formula, step-by-step workings, worked examples and sources.

Worked examples

Eight test scores

Primary result: 10.00 — Median 10.00 with quartiles 6.50 and 13.25 — an IQR of 6.75 around the middle half. (8 values · 3 · 7 · 8 · 5 · 12 · 14 · 21 · 13)

Median (five-number summary)10.00
Minimum3
First quartile Q16.50
Third quartile Q313.25
Maximum21
Interquartile range (IQR)6.75

Five measurements

Primary result: 15.00 — Median 15.00, IQR 8.00: a wider middle half than the first example. (5 values · 4 · 8 · 15 · 16 · 23 · 0 · 0 · 0)

Median (five-number summary)15.00
Minimum4
First quartile Q18.00
Third quartile Q316.00
Maximum23
Interquartile range (IQR)8.00

Six values, wide spread

Primary result: 16.00 — Median 16.00 with the data running from 10 to 25. (6 values · 10 · 12 · 14 · 18 · 20 · 25 · 0 · 0)

Median (five-number summary)16.00
Minimum10
First quartile Q112.50
Third quartile Q319.50
Maximum25
Interquartile range (IQR)7.00

How the five numbers are calculated

The five-number summary is minimum, first quartile (Q1), median, third quartile (Q3) and maximum — the complete skeleton of a box plot. Before calculating any of these values, sort your data from smallest to largest. With ordered data in hand, the minimum and maximum are straightforward: they are the first and last values in your sorted list. The median, Q1, and Q3 require a bit more work, and this five number summary calculator uses the type-7 percentile rule (linear interpolation between closest ranks), the default in spreadsheets and most statistics software.

Walk through the worked example using the data 3, 5, 7, 8, 12, 13, 14, 21. The data is already sorted, so the minimum is 3 and the maximum is 21. For the median, the type-7 rank is calculated as (n − 1) × p, where n is the count of values and p is the desired percentile expressed as a decimal. With 8 values and p = 0.50, the rank is (8 − 1) × 0.50 = 3.5. This falls between the 3rd value (7) and the 4th value (8), so linear interpolation gives 7 + 0.5 × (8 − 7) = 7.50. However, the median of an even-count set is the average of the two middle values, which here is (8 + 12) / 2 = 10.00.

For Q1, use p = 0.25. The rank is (8 − 1) × 0.25 = 1.75, which falls between the 1st value (3) and the 2nd value (5). Interpolation gives 3 + 0.75 × (5 − 3) = 3 + 1.50 = 6.50. For Q3, use p = 0.75. The rank is (8 − 1) × 0.75 = 5.25, which falls between the 5th value (12) and the 6th value (13). Interpolation gives 12 + 0.25 × (13 − 12) = 12 + 0.25 = 13.25. The full summary is 3, 6.50, 10.00, 13.25, 21.

The interquartile range IQR = Q3 − Q1 covers the middle half of the data and is resistant to outliers, unlike the full range. Here, IQR = 13.25 − 6.50 = 6.75. Outliers are conventionally flagged beyond Q1 − 1.5 × IQR and Q3 + 1.5 × IQR — the whisker rule drawn on every box plot. Note that quartile definitions differ between textbooks (Tukey hinges, Moore-McCabe, type-7) — small data sets can give different Q1/Q3 under each, which is normal, not an error.

The quartile definition problem

If you have ever compared quartile results from two different calculators or textbooks and gotten different answers, you are not losing your mind. The quartile definition problem is a genuine and long-standing split in how statistics packages handle the middle values of a data set. The five-number summary itself is never in dispute: it is the minimum, first quartile (Q1), median, third quartile (Q3), and maximum — the complete skeleton of a box plot. The disagreement comes down to how Q1 and Q3 are computed when the data does not split cleanly into equal quarters.

Several competing rules exist. Tukey hinges, the Moore-McCabe method, and the type-7 percentile rule (linear interpolation between closest ranks) are the most common. For large data sets, all of these rules tend to converge and produce nearly identical quartiles, so the choice barely matters. For small data sets, however, they can return noticeably different Q1 and Q3 values. This is normal and is not an error in your calculation. It is simply a consequence of different but defensible choices about how to interpolate between data points when the ranks do not land on whole numbers.

This five number summary calculator uses the type-7 percentile rule because it is the default in spreadsheets and most statistics software. If you cross-check your results in a common spreadsheet program, the quartiles should match. To see how the pieces fit together, take the data set 3, 5, 7, 8, 12, 13, 14, 21. Under the type-7 rule the summary is 3, 6.50, 10.00, 13.25, 21. The interquartile range IQR = Q3 - Q1 covers the middle half of the data and is resistant to outliers, unlike the full range. Here the IQR is 6.75, a stable measure of spread that stays steady even if the maximum value swings dramatically.

Once you have Q1, Q3, and the IQR, the standard outlier screen follows directly. Outliers are conventionally flagged beyond Q1 - 1.5xIQR and Q3 + 1.5xIQR — the whisker rule drawn on every box plot. Because the IQR ignores the tails of the distribution, a single extreme value will not distort the fences. The key point to remember is that the type-7 rule, Tukey hinges, and Moore-McCabe will usually flag the same outliers and draw the same median line; they only quibble over the exact quartile positions in small samples. When that happens, pick the rule your field or software expects and report which one you used.

Five numbers vs mean and standard deviation

Mean and standard deviation are the classic pair for describing a distribution, but they assume the data sit in a roughly symmetric, bell-shaped pattern. The five-number summary — minimum, first quartile (Q1), median, third quartile (Q3) and maximum — takes a different approach. It is the complete skeleton of a box plot, and a reliable five number summary calculator will give you this skeleton directly. Where the mean and standard deviation summarize the center and spread through every observation, the five-number summary traces the shape of the data from end to end.

The five-number summary is the better choice when the data are skewed or contain outliers. Because the mean is pulled toward extreme values, a single very large or very small observation can shift it dramatically, and the standard deviation will balloon in response. The median and quartiles resist that pull. The interquartile range IQR = Q3 - Q1 covers the middle half of the data and is resistant to outliers, unlike the full range. Outliers are conventionally flagged beyond Q1 - 1.5xIQR and Q3 + 1.5xIQR — the whisker rule drawn on every box plot — so the five-number summary not only describes the bulk of the data but also sets the boundary for flagging values that fall outside it.

Ordinal scales are another case where the robust summary wins. Mean and standard deviation treat the spacing between adjacent categories as equal, which is not guaranteed when the categories are ordered but not measured on a numeric scale. The five-number summary relies on rank alone, so it remains meaningful for ordinal data where means may not be. In skewed distributions, the median also communicates the typical value more honestly than the mean: if most values cluster low with a long tail to the right, the mean will sit above the bulk of the observations, while the median stays at the center of the ranked data.

Each summary hides something, and it helps to know what. The mean and standard deviation hide shape: two distributions with identical means and standard deviations can be symmetric, skewed, or bimodal. The five-number summary hides the frequency of values within each quarter: it tells you where the boundaries fall, but not how many points sit near the median versus near the quartiles. For a full picture, the two summaries are complementary rather than competing. This calculator uses the type-7 percentile rule (linear interpolation between closest ranks), the default in spreadsheets and most statistics software, so the quartiles it returns will match what most users see in their own tools.

One practical note: quartile definitions differ between textbooks (Tukey hinges, Moore-McCabe, type-7) — small data sets can give different Q1 and Q3 under each, which is normal, not an error. The worked example 3, 5, 7, 8, 12, 13, 14, 21 summarizes to 3, 6.50, 10.00, 13.25, 21 with an IQR of 6.75 under type-7. If a colleague's software gives slightly different quartiles on the same data, the difference is likely definitional rather than a mistake.

From summary to box plot

The five-number summary is minimum, first quartile (Q1), median, third quartile (Q3) and maximum — the complete skeleton of a box plot. When you feed those five values into a graph, the box itself stretches from Q1 to Q3, enclosing the interquartile range IQR = Q3 - Q1. The interquartile range covers the middle half of the data and is resistant to outliers, unlike the full range. A line inside the box marks the median, showing where the center of the distribution falls. Whiskers extend from each end of the box to the most extreme data points that are not classified as outliers, giving you a quick visual sense of the spread on both sides.

Outliers are conventionally flagged beyond Q1 - 1.5xIQR and Q3 + 1.5xIQR — the whisker rule drawn on every box plot. Any data point falling outside those fences is plotted as an individual dot rather than connected to a whisker. To see how this works in practice, take the data 3, 5, 7, 8, 12, 13, 14, 21. These values summarize to 3, 6.50, 10.00, 13.25, 21 with an IQR of 6.75. The lower fence sits at 6.50 - 1.5(6.75) = -3.625 and the upper fence at 13.25 + 1.5(6.75) = 23.375. Since every value in this example falls within those fences, the whiskers reach all the way to the minimum of 3 and the maximum of 21, and no outlier dots appear.

When you read published box plots critically, start by checking what the whiskers represent. Some authors draw whiskers to the full minimum and maximum, while others stop at the 1.5xIQR fences and plot outliers separately. Knowing which convention a chart uses prevents misreading the spread. Also pay attention to whether the box looks symmetric around the median or skewed to one side. A long whisker on one end or a cluster of outlier dots signals that the data stretches unevenly, which often matters more than the exact numeric values.

One subtlety worth noting: quartile definitions differ between textbooks (Tukey hinges, Moore-McCabe, type-7) — small data sets can give different Q1/Q3 under each, which is normal, not an error. This calculator uses the type-7 percentile rule (linear interpolation between closest ranks), the default in spreadsheets and most statistics software. So if a published box plot reports slightly different quartile values than your five number summary calculator produces for the same data, the gap likely comes from the percentile method rather than a mistake in either source.

FAQs

What is a five-number summary?

The minimum, first quartile, median, third quartile and maximum of a data set — five values that capture its center, spread and extremes. Together, they give a quick snapshot of how the data is distributed without requiring you to see every individual value.

How are Q1 and Q3 calculated here?

By linear interpolation between closest ranks (the type-7 rule): the p-th percentile sits at rank p x (n - 1) of the sorted data, interpolated when the rank falls between values. This is the default method used in many statistical software packages, including R.

What is the IQR?

Q3 minus Q1 — the width of the middle 50% of the data, and the standard outlier yardstick at 1.5xIQR beyond the quartiles. Values falling outside that range are typically flagged as potential outliers in exploratory data analysis.

Why sort the data first?

Every element of the summary is a rank statistic; unsorted input gives meaningless quartiles. This page sorts automatically. Sorting ensures the minimum and maximum are correctly identified and that quartile positions correspond to the actual distribution of values.

Can different calculators give different quartiles?

Yes — at least nine percentile definitions are in use. For large data sets they converge; for small ones, state your method, as this page does. Always check which rule a calculator applies before comparing results across tools or reporting quartiles in published work.

What is the five-number summary used for?

Drawing box plots and giving a robust, outlier-resistant description of a distribution in reports and exploratory analysis. Because it relies on medians and quartiles rather than means, it is less affected by extreme values and works well for skewed data.

Sources

Related calculators

Interquartile Range (IQR) Calculator
Quartiles, IQR and Tukey outlier fences for a small data set: Q1, median and Q3 by linear interpolation, with values outside the fences flagged.
Standard Deviation Calculator
Mean, sample and population standard deviation and variance for up to eight numbers — with the n versus n−1 difference explained.
Mean Median Mode Calculator
Mean, median, mode, range and sum for up to ten numbers — with the sorted list and the working shown, so the three 'averages' finally make sense.
Percentile Calculator
The percentile rank of a score in a normally distributed group — with the z-score and the share of the group scoring above you.