Box Plots: Definition, Method and Examples

MathPublished

Box Plots: Drawing and Comparing Data Distributions

A box plot displays the five-number summary of a data set: minimum, lower quartile, median, upper quartile, and maximum. It makes it easy to compare typical values and spread across data sets on the same scale.


Also known as a box and whisker plot, this visual tool allows you to see how data is distributed, where it is concentrated, and how much variation exists without looking at every individual number.

What is a box plot?

A box plot definition refers to a graph that summarizes a set of data by dividing it into four sections. Each section contains approximately one-quarter of the total data points.

A box plot on a number line from 0 to 10 with labels pointing to the minimum, lower quartile, median, upper quartile, and maximum.

The central box represents the middle half of the data. Lines extending from the box, often called whiskers, reach out to the lowest and highest values in the distribution. Because of this shape, you will frequently hear this graph called a box-and-whisker diagram.

Find the five-number summary

To learn how to draw a box plot, you must first calculate the five values that make up the five-number summary plot. You must order your data from smallest to largest before finding these values.

  • Minimum: The smallest value in the data set.
  • Lower Quartile: The middle value of the lower half of the data, which separates the lowest quarter from the rest.
  • Median: The middle value of the entire ordered data set.
  • Upper Quartile: The middle value of the upper half of the data, marking the boundary for the highest quarter.
  • Maximum: The largest value in the data set.

These values divide the data into quartiles. Finding the median first makes it easier to split the remaining data exactly in half to find the lower and upper quartiles.

Seven ordered numbers from 2 to 20 with arrows identifying the minimum, lower quartile, median, upper quartile, and maximum.

Draw a scaled box plot

Drawing a box plot requires placing the five-number summary onto a continuous number line.

  1. Draw a horizontal number line that covers the range from your minimum to your maximum value.
  2. Mark short vertical lines above the scale at the minimum, lower quartile, median, upper quartile, and maximum values.
  3. Draw a rectangular box connecting the lower quartile vertical line to the upper quartile vertical line.
  4. Ensure the median line runs vertically through the inside of the box.
  5. Draw a horizontal line from the middle of the left side of the box out to the minimum mark.
  6. Draw a horizontal line from the middle of the right side of the box out to the maximum mark.


Always use an even, consistent scale so the visible spread perfectly matches the data values.

A completed box plot accurately mapped above a number line ranging from 40 to 140 with an even spacing of 10 per tick mark.

Read quartiles and spread

Once a box plot is drawn, you can easily calculate two important measures of spread.


The range in statistics represents the total spread of the data. You find it by subtracting the minimum from the maximum. While useful, the total range can be heavily influenced by extreme values on the ends of the whiskers.


The interquartile range represents the spread of the middle half of the data. You calculate it by subtracting the lower quartile from the upper quartile. This measure is much more reliable because it ignores extreme high and low values, focusing entirely on the size of the central box.

A box plot with a bracket highlighting the width of the box from the lower quartile to the upper quartile labeled as the interquartile range.

Compare two box plots

Box plots are extremely useful for comparing two different distributions on the same scale. When making a comparison, you must comment on two specific features: the typical value and the spread.


Compare the medians to determine which group has a higher average or typical value overall. The median line furthest to the right along a standard horizontal scale indicates the higher typical value.


Compare the interquartile ranges to determine which group has more consistent data. A smaller interquartile range means the middle half of the data is clustered closer together, making the results more consistent.

Two stacked box plots sharing the same scale from 0 to 100. Group A is located above Group B. Group B has a narrower box, showing greater consistency.

Worked examples


Example 1: Finding values from a box plot


Question: A box plot shows a minimum of 1212, a lower quartile of 1818, a median of 2525, and a maximum of 4040. If the interquartile range is 1414, what is the upper quartile?


Method:

  1. Identify the formula for the interquartile range.
  2. Substitute the known values into the equation.
  3. Solve for the upper quartile.

Answer: The upper quartile is 3232.


Check: Subtract the lower quartile from the answer to verify: 32−18=1432 - 18 = 14. This matches the given interquartile range.


Example 2: Constructing a five-number summary


Question: Find the five-number summary for the data set: 14,9,20,5,11,14,1814, 9, 20, 5, 11, 14, 18.


Method:

  1. Order the data from smallest to largest.
  2. Identify the minimum and maximum values.
  3. Find the median by locating the middle value.
  4. Find the lower quartile by locating the middle of the lower half.
  5. Find the upper quartile by locating the middle of the upper half.

Answer: Minimum is 55, lower quartile is 99, median is 1414, upper quartile is 1818, maximum is 2020.


Check: The ordered list is 5,9,11,14,14,18,205, 9, 11, 14, 14, 18, 20. The median 1414 correctly splits the list into a lower half of 5,9,115, 9, 11 and an upper half of 14,18,2014, 18, 20. The quartiles 99 and 1818 perfectly split those halves.


Example 3: Comparing consistency


Question: Group A has an interquartile range of 1515 kilograms. Group B has an interquartile range of 88 kilograms. Which group has more consistent weights in the middle half of their data?


Method:

  1. Recall the relationship between interquartile range and data spread.
  2. Compare the two values.
  3. Identify the smaller value as representing greater consistency.

Answer: Group B has more consistent weights.


Check: A smaller spread of 88 means the middle 5050 percent of Group B is packed into a narrower continuous range than the middle 5050 percent of Group A.

Common mistakes

Misinterpreting the width of the quartiles

Do not assume a wider section of the box plot contains more individual data points. Each of the four sections contains exactly the same number of data points. A wider section simply means the data in that quarter is spread further apart.


Forgetting to order the data

When extracting the five-number summary from a raw list, you must arrange the numbers in ascending order first. If you leave the data jumbled, your median and quartiles will be entirely incorrect.


Drawing without a linear scale

A box plot must be drawn against an evenly spaced horizontal number line. If you simply write the five summary numbers evenly spaced apart as labels without a true scale beneath them, the visual shape of the spread is destroyed.

Frequently asked questions

Does a box plot show every individual data value?

No. A box plot summarizes the data. While you can see the exact boundaries of the minimum, maximum, median, and quartiles, you cannot see the individual numbers that fall within those boundaries.


How do you connect this topic to cumulative frequency?

You can read quartiles and medians from a cumulative frequency curve and use those exact values to construct a corresponding box plot. Both graphs display the spread and position of continuous data.


How do box plots show outliers?

In advanced statistics, an individual data point that is extremely far from the main cluster is called an outlier. Some versions of a box plot mark outliers with an isolated cross or dot, stopping the whisker at the last typical data value instead.

Practice questions

Question

A box plot on a scale from 0 to 20 incremented by 4. The box plot has a minimum at 2, lower quartile at 8, median at 12, upper quartile at 16, and maximum at 20.

What is the median value shown on this box plot?

  • 88

  • 1212

  • 1616

  • 2020

Answer:

1212

Question

What percentage of the data in a data set is located continuously between the lower quartile and the upper quartile?

  • 2525 percent

  • 5050 percent

  • 7575 percent

  • 100100 percent

Answer:

5050 percent

Question

Two box plots above a scale from 0 to 18. Group A is positioned above Group B. Group A has a wider interquartile range from 6 to 16. Group B has a narrower interquartile range from 10 to 14.


Based on the box plots, which statement comparing Group A and Group B is correct?

  • Group A has a lower median than Group B.

  • Group B has a more consistent middle half of data than Group A.

  • Group B has a larger interquartile range than Group A.

  • Group A and Group B share the same maximum value.

Answer:

Group B has a more consistent middle half of data than Group A.

Question

A data set has an upper quartile of 4545 and an interquartile range of 1818. What is the lower quartile?

  • 1818

  • 2727

  • 3636

  • 6363

Answer:

2727

Question

Which list of values correctly identifies the elements of a five-number summary plot in order?

  • Minimum, Mean, Median, Mode, Maximum

  • Minimum, Lower Quartile, Mean, Upper Quartile, Maximum

  • Minimum, Lower Quartile, Median, Upper Quartile, Maximum

  • Range, Lower Quartile, Median, Upper Quartile, Interquartile Range

Answer:

Minimum, Lower Quartile, Median, Upper Quartile, Maximum