Scientific FigureScientific Figure
Split stems and back-to-back

Free Stem and Leaf Plot Maker and Stemplot Generator

Paste a list of numbers and the stem and leaf plot maker sorts it into a stem and leaf plot, writes the key and keeps every empty row. Split stems, decimals, negatives and back-to-back stem and leaf plots included, with the median, quartiles and mode worked out from your values.

Data, one set or two
Name

Commas, spaces or one value per line. Paste a column from Excel or Google Sheets; a header row is skipped.

20 values read.

Title
Leaf unit
Lines per stem
On the plot
Colours
Download

The stem and leaf plot maker runs in your browser: no sign-in, no upload, free to download.

Math test scores (stem and leaf plot)Math test scoresSTEMLEAF41752458613367972458815893Key: 4 | 7 = 47scientificfigure.com
Want an anchor chart, a whiteboard version or a worksheet picture of this stem and leaf plot?
Stem and leaf plot summaryScores, n = 20
n
20
Minimum
41
Maximum
93
Range
52
Median
66.5
Mode
63
Q1
56.5
Q3
76.5
IQR
20
Mean
67.1
Outliers
None
Stems
4 to 9

How the median was read: n = 20 is even, so the median is the mean of leaf 10 and leaf 11, 6 | 6 and 6 | 7: (66 + 67) ÷ 2 = 66.5.

Quartiles are the medians of the lower and upper halves, the median itself left out when n is odd (the TI-84 and AP Statistics method). The summary uses your values as entered, even where a leaf was cut off.

Stem and leaf plot examples

Eight stem and leaf plot examples from the AI stem and leaf plot generator, the prompt that drew each one on its card: test scores with the median circled, a back-to-back stem and leaf plot, decimals, split stems, three-digit scores, an anchor chart, negative numbers and two-decimal times. Every leaf was computed from the values before the image was drawn.

Bowling scores

Three-digit data on two-digit stems, for a handout.

Books read this summer

Built to teach how a stem and leaf plot reads.

January low temperatures

Negative stems, with −0 kept, for a lesson.

Ruler-drop reaction times

Two decimals on a 0.01 leaf unit, lab-book style.

Math test scores

The median leaves circled, as a worksheet asks.

Back-to-back pulse rates

Two classes or two times sharing one middle column.

Seedling heights to 0.1 cm

Decimals on a 0.1 leaf unit, the key says so.

Split stems for ages

Two lines per stem when one row gets too long.

What is a stem and leaf plot?

A stem and leaf plot (a stemplot, or stem and leaf diagram) splits each number into a stem, its leading digits, and a leaf, its last digit, then lists the stems in a column with each value's leaf written beside its stem. The rows work like the bars of a sideways histogram, yet every original value can still be read back, which is why a stem and leaf plot is taught for small data sets of about 15 to 100 values.

About this stem and leaf plot maker

  • The stem and leaf plot maker reads a pasted list: commas, spaces, one value per line, or a column copied from Excel or Google Sheets with its header row.
  • The stem and leaf plot maker picks the leaf unit from your data (the finest place any value uses) or takes yours, from 0.0001 to 1,000, and writes the matching key, such as 4 | 7 = 47 or 3 | 8 = 3.8.
  • Every stem between the smallest and the largest is listed, empty ones included, so a gap in the data shows as an empty row of the stem and leaf plot.
  • Split stems (two or five lines each), negative rows down to −0, and back-to-back stem and leaf plots for two data sets on one stem column.
  • Below the stem and leaf plot: n, minimum, maximum, range, median, mode, quartiles, IQR, mean and outliers, computed exactly from the values, with the median's leaves named.
  • Download the stem and leaf plot as PNG at 300 dpi, SVG or PDF, print it, or copy it as text or as two columns for Excel; nothing leaves your browser.

How to make a stem and leaf plot

Four steps by hand, the way a worksheet expects them; the stem and leaf plot maker above does all four from a pasted list.

  1. 1

    Order the data and choose the leaf unit

    Sort the values from smallest to largest. The leaf is the last digit you keep (ones for test scores, tenths for 4.7 cm) and the stem is every digit in front of it: 47 → 4 | 7, 123 → 12 | 3.

  2. 2

    Write the stems in a column

    List every stem from the smallest to the largest, including those with no data, and draw a vertical line to their right. Skipping an empty one hides a gap in the stem and leaf plot.

  3. 3

    Add each leaf beside its stem

    Write each value's leaf on its row, in increasing order and evenly spaced, so the rows line up and a longer row means more values. One leaf per value, repeats included.

  4. 4

    Write the key

    Add a key such as Key: 4 | 7 = 47. Without it, 4 | 7 could mean 47, 4.7 or 470, so a stem and leaf plot with no key cannot be read.

How to read a stem and leaf plot

Reading a stem and leaf plot means putting each stem and leaf back together into the value it stands for. The test scores below are the stem and leaf plot maker's first example, with the median leaves circled.

Stem and leaf plot of 20 math test scores with stems 4 to 9, the median leaves 6 and 7 on stem 6 circled and the key 4 | 7 = 47STEMLEAF41752458613367972458815893Key: 4 | 7 = 47
Drawn by the stem and leaf plot maker from 20 test scores. The circled leaves are the 10th and 11th values.
  1. 1

    Start with the key. 4 | 7 = 47 says the stem is the tens digit and the leaf the ones digit, so the row 5 | 2 4 5 8 holds 52, 54, 55 and 58.

  2. 2

    Count leaves, not stems. There are 2 + 4 + 6 + 4 + 3 + 1 = 20 leaves, so 20 students took the test.

  3. 3

    Read the ends. The first leaf is the smallest value (41), the last is the largest (93), and the range is 93 − 41 = 52.

  4. 4

    Find the middle. With 20 values the median sits between leaf 10 and leaf 11, the circled 6 and 7 on stem 6: (66 + 67) ÷ 2 = 66.5.

  5. 5

    Look at the shape. Turn the stem and leaf plot a quarter turn and the rows become bars: these scores peak in the 60s and fall away on both sides, a roughly symmetric shape.

Parts of a stem and leaf plot

Six parts make up a stem and leaf plot. The last column says how the stem and leaf plot maker handles each one.

PartWhat it isIn the stem and leaf plot maker
StemEvery digit of a value except the last one kept: the tens digit for 47, the first two digits for 123, the whole number for 4.7.Listed once per row, from the smallest to the largest, empty ones included.
LeafThe last digit kept, always a single digit from 0 to 9. One leaf per value, so a repeated value gets repeated leaves.Placed on a grid so the leaves of every row line up; digits beyond the leaf unit are cut off or rounded, your choice.
DividerThe vertical line between the stem column and the leaves; a back-to-back stem and leaf plot has one on each side of it.Drawn for you; the headings Stem and Leaf, or the two set names, sit above it.
KeyOne worked example such as 4 | 7 = 47 that fixes the place value of both columns. A stem and leaf plot without a key is ambiguous.Written from a real leaf of your data, with the leaf unit under it when it is not 1.
Leaf unitThe place value of a leaf: 1 for whole numbers, 0.1 for one decimal place, 10 when the ones digit is dropped.Auto picks the finest place your data use; choose 0.0001 to 1,000 by hand.
Split stemA stem written on two or five lines, each holding part of the leaves, when one row would be too long.Lines per stem: 1, 2 (leaves 0–4 and 5–9) or 5 (pairs of digits).

Split stems and the expanded stem and leaf plot

When most values fall in a few rows, each row gets crowded and the stem and leaf plot shows little shape. Splitting the stems, also called an expanded or stretched stem and leaf plot, gives each stem two lines: the first for leaves 0 to 4, the second for leaves 5 to 9. With a lot of data in few rows, five lines each (leaves 0–1, 2–3, 4–5, 6–7, 8–9) spread it further.

  • Every line between the first and the last is kept, even an empty one, so a gap in the data still shows on a split stem and leaf plot.
  • The stem is written on both lines, so 3 | 1 2 2 4 and 3 | 5 7 8 9 are 31 to 34 and 35 to 39.
  • The key does not change: 2 | 1 is still 21; only the number of rows does.
Split stem and leaf plot of 22 ages at a yoga class with two lines per stem, stems 2 to 6, leaves 0 to 4 on the first line of each stem and 5 to 9 on the secondSTEMLEAF2134268931224357894134675255864Key: 2 | 4 = 24
The same 22 ages split into two lines each, drawn by the stem and leaf plot maker. Unsplit, the 30s row would hold eight leaves.

Back-to-back stem and leaf plot

A back-to-back stem and leaf plot compares two data sets on one shared column of stems: one set's leaves run to the right, the other set's to the left. It is the stem and leaf plot version of two histograms on one axis, and the usual exam question asks which set has the higher median or the greater spread.

Back-to-back stem and leaf plot of resting pulse rates before and after a running program, before leaves on the left of stems 5 to 9 and after leaves on the rightBeforeSTEMAfter55860134678258701247013467980025891Key: 2 | 6 | 8= 62 (Before) and 68 (After)
Resting pulse of 15 students before (left) and after (right) a six-week running program, drawn by the stem and leaf plot maker.
  • Read the left side from the middle outward. On the left the leaf nearest the middle column is the smallest, so 8 5 2 | 6 is 62, 65 and 68.
  • The key names both sides, here 2 | 6 | 8 = 62 (before) and 68 (after), because the left leaves reverse the reading direction.
  • Compare centre and spread: before the program the median pulse is 76 beats per minute, after it 67; the ranges are 29 and 25.
  • Turn on Set B in the stem and leaf plot maker to draw one; each set gets its own column in the summary.

Stem and leaf plots with decimals, three-digit numbers and negatives

The digits change, the rule does not: the leaf is always one digit, and the key says what it is worth. The table shows the leaf unit for common data and the key the stem and leaf plot maker writes.

DataLeaf unitStemLeafKey
Two-digit whole numbers (test scores)1Tens digitOnes digit4 | 7 = 47
Three-digit numbers (bowling scores)1First two digitsOnes digit11 | 8 = 118
Four-digit numbers (1,200 to 1,475)10First two digitsTens digit, ones cut off12 | 3 = 1230
One decimal place (heights in cm)0.1Whole numberTenths digit3 | 8 = 3.8
Two decimal places (times in seconds)0.01Tenths, as a whole numberHundredths digit1 | 9 = 0.19
Negative numbers (temperatures)1Tens digit with a minus sign, −0 for −1 to −9Ones digit−1 | 8 = −18

Stem and leaf plot with decimals

For data with one decimal place, the whole number is the stem and the tenths digit the leaf, so 4.5 is 4 | 5. No decimal point is written in the leaf column; the key 3 | 8 = 3.8 carries it. Mixed precision (4.2 and 4.25) needs the finer leaf unit, 0.01, or rounding to one place first.

Stem and leaf plot of 18 bean seedling heights in centimetres with a leaf unit of 0.1, stems 3 to 8 and the key 3 | 8 = 3.8STEMLEAF384255951336860247713984Key: 3 | 8 = 3.8Leaf unit 0.1
18 seedling heights on a leaf unit of 0.1 cm.

Stem and leaf plot with negative numbers

Negative values sit on negative rows, and −0 is a row of its own for −1 to −9, separate from 0 for 0 to 9. The rows still run from the smallest value at the top, so −1 comes before −0, and the leaves on a negative row are in numeric order: −18, −15, −14 is −1 | 8 5 4.

Stem and leaf plot of 14 January low temperatures with negative stems −1 and −0 above the 0 stem and the key 0 | 5 = 5STEMLEAF−185421−09764310025Key: 0 | 5 = 5
Two weeks of January lows in °C; −0 holds −9 to −1.

Stem and leaf plot worksheet questions

The questions a stem and leaf plot worksheet or exam asks, worked on one plot: the minutes 24 students spent on homework. Try each one, then open the answer; every answer is calculated from the plot's own values.

Stem and leaf plot of minutes 24 students spent on homework with stems 1 to 8, an empty stem 7 and one leaf on stem 8STEMLEAF12582133578302333684145752864785Key: 1 | 8 = 18
Minutes 24 students spent on homework last night, drawn by the stem and leaf plot maker. Key 1 | 8 = 18 minutes.
  1. 1.How many students are in the class?

    ›Show the answer

    24 students. Count the leaves, not the rows: 3 + 6 + 7 + 4 + 2 + 1 + 0 + 1 = 24.

  2. 2.What were the shortest and the longest times, and what is the range?

    ›Show the answer

    Shortest 12 minutes, longest 85 minutes, range 73 minutes. The first leaf, 1 | 2, is the smallest value and the last, 8 | 5, the largest: 85 − 12 = 73.

  3. 3.What is the median time?

    ›Show the answer

    33 minutes. With 24 values the median is the mean of leaf 12 and leaf 13, counting from the top: 3 | 3 and 3 | 3, so (33 + 33) ÷ 2 = 33.

  4. 4.What is the mode?

    ›Show the answer

    33 minutes. The leaf 3 | 3 appears 3 times, more than any other value.

  5. 5.Find the interquartile range.

    ›Show the answer

    20.5 minutes. Q1 is the median of the lower 12 values, 24; Q3 the median of the upper 12, 44.5; IQR = 44.5 − 24 = 20.5.

  6. 6.Is any time an outlier?

    ›Show the answer

    Yes, 85 minutes. The upper fence is Q3 + 1.5 × IQR = 44.5 + 30.75 = 75.25, and 85 is above it. The empty stem before it shows the gap.

  7. 7.How many students spent more than 40 minutes on homework?

    ›Show the answer

    8 students. These are the leaves after 40, read back as values: 41, 44, 45, 47, 52, 58, 64, 85.

  8. 8.Work out the mean time to one decimal place.

    ›Show the answer

    36.0 minutes. Add the 24 values to get 863, then divide: 863 ÷ 24 = 36.0.

Got your own worksheet? Paste its numbers into the stem and leaf plot maker and the summary under the plot gives the n, median, mode, quartiles and range to check against.

How to make a stem and leaf plot in Excel or Google Sheets

Excel and Google Sheets have no stem and leaf plot chart type, so a stem and leaf plot in a spreadsheet is built from formulas, or pasted in from the stem and leaf plot maker. For two-digit whole numbers in A2:A21:

  1. 1

    Sort the values: =SORT(A2:A21) in B2.

  2. 2

    Type the stems you need down column C, from the smallest to the largest (4, 5, 6 … 9), empty ones included.

  3. 3

    In D2, join the leaves of that row: =IFERROR(TEXTJOIN(" ", TRUE, MOD(FILTER(B$2:B$21, INT(B$2:B$21/10)=C2), 10)), ""), then fill down. IFERROR leaves an empty stem blank instead of an error.

  4. 4

    Add the key in a cell under the table, for example Key: 4 | 7 = 47.

TEXTJOIN needs Excel 2019 or later and FILTER needs Excel 2021 or Microsoft 365; Google Sheets has both. INT rounds negative numbers down, so this formula is for positive whole numbers only; decimals need the value multiplied by 10 first.

CStemDLeaves
241 7
352 4 5 8
461 3 3 6 7 9
572 4 5 8
681 5 8
793
Columns C and D as the formulas fill them for the 20 test scores in the stem and leaf plot maker's first example.

The shortcut: paste the column into the stem and leaf plot maker, then use Copy for Excel. It copies the finished stem and leaf plot as two columns, Stem and Leaf (three for back-to-back), plus the key, ready to paste into a sheet.

Stem and leaf plot vs dot plot vs histogram vs box plot

A stem and leaf plot keeps every value and shows the shape; a dot plot does the same on a number line; a histogram trades the values for bins and suits more data; a box plot shows only five numbers. For 15 to 100 values that a reader may need to look up, a stem and leaf plot is the one that answers both questions.

Stem and leaf plotDot plotHistogramBox plot
Each value isOne leaf digit beside its stemOne dot over the number lineCounted into a bin, no longer visibleSummarised by five numbers
Original values readableYes, with the keyYesNoOnly the min, quartiles and max
SuitsAbout 15 to 100 valuesUp to about 100 valuesAny size, best above 50Any size, several groups
Median found byCounting leaves to the middleCounting dotsEstimating inside a binThe line in the box
Two groupsBack-to-back on one stem columnRows on aligned number linesPanels on one axisBoxes side by side

Same numbers, other questions: stack them in the dot plot maker, bin a longer list in the histogram maker, or reduce it to five numbers in the box plot maker.

Stem and leaf plot FAQ

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

The key is one worked example, such as 4 | 7 = 47, that tells the reader what a stem and a leaf are worth. The same digits 4 | 7 could stand for 47, 4.7 or 470, so a stem and leaf plot is incomplete without one. The stem and leaf plot maker writes the key from a real leaf of your data and adds the leaf unit when it is not 1.

How do you find the median of a stem and leaf plot?+

Count the leaves to find n, then count from the first leaf to the middle one: leaf (n + 1) ÷ 2 when n is odd, or the mean of leaf n ÷ 2 and the next leaf when n is even. The leaves are already in order, so no sorting is needed. In the stem and leaf plot maker, Circle the median leaf marks them and the summary shows the arithmetic.

How many stems should a stem and leaf plot have?+

Usually between about 5 and 20. Fewer and every row is crowded, so split each row into two or five lines; more and most rows hold one leaf, so use a larger leaf unit. The stem and leaf plot maker's Auto leaf unit keeps every digit unless that would need more than 20 rows, then moves up one place.

Can a stem and leaf plot have decimals or negative numbers?+

Yes to both. With decimals the leaf is the last decimal digit kept and the key carries the decimal point (3 | 8 = 3.8). Negative values sit on negative stems above the positive ones, with −0 for −1 to −9; the stem and leaf plot maker lists a negative row's leaves in numeric order, as R and Minitab do, so −2 | 5 3 1 reads −25, −23, −21.

How do you make a stem and leaf plot with three-digit numbers?+

Use the first two digits as the stem and the last digit as the leaf, so 123 is 12 | 3 and the key reads 12 | 3 = 123. If that gives more than about 20 rows, a leaf unit of 10 is tidier: the hundreds digit leads, the leaf is the tens digit and the ones digit is cut off, which the key states.

How do you show outliers on a stem and leaf plot?+

Find the fences, Q1 − 1.5 × IQR and Q3 + 1.5 × IQR, and mark any leaf beyond them. On the plot an outlier often sits after one or more empty stems. The stem and leaf plot maker underlines outlier leaves in red when Mark outliers is on and lists them in the summary.

Is a stem and leaf plot the same as a stemplot or a stem and leaf diagram?+

Yes. Stem and leaf plot, stemplot, stem and leaf diagram (the usual name in UK GCSE papers) and stem and leaf display (John Tukey's 1977 term) all name the same figure. An ordered stem and leaf plot has its leaves sorted on each row, which is the form this stem and leaf plot maker draws.

Can I use the stem and leaf plot maker as a stem and leaf plot calculator?+

Yes: the summary under the plot is the calculator part. It gives n, minimum, maximum, range, median, mode, Q1, Q3, IQR, mean and outliers for each data set, computed exactly from the values you typed, and names the leaves the median was read from so the working can be copied into an answer.

Sources

Draw your data in the stem and leaf plot maker

Paste a list and get the stem and leaf plot, its key and the summary in your browser, or ask the AI stem and leaf plot generator for an anchor chart, a whiteboard or a notebook version.

Back to the stem and leaf plot maker