How can I create side-by-side boxplots in SPSS?

To create side-by-side boxplots in SPSS, you will need to first open your dataset in the program. Then, go to the “Graphs” tab and select “Chart Builder.” In the “Gallery” tab, choose “Boxplot” as the chart type. Next, drag the variable you want to compare to the “Category Axis” box. Then, drag the variable you want to use as the grouping variable to the “Set color by” box. Finally, click “OK” to generate the side-by-side boxplots. You can further customize the plot by adjusting the labels, colors, and other formatting options in the “Chart Editor” window.


Side-by-side boxplots are a useful way to compare the distribution of data values in multiple groups at once.

This tutorial explains how to create the following side-by-side boxplots in SPSS:

side-by-side boxplots in SPSS

Let’s jump in!

Example: How to Create Side-by-Side Boxplots in SPSS

Suppose we have the following dataset in SPSS that contains information about points scored by basketball players on three different teams:

Suppose that we would like to create side-by-side boxplots to visualize the distribution of points scored by players on each team.

To do so, click the Graphs tab, then click Boxplot:

In the new window that appears, click the Simple icon, then click Define:

In the new window that appears, drag Points to the Variable panel, then drag Team to the Category Axis panel:

Once you click OK, the following side-by-side boxplots will be created:

side-by-side boxplots in SPSS

The x-axis displays each unique team name and the y-axis displays the points for each team.

From viewing the boxplots we can see that team C has the highest median points per player while team A has the lowest median points per player.

We can also see that team B has the largest interquartile range, which represents the difference between the 75th percentile and 25th percentile of points scored.

Additional Resources

The following tutorials explain how to perform other common tasks in SPSS:

x