A side-by-side box plot puts one box per group on the same axis, so you can compare the centre, the spread and the unusual values of each group at a glance. SPSS draws it in three places: the Legacy Dialogs Boxplot menu, the Explore procedure, and Chart Builder. This guide shows each route, reads a worked example of four groups, and gives the APA sentence for reporting what the plot shows.
What you need
- A numeric outcome, such as a test score, a reaction time or blood pressure.
- A grouping variable with two or more categories, such as program, treatment arm or clinic.
- Data in long format: one row per participant, with the outcome in one column and the group in another.
Method 1: Graphs > Legacy Dialogs > Boxplot
- Click Graphs > Legacy Dialogs > Boxplot.
- Choose Simple and, under Data in Chart Are, Summaries for groups of cases. Click Define.
- Move the outcome into Variable and the grouping variable into Category Axis.
- Optional: move an ID variable into Label Cases by, so outliers are labelled with the ID instead of the row number.
- Click OK.
For two grouping variables, such as program by sex, choose Clustered in step 2, then put the second variable in Define Clusters by. SPSS draws a cluster of boxes for each category on the axis.
Method 2: Analyze > Descriptive Statistics > Explore
Explore draws the same plot and prints the numbers behind it.
- Click Analyze > Descriptive Statistics > Explore.
- Move the outcome into Dependent List and the grouping variable into Factor List.
- Under Display, keep Both.
- Click Plots, choose Factor levels together under Boxplots, and click Continue.
- Click OK.
The Descriptives table gives each group's median and interquartile range. Under Statistics > Percentiles Explore also prints a Percentiles table with two rows: Weighted Average and Tukey's Hinges.
Method 3: Graphs > Chart Builder
Open Graphs > Chart Builder, choose Boxplot in the Gallery, drag the simple boxplot onto the canvas, then drag the outcome to the y-axis and the group to the x-axis. Chart Builder gives more control over styling and saves the chart syntax for reuse.
What the box, whiskers and symbols mean
- The line inside the box is the group's median.
- The box edges in an SPSS box plot are Tukey's hinges, which are close to the 25th and 75th percentiles. The box length is the distance between them.
- The whiskers run to the smallest and largest values that lie within 1.5 box lengths of the box edges.
- Circles mark outliers: values more than 1.5 and up to 3 box lengths beyond a box edge.
- Asterisks mark extreme values: more than 3 box lengths beyond a box edge.
Tukey's hinges and the weighted-average percentiles usually differ by a fraction of a point. Report whichever your table states, and say which one it is.
A worked example
Test scores out of 100 were recorded for 20 students in each of four programs. Box edges are Tukey's hinges, as SPSS draws them.
| Program | n | Mdn | Lower hinge | Upper hinge | Box length | Whisker low | Whisker high |
|---|---|---|---|---|---|---|---|
| Computer Science | 20 | 75.00 | 66.50 | 85.50 | 19.00 | 59.00 | 96.00 |
| Biology | 20 | 75.00 | 66.50 | 77.50 | 11.00 | 59.00 | 86.00 |
| Psychology | 20 | 71.50 | 63.00 | 74.50 | 11.50 | 52.00 | 83.00 |
| Engineering | 20 | 81.50 | 77.50 | 91.00 | 13.50 | 64.00 | 100.00 |
The weighted-average interquartile ranges, which Explore's Percentiles table gives, are 19.50 (Computer Science), 11.50 (Biology), 12.25 (Psychology) and 13.75 (Engineering).

This figure was drawn by KyroStat, which places the box edges at interpolated 25th and 75th percentiles; they sit within half a point of the SPSS hinges in the table, and the medians, whiskers and outlier are the same.
Reading it:
- Engineering has the highest median (81.50) and Psychology the lowest (71.50). Computer Science and Biology share a median of 75.00.
- Computer Science has by far the widest box (19.00), so its middle half of scores is the most spread out. Biology's box is the narrowest (11.00).
- Biology's median sits near the top of its box (75.00 in a box from 66.50 to 77.50), so the lower half of its middle scores is more spread out than the upper half.
- Psychology has one outlier, a score of 43.00, below its lower whisker at 52.00. Its lower fence is 45.75 (63.00 − 1.5 × 11.50), and 43.00 is below it.
- No score lies more than 3 box lengths beyond a box edge, so no asterisks appear.
The APA 7 format template
When you describe groups from a box plot, report each group's median and interquartile range and refer to the figure:
"Scores were highest in [group] (Mdn = X.XX, IQR = X.XX) and lowest in [group] (Mdn = X.XX, IQR = X.XX; Figure [N]). [Group] showed the widest spread (IQR = X.XX)."
Want to see it written from data? Run this test on sample data in KyroStat: free, no file needed, and it does not use your free tests.
Worked example (weighted-average IQRs): "Scores were highest in Engineering (Mdn = 81.50, IQR = 13.75) and lowest in Psychology (Mdn = 71.50, IQR = 12.25; Figure 1). Computer Science showed the widest spread (IQR = 19.50). One Psychology score (43.00) fell more than 1.5 box lengths below the box."
If you then compare the groups, report the test in its own sentence, for example a Kruskal-Wallis test for medians across three or more groups.
Formatting the plot for a paper
- Double-click the chart to open the Chart Editor.
- Label the y-axis with the outcome and its unit ("Test score (out of 100)") and the x-axis with the group name.
- Remove the chart title; in APA style the figure number and title go above the figure in the manuscript.
- Use a plain fill, such as white or light grey, so the median line stands out in print.
- In the figure note, say what the box, whiskers and symbols show, for example "Boxes show Tukey's hinges; whiskers extend to 1.5 box lengths; circles mark outliers."
Mistakes reviewers catch
- Calling the median line a mean. The line is the median. If you report means, say so and give SDs.
- Whiskers described as minimum and maximum. They stop at the last value within 1.5 box lengths. In Psychology the minimum (43.00) is below the whisker end (52.00).
- Clustered chosen for one grouping variable. Clustered needs a second variable; for one grouping variable use Simple.
- Row numbers as outlier labels. Use Label Cases by with an ID, or readers cannot trace the outlier.
- Deleting outliers because the plot shows them. A circle is a prompt to check the value, not a reason to remove it. Report any exclusion and why.
- A figure with no note. Readers need to know what the box edges and whiskers represent.
Frequently asked questions
How do I make a box plot of one variable with no groups? In Graphs > Legacy Dialogs > Boxplot, choose Simple and Summaries of separate variables, then move the variable into Boxes Represent.
Why do Explore's quartiles differ from the box edges? Explore's Percentiles table prints two definitions. The Weighted Average row uses the position (n + 1)p; the box edges are Tukey's hinges. In the example, Computer Science's hinges are 66.50 and 85.50 while its weighted-average 25th and 75th percentiles are 66.25 and 85.75.
Do unequal group sizes matter? The plot still works, but a box from a small group is less stable. Add each group's n to the axis labels or the figure note.
Should I report the mean or the median? With a box plot, report the median and the IQR, since that is what the plot shows. If the distributions are roughly symmetric, you can report means and SDs instead, but keep the text and figure consistent.
Can I flip the plot so the boxes run horizontally? Yes. In the Chart Editor, use the Transpose chart option.
Making it in KyroStat
Upload your spreadsheet to KyroStat and ask for a box plot of the outcome by group. It draws the plot and gives each group's median and quartiles.
Related guides
- How to report descriptive statistics in APA 7: medians, IQRs, means and SDs in text and tables.
- How to report a Kruskal-Wallis test in APA 7: comparing medians across groups.
- How to interpret one-way ANOVA output in SPSS: comparing group means.
- Which statistical test should I use?: choosing the comparison after the plot.