Stem-and-Leaf Plots: Definition, Method and Examples

MathPublished

Stem-and-Leaf Plots: Definition, Method and Examples

A stem-and-leaf plot organises numerical data by splitting each value into a stem and a one-digit leaf. A key explains the place value, and ordered leaves preserve every original data value for later analysis.

What is a stem-and-leaf plot?

A stem-and-leaf plot is a visual data display that groups numbers by place value while keeping the exact original values visible.


Before building a stem-and-leaf plot, it helps to understand frequency tables. While a frequency table groups data into intervals and hides individual numbers, a stem-and-leaf plot displays every specific data point. The plot divides each number into two parts: the last digit becomes the leaf, and the remaining leading digits form the stem.

A stem-and-leaf plot showing stems on the left of a vertical line and leaves on the right, with labels identifying the stems, leaves, and the key.

Read the key

Every stem-and-leaf plot must include a key. The key tells you how to combine the stem and the leaf to read the original number.


The same numbers in a plot can represent entirely different values depending on the key. For example, a stem of 44 and a leaf of 22 written as 4∣24 \mid 2 could mean:

  • 4242, if the key states 4∣2=424 \mid 2 = 42.
  • 4.24.2, if the key states 4∣2=4.24 \mid 2 = 4.2.
  • 420420, if the key states 4∣2=4204 \mid 2 = 420.

Always read the key first to determine the place value of the data.

Split values into stems and leaves

To place a number into the plot, you must separate its final digit from the rest of the number.


The leaf is always a single digit. The stem can be one digit, multiple digits, or even zero.

  • Two-digit numbers: In the number 4747, the stem is 44 (tens) and the leaf is 77 (ones).
  • Three-digit numbers: In the number 152152, the stem is 1515 (hundreds and tens) and the leaf is 22 (ones).
  • Decimal values: In the number 3.63.6, the stem is 33 (ones) and the leaf is 66 (tenths).

Three diagrams showing how the numbers 47, 152, and 3.6 split into their respective stems and single-digit leaves.

Make an ordered plot

An ordered stem-and-leaf plot lists the stems in numerical order down the left column and the leaves in numerical order from left to right.

  1. Sort the data: Arrange the original list of numbers from least to greatest.
  2. List the stems: Identify the lowest and highest stems. Write every stem from lowest to highest in a vertical column, including any empty stems where no data exists.
  3. Draw the separator: Draw a vertical line to the right of the stems.
  4. Add the leaves: Write the single-digit leaf for each data point in the row matching its stem. Space the leaves evenly.
  5. Write the key: Add a key explaining how to read one of the values.

Writing the leaves in numerical order helps you analyse the shape of the data easily.

Read and compare data

Because a stem-and-leaf plot shows all original values in order, you can easily extract statistical measures and compare distributions.


You can count the leaves to find the total number of data points. The first leaf on the top stem is the minimum value, and the last leaf on the bottom stem is the maximum value. You can use these to calculate the range in statistics.


Because the values are ordered, you can easily locate the median by finding the middle leaf. You can also spot the mode by looking for the most frequently repeated leaf on a single stem.


To compare two related groups of data, you can create a back-to-back stem-and-leaf plot. This dual plot shares a central column of stems. The leaves for one group expand to the right, and the leaves for the other group expand to the left. Remember that the leaves on the left side are read backwards, from right to left, starting from the central stem. Like dot plots, these dual plots offer a visual way to compare the center and spread of two data sets.

Worked examples

Review these examples to see how to construct plots and analyze data.


Example 1: Making an ordered plot


Question: Create an ordered stem-and-leaf plot for the data set: 132,145,137,151,145,134,158132, 145, 137, 151, 145, 134, 158.


Method:

  1. Order the data from least to greatest: 132,134,137,145,145,151,158132, 134, 137, 145, 145, 151, 158.
  2. Identify the stems. The numbers range from the 130130s to the 150150s, so the stems are 13,14,1513, 14, 15.
  3. Write the stems in a column with a vertical line on the right.
  4. Add the final digit of each number as a leaf in the correct row.
  5. Provide a key.

Answer:

A stem-and-leaf plot with stems 13, 14, and 15. The leaves for 13 are 2, 4, 7. The leaves for 14 are 5, 5. The leaves for 15 are 1, 8. The key states 13 | 2 represents 132.


Check: Count the leaves. There are 77 leaves and 77 numbers in the original data set.


Example 2: Finding median and range


Question: The stem-and-leaf plot below shows the weights of 99 pumpkins in kilograms. Find the median and the range of the weights.


Method:

  1. Read the key. The stem is the ones digit and the leaf is the tenths digit.
  2. Find the minimum and maximum values to calculate the range. The minimum is 2.12.1 and the maximum is 5.25.2.
  3. Subtract the minimum from the maximum: 5.2−2.1=3.15.2 - 2.1 = 3.1.
  4. Find the median by locating the middle value. With 99 values, the middle is the 5th value.
  5. Count 55 leaves from the beginning: 2.1,2.8,3.4,3.4,3.72.1, 2.8, 3.4, 3.4, 3.7. The 5th value is 3.73.7.

Answer:

Stem-and-leaf plot. Stems: 2, 3, 4, 5. Leaves for 2: 1, 8. Leaves for 3: 4, 4, 7. Leaves for 4: 0, 5, 9. Leaves for 5: 2. Key: 2 | 1 represents 2.1 kilograms.


The range is 3.13.1 kilograms. The median is 3.73.7 kilograms, shown highlighted in blue.

Check: There are 44 values below 3.73.7 and 44 values above 3.73.7, confirming it is the exact middle value.


Example 3: Comparing data using a back-to-back plot


Question: The back-to-back stem-and-leaf plot shows the scores of Group A and Group B on a quiz. Which group has the higher maximum score?


Method:

  1. Check the key. The central stems are tens and the leaves are ones. Group A leaves extend to the left. Group B leaves extend to the right.
  2. Find the maximum score for Group A. Look at the highest stem (99) and the leftmost leaf on that stem (00). The maximum for Group A is 9090.
  3. Find the maximum score for Group B. Look at the highest stem (99) and the rightmost leaf on that stem (66). The maximum for Group B is 9696.
  4. Compare the two maximum values.

Answer:

Back-to-back stem-and-leaf plot. Central stems: 6, 7, 8, 9. Group A leaves on left: 6 has 8; 7 has 5, 2, 0; 8 has 4, 1; 9 has 0. Group B leaves on right: 6 has 9; 7 has 4, 8; 8 has 0, 3, 5; 9 has 2, 6.


Group B has the higher maximum score (9696 compared to 9090).


Check: Re-read the bottom row carefully: 0∣9∣260 \mid 9 \mid 2 \quad 6. The numbers are 9090 for Group A and 92,9692, 96 for Group B. The conclusion is correct. yshift=-0.2cm

Common mistakes

Ignoring the key

It is easy to assume that a stem-and-leaf plot always represents tens and ones. Without reading the key, 14∣214 \mid 2 might be misread as 142142 when the key actually defines it as 14.214.2 or 1,4201{,}420.


Writing multiple digits in the leaf

A leaf must contain exactly one digit. If you place a two-digit number in the leaf section, the place value structure breaks down.


Skipping empty stems

If there is a gap in the data, you must still include the stem to accurately show the gap. For example, if your data ranges from 1212 to 4545 but there are no values in the twenties, you must include the stem 22 with no leaves next to it. Leaving the stem out visually distorts the distribution.

Frequently asked questions

What if a number appears more than once in the data?

Include a leaf for every single occurrence. If the number 4242 appears three times, you must write the leaf 22 three times next to the stem 44.


Do leaves need to be in numerical order?

Yes. An ordered stem-and-leaf plot allows you to quickly find the median and properly visualize the shape of the data. If you construct an unordered plot while drafting, always rewrite it with ordered leaves for the final presentation.


How do you handle negative numbers?

Negative numbers can be included by using negative stems. The values are still ordered from least to greatest, meaning the largest negative values appear near the top of the plot.

Practice questions

Question

A stem-and-leaf plot with stems 1, 2, and 3. Leaves for 1 are 4, 8. Leaves for 2 are 0, 5, 5, 9. Leaves for 3 are 1, 7. The key indicates that 2 | 5 represents 2.5.


What is the maximum value in the data set shown in the stem-and-leaf plot above?

  • 3.73.7

  • 3737

  • 77

  • 1.41.4

Answer:

3.73.7

Question

Stem-and-leaf plot with stems 10, 11, and 12. Leaves for 10 are 2, 4, 4, 8. Leaves for 11 are 0, 5, 5, 5, 9. Leaves for 12 are 1, 6. The key states that 10 | 2 represents 102.


What is the mode of the data shown in the stem-and-leaf plot?

  • 115115

  • 55

  • 104104

  • 110110

Answer:

115115

Question

Back-to-back stem-and-leaf plot with central stems 1, 2, and 3. Group X leaves on the left: for stem 1: 9, 4, 2; for stem 2: 8, 5, 0, 0; for stem 3: 1. Group Y leaves on the right: for stem 1: 5, 8; for stem 2: 2, 4, 4, 9; for stem 3: 0, 5. Key: 4 | 2 | 2 represents 24 for Group X and 22 for Group Y.


Which statement correctly compares the median of Group X and the median of Group Y?

  • The median for Group X is equal to the median for Group Y.

  • The median for Group X is 2020, and the median for Group Y is 2424.

  • The median for Group X is 22, and the median for Group Y is 44.

  • The median for Group X is 2828, and the median for Group Y is 2222.

Answer:

The median for Group X is 2020, and the median for Group Y is 2424.

Question

A stem-and-leaf plot with stems 4 and 5. Leaves for 4 are 2, 8, 12. Leaves for 5 are 1, 3. The key states that 4 | 2 represents 42.


What error was made in constructing this stem-and-leaf plot?

  • A leaf contains more than one digit.

  • The stems are in the wrong numerical order.

  • A key is missing from the display.

  • The leaves on the second row are not in numerical order.

Answer:

A leaf contains more than one digit.

Question

A data set has the values 14,15,15,23,28,30,3414, 15, 15, 23, 28, 30, 34.

If this data is organised into a stem-and-leaf plot with the stems 1,2,1, 2, and 33, how many leaves will the stem 22 have?

  • 22

  • 33

  • 44

  • 88

Answer:

22