Skip to content

Stem and Leaf Plot Maker

Paste a list of numbers to build a stem-and-leaf plot with sorted leaves and a key. Copy it as text, download it as an image or print it.

Free, no sign-up · Last updated

Data

Separate numbers with spaces, commas, or new lines. You can also paste a spreadsheet column.

Chart options

Chart colors

Numbers

Values (n)

15

Minimum
23
Maximum
63
Median
45
Mode(s)
47
Range
40
Key
4 | 7 = 47

Definition

What a stem-and-leaf plot shows

A stem-and-leaf plot groups numbers by their leading digits and lists the last retained digit of each observation beside its group. The lengths of the rows show how values cluster, and the key tells you the place value of each leaf.

One leaf
One observation at the chosen precision
Read with
A key that gives the leaf’s place value
Long rows
Show where observations cluster

How to make a stem-and-leaf plot

Enter the raw numbers in any order. The maker sorts them, splits each into a stem and a leaf, and writes one row per stem with the leaves in order from smallest to largest. With two-digit numbers, the tens digit is the stem and the ones digit is the leaf, so 47 becomes 4 | 7.

The leaf unit is chosen for you, but you can set it to 0.1, 1, 10 or 100. Values are truncated to the leaf unit, not rounded, which is the usual school convention, so with a leaf unit of 10, the number 247 is shown as 2 | 4. Turn on split stems if the data bunches into a few rows. Give the plot a title, and keep the key, which is always printed underneath.

Worked example: ages of club members

A chess club has 15 members aged 23, 25, 31, 34, 34, 38, 42, 45, 47, 47, 47, 51, 56, 58 and 63. This is the example in the maker. The stems are the tens digits 2 to 6. The plot reads 2 | 3 5, then 3 | 1 4 4 8, 4 | 2 5 7 7 7, 5 | 1 6 8 and 6 | 3, with the key 4 | 7 = 47.

Reading the leaves in order, the 8th of the 15 values is 45, so the median age is 45. The mode is 47, which appears three times on the 4 stem. The range is 63 − 23 = 40. The ages add up to 641, so the mean is 641 ÷ 15 ≈ 42.7. The longest row is the 40s, with five members, and the plot is roughly symmetric around it.

Why use a stem-and-leaf plot

A stem-and-leaf plot keeps every value while still showing the shape of the data. Turned on its side, the rows look like the bars of a histogram, but you can still read each number. That makes it handy for finding the median, quartiles and mode by hand, and for spotting clusters, gaps and outliers.

It works best for about 15 to 50 values with two or three significant digits. With hundreds of values the rows become too long, so a histogram is easier. To compare two groups, such as two classes, a back-to-back stem-and-leaf plot shares one set of stems with leaves going both ways. For that you can also make a box plot for each class on one scale.

Common mistakes

Leaves must be single digits. A value of 105 with a leaf unit of 1 has stem 10 and leaf 5, not stem 1 and leaf 05. Keep the leaves evenly spaced so the length of each row is a fair picture of how many values it holds, and write them in order, which the maker does for you.

Watch negative numbers. −3 and 3 both have a leaf of 3, but −3 belongs on the −0 stem, which sits above the 0 stem. The maker handles this. For the mean, median and mode of the same list without the plot, use the mean, median and mode calculator.

Step-by-step example

Use a leaf unit of one year for the chess club ages 23, 25, 31, 34, 34, 38, 42, 45, 47, 47, 47, 51, 56, 58 and 63.

StepResult
Leaf key4 | 7 = 47
Leaves in the 40s4 | 2 5 7 7 7
Median age45 years
Most frequent age47 years
Range40 years
Mean age42.7 years

Formulas used

Splitting a number into stem and leaf

Leaf = last digit at the leaf unit

Stem = the digits in front of the leaf

Value = stem × 10 × leaf unit + leaf × leaf unit

  • With a leaf unit of 1, the stem is the tens and the leaf is the ones. Values are truncated to the leaf unit.
  • With a negative stem, combine the digit magnitudes and apply the minus sign to the result.

Example: 47 with a leaf unit of 1 gives stem 4 and leaf 7, and 4 × 10 × 1 + 7 × 1 = 47. With a leaf unit of 0.1, 4.8 gives stem 4 and leaf 8, and 4 × 10 × 0.1 + 8 × 0.1 = 4.8.

When the answer can mislead

  • With a leaf unit of ten, values that share the same stem and leaf may have different ones digits.
  • Repeated leaves record separate observations and count separately when finding the median.
  • When comparing groups, use the same leaf unit so matching stems cover matching intervals.

Questions

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

Type or paste your numbers, separated by commas, spaces or new lines. The maker splits each number into a stem (all but the last digit) and a leaf (the last digit), sorts the leaves and writes one row per stem, with a key that shows how to read it. Copy the plot as text for homework, or download it as a PNG or SVG.

What is the key for?

The key tells the reader what a stem and a leaf stand for. 4 | 7 = 47 means the stem is the tens digit and the leaf is the ones digit. The same row could mean 4.7 or 470 with a different leaf unit, so a plot without a key cannot be read for certain. Most teachers take marks off for a missing key.

How do I handle decimals or three-digit numbers?

Change the leaf unit. For data such as 3.4, 4.1 and 4.8, a leaf unit of 0.1 makes the whole number the stem and the tenths digit the leaf, so 4 | 8 = 4.8. For three-digit numbers such as 245, the leaf is still the ones digit and the stem is 24. A leaf unit of 10 drops the ones digit, so 245 is shown as 2 | 4 with the key 2 | 4 = 240. Automatic picks a sensible unit from your data.

What are split stems?

Splitting writes each stem twice. The first row holds leaves 0 to 4 and the second holds leaves 5 to 9. It spreads out data that is bunched into only two or three stems, so the shape is easier to see. Turn it on when most of your values share the same few stems.

Why does a stem with no leaves still appear?

Every stem from the smallest to the largest is listed, even if no value falls there, so gaps in the data stay visible. Leaving out an empty stem would squeeze the rows together and hide the gap.

How do I find the median from a stem-and-leaf plot?

Count the leaves from the top, since they are already in order. With n values, the median is value number (n + 1) ÷ 2, or the average of the two middle values when n is even. In the example there are 15 leaves, so the median is the 8th value, 45.

Last updated How we check
Embed this calculator
Cite this calculator

Stem and Leaf Plot Maker. CalculatorLab. https://calculatorlab.site/calculators/stem-and-leaf-plot-maker/. Last updated .