Stem and Leaf Diagrams

On this page

How to draw an ordered stem and leaf diagram with a key, including for three-digit numbers, read values from one, find the mode, median and range, and compare two groups.

What a stem and leaf diagram is

A stem and leaf diagram shows a list of numbers in rows. Each number is split into two parts: the stem, written to the left of the line, and the leaf, the last digit, written to the right. For 23 the stem is 2 and the leaf is 3

Each leaf is one number. The row 2 \mid 0\ 3\ 3\ 7 shows the four numbers 20, 23, 23 and 27. The key tells you how to read the diagram, so a stem and leaf diagram always needs one.

In the exam you are usually asked to show a list of numbers in an ordered stem and leaf diagram with a key, for 3 marks, or to find the median, mode or range from a diagram, for 1 or 2 marks. Harder questions ask for a probability, or ask you to compare the numbers with a second group.

Reading the diagram

In an ordered stem and leaf diagram, the leaves in each row go from smallest to largest. So the smallest value is the first leaf in the top row, and the largest value is the last leaf in the bottom row.

To find how many values there are, count the leaves. Don't count the stems.

Read the words of the question carefully. More than 45 does not include 45 itself, but 45 or more does.

To find a probability from the diagram, count the leaves you want and put that number over the total number of leaves:

\text{probability} = \frac{\text{number of values you want}}{\text{total number of values}}

Worked example 1: Reading values and a probability

The stem and leaf diagram shows the distances, in km, that 16 people cycled in a charity ride. (a) Write down the longest distance. (b) One of the cyclists is chosen at random. Work out the probability that this cyclist rode more than 45 km.

  1. Here is the diagram. The key is 3 \mid 6 represents 36 km.
  2. (a) The longest distance is the last leaf in the bottom row, 5 \mid 6, which is 56 km.
  3. (b) More than 45 km does not include 45. In the row with stem 4, only the two leaves 8 are more than 45
  4. Your turn. How many cyclists rode more than 45 km?

    48, 48, 50, 53 and 56: that is 5 cyclists

  5. Count the leaves to check the total: 3 + 5 + 5 + 3 = 16. So the probability is \frac{5}{16}
  6. Answer: (a) 56 km (b) \frac{5}{16}

Drawing an ordered stem and leaf diagram

  • Find the smallest and largest numbers. Use the tens digits as the stems, and write them down a column with a line to their right.
  • Go along the list. Write each units digit as a leaf on its row, and cross the number off as you go.
  • Draw the diagram again with the leaves in each row in order, smallest first.
  • Add a key with units, such as 2 \mid 3 represents 23 minutes.
  • Count the leaves. There must be as many leaves as there are numbers in the list.

Write every stem in order, with no gaps, even if a row has no leaves. Keep the leaves in neat, evenly spaced columns, so that a row with more leaves looks longer.

For bigger numbers, the leaf is still the last digit and the stem is everything before it. For heights from 126 cm to 158 cm, use the stems 12, 13, 14 and 15, with a key such as 14 \mid 3 represents 143 cm. A number such as 107 has stem 10 and leaf 7

Don't use 1 as the only stem for numbers such as 126 and 158. Every number would then go on the same row, and the diagram would show nothing.

Worked example 2: Drawing an ordered diagram

Here are the numbers of text messages that 14 students sent one day.

23, 41, 18, 35, 27, 30, 16, 44, 29, 33, 21, 38, 25, 19

Show this information in an ordered stem and leaf diagram.

  1. The smallest number is 16 and the largest is 44, so the stems are 1, 2, 3 and 4
  2. Go along the list, putting each units digit on its row. Row 2 gets the leaves 3, 7, 9, 1 and 5, in the order they come in the list.
  3. Your turn. How many of the numbers go on the row with stem 3?

    35, 30, 33 and 38, so row 3 gets the 4 leaves 5, 0, 3 and 8

  4. Now draw it again with each row in order, smallest first, and add a key with units.
  5. Check: 3 + 5 + 4 + 2 = 14 leaves, the same as the 14 numbers in the list.
  6. Answer: the ordered diagram above, with the key 2 \mid 3 represents 23 messages.

Mode, median and range from a diagram

The mode is the value that comes up most often. Look for a leaf repeated in the same row, then use the key to write the whole value. In the row 2 \mid 4\ 4\ 4 the mode is 24, not 4

The median is the middle value when the values are in order. An ordered diagram has already put them in order. If there are n values, the median is the value in position

\frac{n+1}{2}

Count the leaves along the rows, starting from the smallest, until you reach that position.

If n is even, the median is halfway between the two middle values. With 12 values, \frac{12+1}{2} = 6.5, so the median is halfway between the 6th and 7th values.

The range is the largest value subtract the smallest value. It is one number, not two.

\text{range} = \text{largest value} - \text{smallest value}

For the mean, add up all the values, the whole numbers and not just the leaves, then divide by how many values there are.

Worked example 3: Mode, median and range

The stem and leaf diagram shows the numbers of goals a netball team scored in 15 matches. Find (a) the mode, (b) the median, (c) the range.

  1. Here is the diagram. The key is 2 \mid 4 represents 24 goals.
  2. (a) The leaf 4 comes three times in the row with stem 2, more often than any other value. So the mode is 24 goals.
  3. (b) There are 15 values, so the median is the value in position \frac{15+1}{2} = 8
  4. Your turn. Count along to the 8th leaf. What is the median?

    17, 19, 22, 24, 24, 24, 26, 28: the 8th value is 28 goals

  5. (c) The smallest value is 17 and the largest is 42. The range is 42 - 17 = 25 goals.
  6. Answer: (a) 24 goals (b) 28 goals (c) 25 goals

Worked example 4: A median between two values

The stem and leaf diagram shows the numbers of emails that 14 office workers received one day. Find (a) the median, (b) the range.

  1. Here is the diagram. The key is 3 \mid 1 represents 31 emails.
  2. (a) There are 14 values, an even number. \frac{14+1}{2} = 7.5, so the median is halfway between the 7th and 8th values.
  3. Counting along the leaves: 14, 17, 20, 23, 25, 28, 31, 32. The 7th value is 31 emails and the 8th is 32 emails.
  4. Your turn. What number is halfway between 31 and 32?

    (31 + 32) \div 2 = 31.5, so the median is 31.5 emails

  5. (b) The smallest value is 14 and the largest is 53. The range is 53 - 14 = 39 emails.
  6. Answer: (a) 31.5 emails (b) 39 emails

Comparing two groups

Some questions give you a diagram for one group and the median and range of a second group, and ask you to compare them. Work out the median and the range for the diagram first.

  • Compare the medians: the group with the higher median has higher values on average.
  • Compare the ranges: the group with the bigger range is more spread out, so its values are less consistent.

Writing down the numbers is not enough. Say which is bigger, and what that means for the people or things in the question. For example: the median time for Team A (24 minutes) is lower than the median time for Team B (31 minutes), so on average Team A were quicker.

Worked example 5: Comparing two groups

The stem and leaf diagram shows the numbers of pages that 17 students in Year 9 read in one week. For 17 students in Year 10, the median was 46 pages and the range was 38 pages. Compare the numbers of pages read by the two year groups.

  1. Here is the diagram for Year 9, with the key 3 \mid 1 represents 31 pages. There are 17 values, so the median is in position \frac{17+1}{2} = 9
  2. Your turn. What is the median for Year 9?

    Counting along the rows, the 9th value is 3 \mid 6, so the median is 36 pages

  3. The range for Year 9 is 66 - 15 = 51 pages.
  4. Medians: the median for Year 9 (36 pages) is lower than the median for Year 10 (46 pages), so on average Year 10 read more pages.
  5. Ranges: the range for Year 9 (51 pages) is bigger than the range for Year 10 (38 pages), so the numbers of pages read in Year 9 are more spread out.
  6. Answer: on average Year 10 read more pages, and the numbers for Year 9 are more spread out.

Worked example 6: Three-digit numbers and a median

Here are the numbers of visitors to a museum on 13 days.

214, 231, 208, 225, 219, 240, 203, 236, 222, 217, 211, 229, 233

(a) Show this information in an ordered stem and leaf diagram. (b) Find the median number of visitors.

  1. (a) The smallest number is 203 and the largest is 240. The leaf is the last digit, so the stem is the first two digits.
  2. Your turn. What is the stem for 203?

    203 has stem 20 and leaf 3, and 240 has stem 24 and leaf 0, so the stems are 20, 21, 22, 23 and 24

  3. Put each last digit on its row, then draw the diagram again with each row in order and add a key. Check: 2 + 4 + 3 + 3 + 1 = 13 leaves.
  4. (b) There are 13 values, so the median is the value in position \frac{13+1}{2} = 7
  5. Counting along the leaves: 203, 208, 211, 214, 217, 219, 222. The 7th value is 222 visitors.
  6. Answer: (a) the ordered diagram above, with the key 21 \mid 4 represents 214 visitors (b) 222 visitors

Common mistakes

  • Leaving the leaves out of order. In an ordered diagram each row goes from smallest to largest, so draw a rough diagram first, then a neat ordered one.
  • Missing out a number. Cross off each number as you place it, then check that the number of leaves matches the number of values.
  • Leaving out the key or its units. Write a key with an example and units, such as 2 \mid 3 represents 23 minutes.
  • Giving a leaf as the answer. Use the key to write the whole value: 5 \mid 7 is 57, not 7, and the mode is the most common value, not the most common digit.
  • Writing the range as two numbers. The range is one number, the largest value subtract the smallest, such as 72 - 38 = 34
  • Writing down the values without comparing them. Say which median and which range is bigger, and what that means in the question.

Practice questions