ThisCalculator

Statistics

Box and Whisker Plot Calculator: Find the Five-Number Summary

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Box and Whisker Plot Calculator: Find the Five-Number Summary

A box and whisker plot calculator turns a list of numerical data into its five-number summary: minimum, first quartile, median, third quartile, and maximum. Enter the observations as a comma-separated list to calculate those values and the interquartile range, then use the summary to draw and interpret a box plot.

Formula

Quartiles divide ordered data into four parts. The five-number summary is minimum, first quartile (Q1), median (Q2), third quartile (Q3), and maximum. The calculator reports Q1, median, Q3, and the interquartile range (IQR); the minimum and maximum are the smallest and largest entered values.

  • Q1 is the median of the lower half of the sorted observations.
  • Q2, or the median, is the middle value, or the mean of the two middle values when the data count is even.
  • Q3 is the median of the upper half.
  • IQR = Q3 − Q1, the spread of the central half of the data.

Here, each value is a data observation; the list has no physical unit unless you assign one to all its values. This calculator uses the median-of-halves convention: for an even-sized dataset, split the sorted data into equal lower and upper halves, then take each half’s median. Quartile conventions can differ between calculators and statistical software, so matching results requires matching the method.

Worked Example

Using the default list, 2, 4, 5, 7, 8, 10, 12, 15, the values are already in ascending order. There are eight observations, so the overall median is the mean of the fourth and fifth values: (7 + 8) / 2 = 7.5.

  • Lower half: 2, 4, 5, 7. Q1 = (4 + 5) / 2 = 4.5.
  • Upper half: 8, 10, 12, 15. Q3 = (10 + 12) / 2 = 11.
  • IQR = Q3 − Q1 = 11 − 4.5 = 6.5.

The calculator therefore returns Q1 = 4.50, median = 7.50, Q3 = 11.00, and IQR = 6.50. The minimum is 2 and the maximum is 15, making the complete five-number summary 2, 4.5, 7.5, 11, 15.

How to Use the Calculator

  1. Enter each observation in the list field, separated by commas. Use numbers rather than category labels.
  2. Check that all values refer to the same measurement and unit—for example, all heights in centimeters or all waiting times in minutes.
  3. Calculate the summary, then note Q1, the median, Q3, and IQR. The minimum and maximum can be read from the original list.
  4. Round only when presenting the results. Keeping the original precision during calculation avoids unnecessary rounding differences.

The order you type values in does not change the quartiles because the data are sorted for the calculation. Repeated values are valid and should remain in the list: each occurrence counts as an observation.

How to Read a Box Plot

In a standard box plot, the left or lower edge of the box marks Q1, the line inside marks the median, and the opposite edge marks Q3. The box’s length represents the IQR. Whiskers may extend to the minimum and maximum, but many plotting conventions instead draw them only to the most extreme non-outlier observations. In that latter style, points beyond the whiskers are shown separately.

Always check the plot’s legend or method before interpreting whiskers. The five-number summary alone does not identify which whisker convention was used. Box plots are useful for comparing distributions: a longer box indicates a wider middle 50% of values, while a median line away from the box’s center can suggest asymmetry. They do not show every observation or reveal the shape of all clusters in the data.

Quartile Methods and Outliers

Quartiles are not defined by one universally used computational procedure. The median-of-halves method used here excludes the overall median from both halves when the number of observations is odd. Other methods interpolate between ordered values, which can produce different Q1 and Q3 values, especially in small datasets. If a class, report, or software package specifies a quartile method, use that method consistently.

A common screening rule flags values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR as potential outliers. These are flags, not proof that a value is erroneous or should be removed. Investigate its source and context before deciding how to handle it. Also, do not confuse the IQR with the full range: the range is maximum minus minimum and is much more affected by extreme observations.

Common Mistakes and Limitations

  • Mixing units: Combining, for example, inches and centimeters makes the summary meaningless unless converted to one unit first.
  • Leaving in labels or blank entries: The list should contain numeric observations only. Check for missing values and accidental duplicates, while keeping legitimate repeated measurements.
  • Assuming all whiskers end at the extremes: Some plots use the 1.5-IQR rule, so whisker endpoints may not equal the minimum and maximum.
  • Reading the box as a confidence interval: The box describes the middle half of observed data; it is not a confidence interval for a mean or median.
  • Relying on the plot alone: Different datasets can share the same five-number summary. A box plot does not preserve the complete list or show every feature of a distribution.

For very small datasets, quartiles can be sensitive to the chosen convention. For large or highly detailed datasets, a histogram, dot plot, or the raw data may reveal patterns hidden by the five-number summary.

Frequently Asked Questions

What five numbers make up a box and whisker plot?
The five-number summary is the minimum, Q1, median, Q3, and maximum. Some box plots use whiskers that stop at non-outlier values instead of the actual minimum and maximum.

How do I find Q1 and Q3 by hand?
Sort the observations, find the median, split the data into lower and upper halves, and find the median of each half. For an odd number of observations, this calculator’s method leaves the overall median out of both halves.

Why does my calculator show a different Q1?
It may use a different quartile convention, such as interpolation rather than the median of each half. Compare the methods, especially for a small dataset, before treating the difference as an error.

Can a box plot calculator identify outliers?
It can help apply a stated rule, such as the 1.5-IQR fences. A flagged point is only a potential outlier; the rule does not establish whether the observation is incorrect.

What does the IQR tell me?
The IQR is Q3 minus Q1 and measures the spread of the middle 50% of observations. Unlike the full range, it is not directly determined by the smallest and largest values.

Related

Formula used
list data | Data values | 2, 4, 5, 7, 8, 10, 12, 15
out q1 | First quartile | - | q1(data) | 2
out median | Median | - | median(data) | 2
out q3 | Third quartile | - | q3(data) | 2
out iqr | Interquartile range | - | q3(data) - q1(data) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.