Stem and Leaf Plot Calculator

Stem and Leaf Plot Calculator

Build a stem-and-leaf plot that shows the shape of your data while keeping every value readable, with split stems and a back-to-back option for comparing two groups.

74 → stem 7 | leaf 4

Leaf unit:
Type or paste your data to build the plot

What Is a Stem-and-Leaf Plot?

A stem-and-leaf plot splits each number into a stem (its leading digits) and a leaf (its last digit), then lists the leaves in a row beside their stem. 74 becomes stem 7, leaf 4.

Turned on its side, the rows of leaves form a histogram, but unlike a histogram every original value can still be read back. That makes it easy to find the median, the mode and the range straight from the plot.

John Tukey popularised it in the 1970s as a quick pencil-and-paper tool. A back-to-back version, with a second data set's leaves running leftwards from the same stems, compares two groups compactly.

How to Make a Stem-and-Leaf Plot

As described in Tukey, Exploratory Data Analysis (1977), and OpenStax Introductory Statistics, section 2.1. See Sources.

1. Choose the leaf unit

leaf unit 1: 74 → 7 | 4 · leaf unit 0.1: 7.4 → 7 | 4 · leaf unit 10: 740 → 7 | 4

2. List every stem, even empty ones

stems run from the smallest to the largest without skipping

3. Write the leaves in order and add a key

7 | 0 1 1 2 4 5 6 8 9 · Key: 7 | 4 = 74

Digits beyond the leaf are dropped (truncated), not rounded: with leaf unit 1, 74.8 is shown as 7 | 4.

Worked Example: 20 Resting Heart Rates

Given:
Resting heart rates (beats per minute) of 20 adults: 58, 62, 64, 65, 67, 68, 70, 71, 71, 72, 74, 75, 76, 78, 79, 81, 83, 85, 88, 94.
Step 1:
Leaf unit 1, stems 5 to 9:
5 | 8 6 | 2 4 5 7 8 7 | 0 1 1 2 4 5 6 8 9 8 | 1 3 5 8 9 | 4
Step 2:
Split the stems for more detail:
5 | 5* | 8 6 | 2 4 6* | 5 7 8 7 | 0 1 1 2 4 7* | 5 6 8 9 8 | 1 3 8* | 5 8 9 | 4 9* |
Step 3:
Read the median (10th and 11th values):
(72 + 74) ÷ 2 = 73
Result:
Median 73 bpm, most people in the 70s

The unsplit plot peaks at stem 7 and tapers both ways. The split version shows the 70s are spread evenly across both halves, and that 94 sits alone at the top.

Choosing the Leaf Unit

Leaf unit to use for different kinds of data
Data likeLeaf unitExample valueShown as
Times to 0.1 s0.112.712 | 7
Test scores out of 1001747 | 4
House prices in £k102852 | 8
Salaries in £10031,45031 | 4

Common Stem-and-Leaf Mistakes

  • Skipping empty stems. Leaving out a stem with no leaves closes up a gap and hides an outlier.
  • Forgetting the key. Without "7 | 4 = 74", the reader can't tell 74 from 7.4 or 740.
  • Using two-digit leaves. Each leaf must be a single digit, or the rows' lengths stop showing frequency.
  • Unordered leaves. Leaves should be sorted so the median and quartiles can be counted off directly.

Stem-and-Leaf FAQs

What is the stem and what is the leaf?

The leaf is the last digit at the chosen unit; the stem is everything before it. With leaf unit 1, 128 is stem 12, leaf 8.

What does “Auto” choose?

The largest power-of-ten leaf unit that still gives at least 4 stems, which suits most data.

When should I split stems?

When most values crowd into two or three stems. Splitting doubles the rows and shows more shape.

How do I read a back-to-back plot?

The shared stems are in the middle. The second set’s leaves read right to left, so 3 | 7 on the left with stem 6 means 67.

Why are some values truncated?

Each leaf is one digit. Extra digits beyond the leaf unit are dropped, not rounded, which is the standard convention.

Can I use negative numbers?

Not on this page. Add a constant to shift them above zero, or use a dot plot.

How do I find the mode?

Look for the leaf digit that repeats most within one stem row; 7 | 1 1 means 71 appears twice.

How many values can it handle?

Any number, but beyond about 100 values the rows get long; a histogram summarises better.

Sources

Related Tools