# Boxplots

## What is a boxplot used for?

A boxplot (sometimes called a box-and-whisker plot) is a plot that shows the five-number summary of a dataset. The five-number summary is the minimum, first quartile, median, third quartile, and the maximum. We can use a boxplot to easily visualize a dataset in one simple plot.

## How to Make a Boxplot

To make a boxplot, we draw a box from the first to the third quartile. Then we draw a vertical line at the median. Lastly, we draw “whiskers” from the quartiles to the minimum and maximum value.

Suppose we have the following dataset that shows the height of ten plants:

To make a boxplot, we need to find the minimum, first quartile, median, third quartile, and maximum.

Step 1: Arrange the data from smallest to largest.

10, 11, 12, 12, 13, 14, 16, 19, 20, 24

Step 2: Find the median.

In this case, it’s the average of the middle two numbers:

10, 11, 12, 12, 13, 14, 16, 19, 20, 24

Median = (13 + 14) / 2 = 13.5

Step 3: Find the lower quartile (Q1) and upper quartile (Q3).

The lower quartile is the median of the numbers to the left of the median. In this case, it’s 12.

10, 11, 12, 12, 13, 14, 16, 19, 20, 24

The upper quartile is the median of the numbers to the right of the median. In this case, it’s 19.

10, 11, 12, 12, 13, 14, 16, 19, 20, 24

Step 4: Find the minimum and maximum values.

The minimum is 10 and the maximum is 24.

10, 11, 12, 12, 13, 14, 16, 19, 20, 24

Step 5: Draw the boxplot using our five number summary.

## Why Are Boxplots Useful?

Boxplots are useful because they help us visualize five important descriptive statistics of a dataset: the minimum, lower quartile, median, upper quartile, and maximum.

Boxplots also help us easily answer questions like:

What is the median height of the plants?

To answer this, we can look for the vertical line within the box that indicates the median. In this case, it’s 13.5 inches.

How tall is the tallest plant?

To answer this, we can look for the dot at the end of the right whisker that indicates the maximum. In this case, it’s 24 inches.

What percent of plants are taller than 19 inches?

To answer this, we can see that the the upper quartile (Q3) is equal to 19. Recall that the upper quartile represents the 75th percentile, which means 75% of values are equal to or less than 19. This means that 25% of values are greater than 19. So, 25% of plants are taller than 19 inches.

## Boxplot Generator

Use the free Statology boxplot generator to generate a boxplot simply by entering data values.

## How to Create a Boxplot in Excel

The video below shows how to create a boxplot using Excel 2016:

## How to Create a Boxplot in Google Sheets

The following video shows how to create a boxplot in Google Sheets:

## How to Create a Boxplot in TI-83 & TI-84 Calculators

The following video shows how to make a boxplot using a TI-83 or TI-84 calculator:

## How to Create a Boxplot in SPSS

The video below shows how to create a boxplot using SPSS:

## How to Create a Boxplot in R

The following video shows how to make a boxplot in R: