A stem and leaf graph (often called a stem-and-leaf plot) is one of the simplest and most revealing ways to organize a set of numbers so that you can see both the individual values and the overall shape of the data at the same time. Because of that, unlike a bar chart, which hides the raw numbers behind bars, a stem and leaf graph keeps every single data point visible while still arranging the values in order. Which means that combination makes it a favorite tool in classrooms, statistics courses, and quick exploratory data analysis. This guide walks you through exactly how to build one, step by step, with worked examples, common pitfalls, and tips for reading the results like a statistician.
What Is a Stem and Leaf Graph?
A stem and leaf graph splits each number into two parts: a stem (the leading digit or digits) and a leaf (the final digit). The stems are listed in a vertical column, and the leaves are written in a row to the right of each stem. Together, the stem and leaf reconstruct the original number Simple, but easy to overlook..
Take this: in the number 47, the stem is 4 and the leaf is 7. In the number 132, the stem is 13 and the leaf is 2.
The result looks a little like a sideways histogram, but with one crucial difference: every value is still readable. You can count how many values fall in each group, spot clusters and gaps, and identify the smallest and largest numbers at a glance.
The Three Essential Parts
Every well-built stem and leaf graph contains these three components:
- The stem column — the shared leading digits, written from smallest to largest.
- The leaf rows — the final digits for each value, written in ascending order.
- The key — a short statement explaining how to read the plot, such as "6 | 2 means 62."
The key is not optional. Without it, a reader cannot know whether 6 | 2 represents 62, 6.2, or 620 Which is the point..
Why Use a Stem and Leaf Graph?
Before diving into the mechanics, it helps to understand what this graph does better than its alternatives.
- It preserves the original data. No information is lost, so you can always recover the exact values.
- It sorts the data automatically. Once the leaves are ordered, you have a ranked list, which makes finding the median, mode, and range straightforward.
- It reveals distribution shape. Clusters, gaps, symmetry, and skewness all become visible.
- It is fast and requires no software. A pencil and paper are enough.
Stem and leaf graphs work best with small to medium-sized data sets — roughly 15 to 100 values. Beyond that, the plot becomes unwieldy and a histogram is usually a better choice Still holds up..
How to Make a Stem and Leaf Graph: Step by Step
Step 1: Collect and Sort Your Data
Write down every value in your data set. Then arrange them in order from smallest to largest. Sorting first is not strictly required, but it makes the next steps much easier and reduces errors.
Suppose you have the following 20 test scores (out of 100):
62, 67, 71, 73, 73, 75, 78, 81, 82, 84, 85, 85, 87, 88, 91, 92, 94, 96, 98, 99
Step 2: Decide on Your Stem Unit
Look at the range of your numbers and choose how
Look at the range of your numbers and choose how many digits will belong to the stem. For whole numbers, the stem is typically all digits except the final one. With the test scores above (ranging from 62 to 99), the tens digit becomes the stem and the ones digit becomes the leaf. This yields stems of 6, 7, 8, and 9.
If your data ranged from 132 to 245, you might use the first two digits as the stem (13, 14 … 24) and the last digit as the leaf. For measurements like 4.That's why 7, 5. Consider this: 2, 5. Also, 9, the stem is the ones digit (4, 5) and the leaf is the tenths digit (7, 2, 9). The key must reflect this choice clearly Small thing, real impact. Turns out it matters..
Not the most exciting part, but easily the most useful.
Step 3: Construct the Stem Column
List every possible stem value in a single vertical column, from smallest to largest. Include stems that have no leaves. Skipping empty stems hides gaps in the distribution—one of the very features this graph is designed to reveal.
For the test scores, the stem column looks like this:
6
7
8
9
Step 4: Attach the Leaves
Go through your sorted data one value at a time. For each number, locate its stem in the column and write the leaf digit in the row to the right. Keep the leaves in ascending order as you go; this preserves the sorted property of the plot Most people skip this — try not to..
Counterintuitive, but true.
Working through the 20 scores:
- 60s: 62, 67 → leaves 2, 7
- 70s: 71, 73, 73, 75, 78 → leaves 1, 3, 3, 5, 8
- 80s: 81, 82, 84, 85, 85, 87, 88 → leaves 1, 2, 4, 5, 5, 7, 8
- 90s: 91, 92, 94, 96, 98, 99 → leaves 1, 2, 4, 6, 8, 9
The completed plot:
Stem | Leaf
6 | 2 7
7 | 1 3 3 5 8
8 | 1 2 4 5 5 7 8
9 | 1 2 4 6 8 9
Key: 6 | 2 = 62
Step 5: Add the Key and Title
Place the key prominently—usually just below or beside the plot. Add a descriptive title that states the variable, the units, and the context (e.Even so, g. , "Final Exam Scores for Introductory Statistics, Fall 2023 (n=20)") No workaround needed..
Common Variations
Split Stems (Expanding the Plot)
When a single stem accumulates too many leaves (generally more than 10–12), the picture blurs. Split each stem into two rows: the first takes leaves 0–4, the second takes leaves 5–9. An asterisk or a subscript often distinguishes them (e.g., 8* for 80–84, 8 for 85–89) Turns out it matters..
Applying this to the 80s row above:
8* | 1 2 4
8 | 5 5 7 8
This spreads the cluster, making the concentration around 85–88 immediately visible Turns out it matters..
Truncating vs. Rounding
If data have more precision than the plot can display (e.g., 84.6, 84.9), truncate the extra digits rather than rounding. Truncating 84.6 and 84.9 to leaf 4 on stem 8 keeps them in the 84 bin. Rounding would send 84.6 to 85 and 84.9 to 85, distorting the distribution. Note the truncation in the key: "8 | 4 represents 84.0–84.9."
Back-to-Back Stem and Leaf
To compare two related groups (e.g., pre-test vs. post-test scores, or male vs. female heights), place one set of leaves on the left (reading outward from the stem) and the other on the right (reading inward). The shared stem column runs down the middle.
Female | Stem | Male
9 8 5 | 6 | 2 7
8 3 1 0 | 7 | 1 3 3 5 8
8 7 5 4 2 | 8 | 1 2 4 5 5 7 8
9 6 2