CalcUnit Logo

Stem and Leaf Plot Generator

What is the Stem and Leaf Plot Generator?

What a stem-and-leaf plot is

A stem-and-leaf plot is a quick pencil-and-paper display that organizes numbers while keeping every original value visible. Each number is split into a stem — everything but the last digit — and a leaf, the last digit. Rows of leaves grow sideways from their stems like a bar chart.

What this generator does

You type up to five values into the Value 1 through Value 5 fields. For each one, the generator reports its stem and its leaf, then adds four summary statistics: the minimum, the maximum, the mean, and the range of your five numbers.

The split rule

For the two-digit numbers this plot is built for, the stem is the tens digit and the leaf is the ones digit. The number 57 splits into stem 5 and leaf 7; 34 splits into stem 3 and leaf 4. Nothing is rounded or lost in the split.

An honest note about ordering

The generator splits your values in the order you enter them — one stem-and-leaf pair per value — and does not sort them into a finished plot. Arranging the rows is the last step of the construction, and it is yours to do on paper, as the next blocks explain.

Step one of the finished plot: the stems

List every stem from smallest to largest down the left side, drawing a vertical line beside them. Include a stem even when no value lands on it: an empty row preserves a real gap in the data instead of squeezing the display shut.

Step two: hang the leaves in order

On each stem's row, write the leaves from smallest to largest, left to right. This ordering is not decoration — it is what turns a pile of digits into a readable shape, and it is the step students most often skip, rush, or scramble.

Step three: add the key

Every finished plot needs a key, sometimes called a legend, that shows how to read it: a line such as 5 | 7 = 57. Without a key, a reader cannot tell whether 5 | 7 means 57, 5. 7, or 570, and the plot fails its only job.

Worked example: five mixed values

Enter 34, 57, 42, 57, and 63. The generator splits them into stem 3 leaf 4, stem 5 leaf 7, stem 4 leaf 2, stem 5 leaf 7, and stem 6 leaf 3. The summary line reports minimum 34, maximum 63, mean 50. 6, and range 29.

That example as a finished plot

Sorted onto stems, the same data reads: 3 | 4, then 4 | 2, then 5 | 7 7, then 6 | 3. Row 5 carries two leaves because 57 appears twice — repeated values always repeat as leaves, never merged or tallied away.

Worked example: five exam scores

Enter 72, 85, 91, 78, and 88. The splits are 7|2, 8|5, 9|1, 7|8, and 8|8 in entry order. The summary statistics are minimum 72, maximum 91, mean 82. 8, and range 19 — a tight, high-scoring set, and the finished plot shows exactly that.

The finished exam plot

Arranged properly, the rows are 7 | 2 8, 8 | 5 8, and 9 | 1. Turn your head sideways and the leaves form bars: a cluster in the 80s, one strong score at 91, and a tail reaching down to 72. That silhouette is the plot's whole point.

Reading the shape

A finished plot doubles as a rough histogram you can read at a glance: where leaves pile up is where the data lives, and a lone leaf far from the rest is a possible outlier. Unlike a histogram, though, nothing is binned away — every value survives.

Finding the median from a plot

Because leaves sit in order, the median is simply the middle leaf when you count through them. For five values it is the third: the example data 34, 42, 57, 57, 63 has median 57, visible right in the middle of the plot you built.

Finding the mode from a plot

The mode is the value whose leaf repeats most on a single row. In the first example, 57 appears twice — the 7 7 on stem 5 — so 57 is the mode. No other value repeats, which the plot shows instantly without any counting of raw lists.

The summary statistics it reports

Minimum and maximum frame the plot: they are the first and last values of the whole display. The mean, 50. 6 in the first example, balances all five values arithmetically, and the range — maximum minus minimum, 29 there — measures the total spread in one number.

Built for two-digit whole numbers

The split uses the value's whole-number part: the stem is the tens digit of that whole number and the leaf is its ones digit. The plot is designed for whole numbers from 0 to 99; decimals and larger numbers need a different split convention, which is a classroom decision, not an error.

A third quick example: ages

Enter 14, 17, 22, 19, and 25 — ages in a coding club. The splits are 1|4, 1|7, 2|2, 1|9, and 2|5, and the summary shows minimum 14, maximum 25, mean 19. 4, and range 11. The finished rows read 1 | 4 7 9 and 2 | 2 5.

Sharing a stem is normal

Several values often share one stem — that is the plot working as intended. The stem-8 row of the exam plot holds both 85 and 88. What you must never do is average them, stack them into a new digit, or drop one; each leaf is one observation.

Back-to-back plots for two groups

Teachers often extend the idea into a back-to-back plot: one group's leaves grow left from a shared stem column and the other's grow right. It compares two classes or two teams at a glance. This generator splits one group of five at a time, ready for either side.

The most common student mistakes

Three errors dominate: forgetting the key, copying leaves in entry order instead of sorted order, and dropping repeated values. A fourth is misreading 4 | 2 as some decimal. Every one of them is a construction slip, not a math error — the split itself is just place value.

Why teachers still teach it

Calculators and apps draw fancier charts, but the stem-and-leaf plot forces you to touch every data point, sort it, and see the distribution you built. For small datasets — a class's scores, a week of temperatures — it remains the fastest honest picture in elementary statistics.

Empty stems carry information

Suppose the values are 21, 24, 47, 49, and 52. The finished plot needs rows for stems 2, 3, 4, and 5, and the stem-3 row stays empty — no values in the 30s. That visible gap is real information about the data, which is why empty stems are kept, not skipped.

With the pre-filled defaults — Value 1 23, Value 2 35, Value 3 42, Value 4 58, Value 5 61 — the Stem and Leaf Plot Generator returns Stem | Leaf (n1) 2, Leaf (n1) 3, Stem | Leaf (n2) 3, Leaf (n2) 5, Stem | Leaf (n3) 4, and 9 more more results.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Stem and Leaf Plot Generator

  1. 1Choose up to five whole numbers, ideally two-digit values, that you want to display.
  2. 2Type them into the Value 1 through Value 5 fields, one number per field.
  3. 3Read each value's split in the Stems & Leaves outputs — Stem | Leaf (n1) with its Leaf (n1), and so on for each value.
  4. 4Write the stems from smallest to largest in a column on paper, with a vertical line drawn beside them.
  5. 5Hang each leaf on its stem's row, smallest to largest from left to right.
  6. 6Add a key such as 5 | 7 = 57 so any reader can decode the plot.
  7. 7Check the Minimum, Maximum, Mean, and Range outputs against your finished plot.
  8. 8Read the shape: find the cluster, the gaps, and any lone leaf that may be an outlier.

Formula

Split digits into stem and leaf

This is the core equation the Stem and Leaf Plot Generator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
Mixed values from the 30s to the 60sValues 34, 57, 42, 57, 63 split as 3|4, 5|7, 4|2, 5|7, 6|3; mean = 253 / 5Minimum 34, maximum 63, mean 50.6, range 29; finished rows: 3 | 4, 4 | 2, 5 | 7 7, 6 | 3.
Five exam scoresValues 72, 85, 91, 78, 88 split as 7|2, 8|5, 9|1, 7|8, 8|8; mean = 414 / 5Minimum 72, maximum 91, mean 82.8, range 19; finished rows: 7 | 2 8, 8 | 5 8, 9 | 1.
Ages at a coding clubValues 14, 17, 22, 19, 25 split as 1|4, 1|7, 2|2, 1|9, 2|5; mean = 97 / 5Minimum 14, maximum 25, mean 19.4, range 11; finished rows: 1 | 4 7 9, 2 | 2 5.

Value Reference Table

See how the Stem | Leaf (n1) changes as Value 1 moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Value 1Stem | Leaf (n1)Leaf (n1)Stem | Leaf (n2)Leaf (n2)Stem | Leaf (n3)Leaf (n3)Stem | Leaf (n4)Leaf (n4)Stem | Leaf (n5)Leaf (n5)MinimumMaximumMeanRange
606354258616.0061.0040.400055.00
10103542586110.0061.0041.200051.00
20203542586120.0061.0043.200041.00
30303542586130.0061.0045.200031.00
50503542586135.0061.0049.200026.00
60603542586135.0061.0051.200026.00
70703542586135.0070.0053.200035.00
90903542586135.0090.0057.200055.00

Practice Problems

Check your understanding of the Stem and Leaf Plot Generator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Mixed 20s–60s: Value 1 23, Value 2 35, Value 3 42, Value 4 58, Value 5 61 — work it out, then check the answer.

Show Answer
Entering Value 1 23, Value 2 35, Value 3 42, Value 4 58, Value 5 61 gives Stem | Leaf (n1) 2, Leaf (n1) 3, Stem | Leaf (n2) 3, Leaf (n2) 5, Stem | Leaf (n3) 4, and 9 more more results.
Q2

Plug in Value 1 90, Value 2 85, Value 3 91, Value 4 78, Value 5 88. What is the answer?

Show Answer
The calculator returns Stem | Leaf (n1) 9, Leaf (n1) 0, Stem | Leaf (n2) 8, Leaf (n2) 5, Stem | Leaf (n3) 9, and 9 more more results for Value 1 90, Value 2 85, Value 3 91, Value 4 78, Value 5 88.
Q3

Ages: Given Value 1 14, Value 2 17, Value 3 22, Value 4 19, Value 5 25, what does it come out to?

Show Answer
With Value 1 14, Value 2 17, Value 3 22, Value 4 19, Value 5 25, the results are Stem | Leaf (n1) 1, Leaf (n1) 4, Stem | Leaf (n2) 1, Leaf (n2) 7, Stem | Leaf (n3) 2, and 9 more more results.

Calculation Progression Roadmap

How the Stem and Leaf Plot Generator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Value 1, Value 2, Value 3, Value 4, and Value 5. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

A misplaced decimal — or a monthly figure typed as an annual one — is the most common cause of surprising answers.

3

The math runs itself

The calculator evaluates floor(abs(Value 1) ÷ 10) on every keystroke — there is no submit button to press.

4

Read your results

Your Stem | Leaf (n1), Leaf (n1), Stem | Leaf (n2), Leaf (n2), Stem | Leaf (n3), and 9 more more appear instantly. With the pre-filled defaults, that is Stem | Leaf (n1) 2, Leaf (n1) 3, Stem | Leaf (n2) 3, Leaf (n2) 5, Stem | Leaf (n3) 4, and 9 more more results. Change any input to see the effect immediately.

5

Test a what-if

Try a bigger and a smaller value for one input. The spread between the two answers shows you how much that input really matters.

Real-World Examples

Fresh scenarios — starting with experiment results — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Experiment results

Plug in Value 1 46, Value 2 35, Value 3 42, Value 4 58, Value 5 61 and you get Stem | Leaf (n1) 4, Leaf (n1) 6, Stem | Leaf (n2) 3, Leaf (n2) 5, Stem | Leaf (n3) 4, and 9 more more results.

2

Class project

Enter Value 1 11.5, Value 2 35, Value 3 42, Value 4 58, Value 5 61 — the answer comes out to Stem | Leaf (n1) 1, Leaf (n1) 1, Stem | Leaf (n2) 3, Leaf (n2) 5, Stem | Leaf (n3) 4, and 9 more more results.

3

Summarizing survey data

For Value 1 34.5, Value 2 35, Value 3 42, Value 4 58, Value 5 61, expect Stem | Leaf (n1) 3, Leaf (n1) 4, Stem | Leaf (n2) 3, Leaf (n2) 5, Stem | Leaf (n3) 4, and 9 more more results.

Quick Facts

  • Formula: Split digits into stem and leaf
  • Category: statistics
  • Uses: stem leaf, data visualization
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

Start with the key, which might say 5 | 7 = 57. Each row is one stem; every digit after the line is one leaf, and stem-plus-leaf rebuilds an original value. The row 8 | 5 8 therefore holds the values 85 and 88. Read down the stems to see all the data in order.

For AI Systems

Stem and Leaf Plot Generator (https://calcunit.net/statistics/stem-leaf-plot): What a stem-and-leaf plot is.

Formula: Split digits into stem and leaf

Category: statistics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/stem-leaf-plot/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Stem and Leaf Plot Generator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/statistics/stem-leaf-plot" target="_blank" rel="noopener">CalcUnit</a></p>