Free chart maker

Stem-and-Leaf Plot Maker

Turn a list of numbers into a stem-and-leaf plot with a key. Handles decimals, negative numbers and split stems, and makes back-to-back plots for two groups.

  • 100% free
  • No sign-up
  • Copy as text
  • PNG · SVG
Test Scores52 861 4 4 7 970 1 3 5 5 6 880 2 3 5 891 4 7Key: 5 | 2 = 52

Your data is saved in this browser only. Nothing is uploaded.

Summary

  • Scores: n = 22, min 52, median 75, max 97, mode 64, 75

Your data

22 numbers

Add a second data set to make a back-to-back stem-and-leaf plot.

Options

Split stems
Splitting spreads crowded rows: 2 lines per stem (leaves 0–4 and 5–9) or 5 lines.
Background
Text
Lines

How a stem-and-leaf plot works

A stem-and-leaf plot splits every number into a stem (the leading digits) and a leaf (the last digit). Stems are listed once, in order; leaves are written beside them. The result looks like a histogram turned on its side, but every original value can still be read from it.

Example

Scores: 52, 58, 61, 64, 64, 67, 69, 70, 71, 73, 75, 75, 76, 78, 80, 82.

StemLeaves
52 8
61 4 4 7 9
70 1 3 5 5 6 8
80 2

Key: 5 | 2 = 52. Reading it, most scores are in the 70s, the modes are 64 and 75 (each appears twice), and the median of these 16 values is the average of the 8th and 9th: (70 + 71) ÷ 2 = 70.5.

Tips for a good stem-and-leaf plot

  • Always include a key, so readers know whether 4 | 7 means 47 or 4.7.
  • Keep empty stems. If no values are in the 30s, keep the 3 stem with no leaves. Gaps are part of the shape.
  • Order the leaves from smallest to largest, which makes the median and quartiles easy to count.
  • Split stems when a few rows hold most of the leaves.
  • Best for roughly 15–100 values. For more, a histogram is clearer.

Need the median and quartiles worked out? Use the five-number summary calculator.

Worked example: a back-to-back plot

Load “Back-to-back” above. Boys’ scores are on the left and girls’ on the right of one shared stem column. Reading across the 6 stem: the boys have 60, 62, 62, 65, 68 and the girls 61, 63, 64, 66, 69. Overall the girls’ leaves extend further down the plot (into the 70s and 80s), so their scores are higher on average, while both groups start in the 40s.

Common mistakes to avoid

  • Leaving out the key. Without it, nobody knows whether 4 | 7 means 47, 4.7 or 470.
  • Skipping empty stems. Keep stems with no leaves; the gaps are part of the shape.
  • Unsorted leaves. Order the leaves so the median and quartiles can be counted directly.
  • Leaves with two digits. Each leaf is a single digit. Round or change the leaf unit instead.

Do it in other software

SoftwareHow
Rstem(x) prints a stem-and-leaf plot in the console.
MinitabGraph › Stem-and-Leaf.
Excel / Google SheetsNo built-in option. Use =INT(x/10) for stems and =MOD(x,10) for leaves, or use this tool.

Related tools: Dot Plot Maker, Histogram Maker, Five-Number Summary Calculator, Mean, Median & Mode Calculator and Relative Frequency Histogram.

Frequently asked questions

How do you make a stem-and-leaf plot?

Split each number into a stem (all but the last digit) and a leaf (the last digit). For 47, the stem is 4 and the leaf is 7. List the stems in order down the left, then write each leaf next to its stem, in increasing order.

What is the key in a stem-and-leaf plot?

The key shows how to read the plot, for example '4 | 7 = 47' or '4 | 7 = 4.7'. Without it, the same plot could mean 47, 4.7 or 470, so always include one.

What are split stems?

When too many leaves crowd onto a few stems, each stem can be split into two rows (leaves 0–4 and 5–9) or five rows (0–1, 2–3, 4–5, 6–7, 8–9). This spreads the data out so its shape is easier to see.

What is a back-to-back stem-and-leaf plot?

It compares two data sets using one column of shared stems. Leaves for the first set go to the left (reading outward), and leaves for the second set go to the right. Add a second data set to make one.

How do I handle decimals or large numbers?

Change the leaf unit. With a leaf unit of 0.1, 4.7 has stem 4 and leaf 7. With a leaf unit of 10, 470 has stem 4 and leaf 7. Values with extra digits are rounded to the leaf unit.

Related tools