Stem and leaf diagrams
A stem and leaf diagram is a way of showing numerical data in order while keeping every value. Each number is split into a stem, usually its tens digit, and a leaf, its units digit. The leaves are written in a row beside their stem, smallest first, and a key explains how to read them. From the finished diagram you can read off the median, mode, range and quartiles. In the US it is called a stem and leaf plot.
What is a stem and leaf diagram?
Here are the times, in seconds, that 15 students took to solve a puzzle:
12, 15, 18, 21, 23, 23, 27, 29, 30, 34, 35, 38, 41, 42, 47
As a stem and leaf diagram, the tens digits become the stems and the units digits become the leaves:
| Stem | Leaf |
|---|---|
| 1 | 2 5 8 |
| 2 | 1 3 3 7 9 |
| 3 | 0 4 5 8 |
| 4 | 1 2 7 |
Key: 2 | 3 means 23 seconds
Read the second row as 21, 23, 23, 27 and 29. Turn the page on its side and the rows look like a bar chart, so you can also see the shape of the data: most times are in the 20s, with fewer at either end.
How to draw a stem and leaf diagram
- Choose the stems. For two-digit data, use the tens digits. Write them in a column from smallest to largest, including any stem with no leaves.
- Draw a vertical line to the right of the stems.
- Write each leaf beside its stem. Doing it in the order the data comes is fine for a first draft.
- Order the leaves in each row from smallest to largest, keeping them evenly spaced. Most exam questions want an ordered diagram.
- Add a key, such as 2 | 3 means 23 seconds, with units.
Decimals and bigger numbers
The key tells the reader what the digits mean, so stems and leaves can stand for other place values. For lengths such as 4.2, 4.5, 5.1, 5.6 and 6.3 cm, the stems are the units and the leaves are the tenths, with the key 5 | 1 means 5.1 cm. For three-digit numbers such as 132 or 147, the stems can be 13 and 14, with the key 13 | 2 means 132.
Finding averages and spread from a stem and leaf diagram
Because the diagram is in order, the values you need are easy to count to. Use the puzzle times above.
| Measure | How to find it | Puzzle times |
|---|---|---|
| Mode | The leaf that appears most often in one row | 23 s |
| Median | The middle value: the (n + 1) ÷ 2 th value | 8th value: 29 s |
| Range | Largest value minus smallest value | 47 − 12 = 35 s |
| Lower quartile | The (n + 1) ÷ 4 th value | 4th value: 21 s |
| Upper quartile | The 3(n + 1) ÷ 4 th value | 12th value: 38 s |
| Interquartile range | Upper quartile minus lower quartile | 38 − 21 = 17 s |
| Mean | Add all the values and divide by n | 435 ÷ 15 = 29 s |
Example 1: finding the median
With n = 15, the position of the median is (15 + 1) ÷ 2, which is the 8th value. Count along the leaves: the first row has 3, the second row brings the total to 8, and the 8th leaf is the last one in that row, the 9. With stem 2, that is 29 seconds.
With an even number of values, the median is halfway between the two middle values. For 16 values, it would be halfway between the 8th and 9th.
You can check the mean, median, mode and range of any list in the Mean, Median and Mode Calculator.
Back-to-back stem and leaf diagrams
To compare two sets of data, put them on either side of the same stems. The leaves on the left are read from right to left, so the smallest leaf sits next to the stem on both sides.
Here are the puzzle times for a second class of 13 students, Class B, beside Class A from above:
| Class B | Stem | Class A |
|---|---|---|
| 9 | 0 | |
| 9 6 4 | 1 | 2 5 8 |
| 6 6 5 2 | 2 | 1 3 3 7 9 |
| 6 3 1 | 3 | 0 4 5 8 |
| 4 | 4 | 1 2 7 |
| 2 | 5 |
Key: Class B 6 | 2 means 26 seconds. Class A 2 | 3 means 23 seconds.
Example 2: comparing the two classes
- Class B median: 13 values, so the 7th value: 26 s. Class A median: 29 s.
- Class B range: 52 − 9 = 43 s. Class A range: 35 s.
A good comparison makes one point about the average and one about the spread, in context: "Class B had a lower median, so on average they solved the puzzle faster. Class B had a larger range, so their times were more spread out."
Check your reading of a stem and leaf diagram.
Advantages and disadvantages
| Advantages | Disadvantages |
|---|---|
| Keeps every original value | Gets crowded with a lot of data |
| Shows the shape of the data at a glance | Only works for numerical data |
| Makes the median, quartiles and range quick to find | Hard to read with very spread-out values |
For large data sets, a grouped frequency table, a histogram or a box plot works better. A stem and leaf diagram is ideal for about 10 to 50 values.
Common mistakes
- Forgetting the key. Without it, 3 | 4 could mean 34, 3.4 or 340. A key is usually worth a mark.
- Leaving the leaves unordered when the question asks for an ordered diagram.
- Missing out repeated values. Two 23s need two 3s in the 2 row.
- Skipping an empty stem. If no value is in the 40s, still write the 4 stem with no leaves, so the shape stays true.
- Writing the median as a leaf, such as 9 instead of 29. Put the stem back on.
- Reading the left side the wrong way in a back-to-back diagram. Those leaves go outward from the stem.
Practise with a short timed paper
Reading charts and finding averages comes up in every GCSE Maths course. The daily GCSE Maths Foundation and GCSE Maths Higher papers are short timed papers of 8 questions, with a new one every day.
Common questions
What is a stem and leaf diagram?
How do you find the median from a stem and leaf diagram?
Why does a stem and leaf diagram need a key?
What is a back-to-back stem and leaf diagram?
Is a stem and leaf plot the same as a stem and leaf diagram?
How do you find the range from a stem and leaf diagram?
Revision cards
Say the answer first, then flip the card to check it.
Where to go next
- Solve it
Mean, Median and Mode Calculator
Find averages, range and quartiles from raw or grouped data
Open the tool - Test it
GCSE Maths Foundation
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper - Test it
GCSE Maths Higher
A new exam-style paper every day, with instant marking and a mark scheme
Start today's paper