← MATH 380 MathScape 0 MATH380

Stemplots (Stem-and-Leaf Plots)

13 min read

Jump to a section

FACULTY REFERENCE

Textbook: Moore, McCabe, and Craig, Introduction to the Practice of Statistics (IPS), 9th edition. Location: Chapter 1 (Looking at Data: Distributions), Section 1.2 (Displaying Distributions with Graphs), subsection on quantitative variables (stemplots). Pages: Page numbers pending faculty verification.

A first picture of a wrong turn here is common and shows something worth understanding. There is no rush. Building a stemplot by hand is one of the calmest ways to see what a batch of numbers is doing.

Before You Start: Prerequisite Check

πŸ“‹ Can you do these? (Click to reveal self-test)

Test yourself on these prerequisite skills:

  1. Variable type: Is the number of text messages a person sent yesterday a quantitative or a categorical variable?

    Check

    Quantitative. It is a count that can be added and averaged, and a stemplot is built for quantitative variables.

  2. Distribution: In plain words, what does the distribution of a variable tell you?

    Check

    It tells you which values the variable takes and how often each value (or range of values) occurs.

  3. Place value: In the number 47, which digit is the tens digit and which is the ones digit?

    Check

    The tens digit is 4 and the ones digit is 7.

If you struggled:


Try This First

Here are the ages, in years, of 12 people at a small family reunion:

$$31,\ 24,\ 38,\ 22,\ 45,\ 33,\ 27,\ 41,\ 36,\ 29,\ 34,\ 48$$

Before reading any further, try this with pencil and paper. Sort the ages into four groups by their tens digit: the twenties, the thirties, the forties, and so on. Write the leftover ones digit next to each group.

Notice what you built (click after you try)

You probably wrote something close to this:

2 | 4 2 7 9
3 | 1 8 3 6 4
4 | 5 1 8

You just made a stemplot. The tens digits on the left are the stems, the ones digits on the right are the leaves, and the rows already show you that the thirties are the most crowded group. You read the shape of the whole batch without computing anything. That is the point of the display.

What a Stemplot Is Doing

A stemplot answers a plain question about a batch of numbers: where do the values pile up, and how spread out are they?

Each observation is split into two parts. The leading digits become a label for a row, and the final digit is dropped into that row. As you add more numbers, each row grows sideways. A long row means many values landed in that range. A short row means few did. The overall outline of the rows is the shape of the distribution.

A stemplot keeps every original data value, so you can still read the exact numbers back out of it. A histogram (which comes later) groups values into bars and loses the individual numbers. For small batches of data, the stemplot gives you the shape and the raw numbers at the same time.

Prerequisite Map

Prerequisite Hub

Builds on:

Skill Why it comes first
categorical-vs-quantitative-variables A stemplot displays a quantitative variable, so you confirm the variable is quantitative before drawing one.
distribution-of-a-variable A stemplot is a picture of a distribution, so the idea of a distribution comes first.
reading-a-graph-and-its-axes Reading values off a display supports interpreting a stemplot.

Unlocks:

Skill What it adds
describing-distribution-shape-center-spread Once the stemplot is drawn, you read off the shape, the center, and the spread of the data.

Cross-course prerequisites: none.

Quick Reference

Property Value
Chapter.Section 1.2
Course MATH380
Difficulty Introductory
Time ~20 minutes

Stemplot at a Glance

Part of the number Name Where it goes
All digits except the last Stem A vertical column, in increasing order
The final digit Leaf To the right of its stem

The Official Definition

Stemplot (stem-and-leaf plot):

A stemplot displays the distribution of a quantitative variable by separating each observation into a stem, consisting of all digits except the final one, and a leaf, the final digit. The stems are written in a vertical column in increasing order, and each leaf is written to the right of its stem. A stemplot keeps the actual data values while showing the shape of the distribution.

Source: Moore, McCabe, Craig, IPS 9th edition, Section 1.2 (Displaying Distributions with Graphs); corroborated by OpenStax Introductory Statistics 2e, 2.1 Stem-and-Leaf Graphs (Stemplots) (openstax.org).

There is no theorem to prove here. A stemplot is a construction procedure plus a reading procedure, so the work of this skill is doing both correctly and reading the result honestly.

How to Build a Stemplot, Step by Step

Step 1: Choose the stems. For two-digit numbers, the stem is the tens digit and the leaf is the ones digit. Write the stems in a vertical column from smallest to largest, including any stem that has no leaves so that gaps in the data stay visible.

Step 2: Write each leaf. For every observation, find its stem row and write the final digit to the right.

Step 3: Order the leaves. Within each row, rewrite the leaves from smallest to largest. This is the ordered stemplot, and it makes the count in each row easy to read.

Step 4: Add a key. State what one stem-leaf pair means, for example β€œ$3 \mid 6$ means 36,” so a reader knows the units.

Step 5: Read the shape. Look at the outline of the rows: where the data pile up (the center), how far they reach (the spread), and whether one tail is longer than the other.

A Worked Example

The following are the numbers of pages in 15 short stories submitted to a class anthology:

$$12,\ 7,\ 23,\ 18,\ 9,\ 21,\ 14,\ 6,\ 25,\ 19,\ 11,\ 8,\ 27,\ 16,\ 22$$

Predict first. Before building anything, predict the shape. The values run from a single page to the high twenties, and several land in the teens, so you might predict a single pile somewhere in the teens with shorter tails on each side. Hold that prediction.

Step 1: stems. The smallest value is 6 and the largest is 27, so the stems are 0, 1, and 2 (using the tens digit; a one-digit number like 6 has a stem of 0).

Step 2: leaves, in the order the data appear.

0 | 7 9 6 8
1 | 2 8 4 9 1 6
2 | 3 1 5 7 2

Step 3: order the leaves within each row.

0 | 6 7 8 9
1 | 1 2 4 6 8 9
2 | 1 2 3 5 7

Key: 1 | 4 means 14 pages

Step 4: read the shape. The middle row (the teens) holds 6 of the 15 values, the most of any row. The rows on either side are shorter. The data run from 6 to 27 with no gaps.

Compare with your prediction. The single pile landed in the teens, as predicted, and the tails on each side are shorter. The prediction matched the picture. If your prediction had been a pile in the twenties, the stemplot would have corrected you, which is exactly what a display is for.

Splitting Stems

Sometimes one stem holds so many leaves that the shape is hard to read. Splitting a stem into two rows can help: one row for leaves 0 through 4 and one row for leaves 5 through 9.

Consider these 14 quiz scores:

$$50,\ 51,\ 53,\ 55,\ 56,\ 58,\ 59,\ 60,\ 62,\ 63,\ 67,\ 68,\ 70,\ 72$$

With single stems, almost everything crowds into the 5 row:

5 | 0 1 3 5 6 8 9
6 | 0 2 3 7 8
7 | 0 2

Key: 6 | 2 means 62

Splitting each stem into a low half (leaves 0 to 4) and a high half (leaves 5 to 9) spreads the same data over more rows:

5 | 0 1 3
5 | 5 6 8 9
6 | 0 2 3
6 | 7 8
7 | 0 2

Key: 6 | 2 means 62

The split version shows more detail in the shape without changing a single data value. Both displays are correct. One way to see the data is the compact three-row version; another way is the spread-out five-row version, and which one you prefer depends on how much detail the question needs.

Back-to-Back Stemplots

To compare two groups on the same variable, a back-to-back stemplot shares one column of stems. One group’s leaves grow to the left and the other group’s leaves grow to the right. Read the left leaves from the stem outward, so the digit nearest the stem is the smallest.

Here are resting heart rates (beats per minute) for two small groups:

$$\text{Group A}:\ 62,\ 65,\ 68,\ 71,\ 74,\ 75,\ 79$$ $$\text{Group B}:\ 58,\ 60,\ 61,\ 67,\ 72,\ 73$$

Group A          Group B
              | 5 | 8
        8 5 2 | 6 | 0 1 7
      9 5 4 1 | 7 | 2 3

Key: 2 | 6 (left) means 62 for Group A
     6 | 0 means 60 for Group B

The stem 5 row carries Group B’s single value 58 on the right and no leaf on the left, since Group A has nothing in the fifties. Group A’s values sit a little higher overall, and Group B reaches down into the high fifties. The shared stems make the comparison direct.

Common Misconceptions

Common misconception

a stemplot is a literal picture of the things being measured. A row that is long does not mean the objects are large. It means many observations fell into that range. In the page-count example, the longest row is the teens because more stories had between 10 and 19 pages, not because those stories were physically bigger. The length of a row reports a count, not a size.

Common misconception

the stem is the first digit you happen to write. The stem is all digits except the final one, and the leaf is only the final digit. For the value 27, the stem is 2 and the leaf is 7. A reader who puts 2 and 7 on different stems, or who treats 27 as stem 27 with no leaf, has split the number wrong. Each observation contributes exactly one leaf to exactly one stem.

Common misconception

leaves can be left in any order. Within a row, the leaves are written in increasing order in a finished stemplot. Unordered leaves still contain the data, but the ordered version is what lets you count quickly and read the center. Ordering the leaves is part of finishing the display, not an optional extra.

Practice Problems

Level 1 Split One Number

Using the tens digit as the stem, write the stem and the leaf for the value 73.

Thought Process

The stem is all digits except the final one. The leaf is the final digit. For a two-digit number, the tens digit is the stem and the ones digit is the leaf.

Show Answer

Stem = 7, leaf = 3. Written in stemplot form, this is $7 \mid 3$, which means 73.

Level 2 Build a Small Stemplot

Build an ordered stemplot for these 10 daily high temperatures (degrees Fahrenheit), and include a key:

$$58,\ 61,\ 64,\ 59,\ 72,\ 65,\ 60,\ 68,\ 71,\ 63$$

Thought Process

The smallest value is 58 and the largest is 72, so the stems are 5, 6, and 7. Place each ones digit into its row, then order the leaves within each row from smallest to largest.

Show Answer
5 | 8 9
6 | 0 1 3 4 5 8
7 | 1 2

Key: 6 | 4 means 64 degrees

The data pile up in the sixties, with shorter rows on each side.

Level 3 Read the Shape and Find the Largest Value

A stemplot of the number of books read by 12 students in a year is shown. What is the largest number of books any student read, and which row holds the most students?

0 | 3 5 8
1 | 1 2 2 4 7
2 | 0 6
3 | 1
4 | 5

Key: 2 | 6 means 26 books
Thought Process

The largest value reads off the bottom nonempty row: the stem is 4 and its only leaf is 5. To find the most crowded row, count the leaves in each row.

Show Answer

The largest value is $4 \mid 5$, which is 45 books.

Leaf counts by row: the 0 row has 3, the 1 row has 5, the 2 row has 2, the 3 row has 1, and the 4 row has 1. The 1 row (the teens) holds the most students, with 5 of the 12 values.

Level 4 Split the Stems

The single-stem display below crowds most of the data into two rows. Redraw it as a split-stem stemplot (a low half with leaves 0 to 4 and a high half with leaves 5 to 9 for each stem).

3 | 0 1 3 4 5 6 8 9
4 | 0 2 2 5 7 8

Key: 3 | 4 means 34
Thought Process

Each stem becomes two rows. The first row for a stem takes leaves 0 through 4, and the second takes leaves 5 through 9. No data value changes; only the grouping into rows changes.

Show Answer
3 | 0 1 3 4
3 | 5 6 8 9
4 | 0 2 2
4 | 5 7 8

Key: 3 | 4 means 34

The split version spreads the same 14 values over four rows, which makes the shape easier to read while preserving every original value.

Level 5 Compare Two Groups

Build a back-to-back stemplot to compare commute times (minutes) for two coworkers over one work week, and state which person tends to have longer commutes.

$$\text{Person 1}:\ 18,\ 22,\ 25,\ 31,\ 34$$ $$\text{Person 2}:\ 12,\ 15,\ 24,\ 28,\ 33$$

Thought Process

Use stems 1, 2, and 3. Person 1’s leaves grow to the left of the stems, with the digit nearest the stem being the smallest. Person 2’s leaves grow to the right in increasing order. Then compare where each group’s values pile up.

Show Answer
Person 1          Person 2
         8 | 1 | 2 5
       5 2 | 2 | 4 8
       4 1 | 3 | 3

Key: 8 | 1 (left) means 18 for Person 1
     1 | 2 means 12 for Person 2

Person 1’s values run from 18 to 34, and Person 2’s run from 12 to 33. Person 1 has no commute under 18 minutes, while Person 2 reaches down into the low teens. Person 1 tends to have the longer commutes, since the shorter Person 2 times have no match on the Person 1 side.

Mastery Checklist

Novice (Level 1-2):

Competent (Level 3-4):

Proficient (Level 5):

Mental Model

Think of each number walking up to a row of mailboxes. The stem is the building number, and the leaf is the apartment number. Every observation drops its leaf into the mailbox for its stem. After everyone has dropped a leaf, the mailbox with the most leaves marks where the data crowd together, and the stack of mailboxes from top to bottom shows how far the data reach. Nothing is summarized away: you can still open any mailbox and read the original numbers back out.


Connections

Looking back:

Looking ahead:

Real-world connections:

Resources

Primary textbook:

Open-source companion:



Last updated: 2026-06-16