Stem-and-Leaf Plot Maker
Paste your data and the calculator sorts it into a stem-and-leaf plot โ every value kept, in order. Split the stems or compare two groups back-to-back.
Calculation
Stem-and-leaf plot
Stems are the tens, leaves are the units. Read each row left to right โ the leaves are in order.
A stem-and-leaf plot is a sideways histogram that keeps every value. Each number is split into a stem and a leaf, the stems run down the page in order, and the leaves sit beside them — so you can see the shape of the data and read every value back off the plot. Paste your data below and the calculator draws the sorted plot, with split stems, a back-to-back comparison and a five-number summary.
How to use the stem-and-leaf plot maker
- Paste your numbers into the data box, separated by commas, spaces or line breaks.
- Leave the leaf unit on Auto — the calculator picks 0.1 when your data has decimals, otherwise 1.
- Turn on split stems if one stem holds too many leaves to read at a glance.
- For a back-to-back comparison, choose Back-to-back and put one group on each line.
- Read the key first: it tells you what one stem and one leaf mean, then read the plot row by row.
Try it now: the worked example below uses 20 values from 12 to 33. The plot has three stems — 1, 2 and 3 — and the key reads 1 | 2 = 12. The median is 22.5 and the five-number summary is 12, 17.5, 22.5, 27.5 and 33.
What is a stem-and-leaf plot?
Take the number 23. Its stem is 2 (the tens) and its leaf is 3 (the units). Put every value's leaf beside its stem, sort the leaves, and you have a stem-and-leaf plot. Turn the page on its side and the leaves form bars — that is why the plot is often called a sideways histogram. The difference is that a histogram bins values and throws the individual numbers away, while a stem-and-leaf plot keeps every value visible.
That makes it the right tool when your data set is small enough to show in full — a class of test scores, a batch of measurements, a list of times — and you want the shape and the values together. For larger data, a histogram is the better picture, and a box plot is the better summary: the box shows the same five numbers this page reports, without the individual values.
How do I read the key?
The key is the one line you must read before the plot. It takes the first stem and its first leaf and turns them back into a value: 1 | 2 = 12 means stem 1, leaf 2, value 12. The key also tells you the leaf unit. With a leaf unit of 1, the stem is the tens and the leaf is the units. With a leaf unit of 0.1, the stem is the whole number and the leaf is the first decimal place, so 12 | 5 = 12.5. With a leaf unit of 10, the stem is the hundreds and the leaf is the tens, so 1 | 2 = 120.
Always check the unit before you read a value off the plot — a leaf of 5 means 5 with unit 1, 0.5 with unit 0.1 and 50 with unit 10. The calculator shows the unit in the results grid and in the key, so the plot never leaves you guessing.
What is a split stem?
Sometimes one stem holds so many leaves that the shape is hard to see. In the worked example the stem 2 holds ten leaves, 0 to 9. Splitting that stem in two spreads them out: the 2* row holds leaves 0 to 4, and the 2. row holds leaves 5 to 9. The plot below is the same 20 values with split stems switched on.
| Stem | Leaves | Values |
|---|---|---|
| 1* | 2 4 | 12, 14 |
| 1. | 5 6 7 8 9 | 15, 16, 17, 18, 19 |
| 2* | 0 1 2 3 4 | 20, 21, 22, 23, 24 |
| 2. | 5 6 7 8 9 | 25, 26, 27, 28, 29 |
| 3* | 0 1 3 | 30, 31, 33 |
Each split row is still one stem, so the key does not change: 1 | 2 = 12 on the first row, and 2 | 5 = 25 on the fourth. Use split stems when a stem holds eight or more leaves, or when you want to see a gap inside a stem that the unsplit plot hides. Turn them off when the stems are short — five half-empty rows are harder to read than three full ones.
The leaf-unit trap
The leaf unit is the one choice that can quietly change every value you read. Take 12.5. With a leaf unit of 1, the calculator rounds it to 13 and plots it as 1 | 3, because a unit leaf can only show whole numbers. With a leaf unit of 0.1, it plots as 12 | 5, which is 12.5 exactly. Same number, two different rows.
Check the unit before you plot decimals. If your data has decimals, use a leaf unit of 0.1 — or leave it on Auto, which does that for you. Plotting 12.5 with unit 1 rounds it away, and a reader of the plot cannot tell that 13 was really 12.5.
Negative values work the same way, with one quirk to know about. The stem is the floor of the value divided by ten, so −5 lands on stem −1 with leaf 5, because −5 is 1 × (−10) plus 5. The key spells it out: −1 | 2 = −8. You can read the minus sign in the stem, never in the leaf.
Reading quartiles off the plot
Because the leaves are in order, the plot is already a sorted list of the data. The median is the middle value (or the average of the two middle values) — count in from the ends, or read it off the five-number summary below the calculator. For the worked example the five-number summary is min 12, Q1 17.5, median 22.5, Q3 27.5, max 33, so the interquartile range is 27.5 − 17.5 = 10.
The same numbers are the skeleton of a box plot: the box runs from Q1 to Q3, the line inside it is the median, and the whiskers reach the farthest points inside the fences. If you can read a stem-and-leaf plot, you can read a box plot — the box is just this plot with the values hidden. For the quartiles themselves, the quartile calculator shows the Tukey and Excel methods side by side, and they give different boxes from the same data.
Worked example 1 — the shared data set
Data: 12, 15, 14, 18, 16, 20, 22, 19, 17, 21, 23, 25, 24, 26, 28, 27, 29, 30, 31, 33.
Sorted, the values run from 12 to 33, and the leaf unit is 1. The plot is:
1 | 2 4 5 6 7 8 9
2 | 0 1 2 3 4 5 6 7 8 9
3 | 0 1 3
Key: 1 | 2 = 12. Five-number summary: 12, 17.5, 22.5, 27.5, 33. The shape is flat — the three stems hold 7, 10 and 3 leaves, and the values are spread evenly from 12 to 33, so there is no skew and no cluster to point at. The data set is deliberately symmetric: the values pair up to sum to 45, which is why the mean and the median are both 22.5.
Worked example 2 — split stems and back-to-back
Split stems on the same data give 1* | 2 4, 1. | 5 6 7 8 9, 2* | 0 1 2 3 4, 2. | 5 6 7 8 9 and 3* | 0 1 3. The ten-leaf stem 2 is now two rows of five, and the shape is easier to read.
Split the data into two groups of ten — the first ten values against the last ten — and the back-to-back plot puts them on either side of the same stems:
9 8 7 6 5 4 2 | 1 |
2 1 0 | 2 | 3 4 5 6 7 8 9
| 3 | 0 1 3
Left group (first ten values): median 17.5, Q1 15, Q3 20. Right group (last ten values): median 27.5, Q1 25, Q3 30. The two groups sit in different rows — the first group's leaves stop at 2 and the second group's start at 3 — so the shift between them is visible before any number is read.
Worked example 3 — decimals and negatives
Decimals: 12.5, 12.8, 13.1, 13.4, 14.2, 15.0. With the leaf unit on Auto the calculator picks 0.1, and the plot is 12 | 5 8, 13 | 1 4, 14 | 2, 15 | 0. The key is 12 | 5 = 12.5. Switch the unit to 1 and the same values round to 13, 13, 13, 13, 14 and 15 — the plot keeps the count but loses the decimals.
Negatives: −8, −5, −2, 0, 3, 7, 12. The plot is −1 | 2 5 8, 0 | 0 3 7, 1 | 2, and the key is −1 | 2 = −8. The minus sign lives in the stem, the leaves stay positive, and the ordering still runs from the smallest value at the top to the largest at the bottom.
Frequently asked questions
What is a split stem?
A split stem divides one stem into two rows so a crowded stem is easier to read. The * row holds leaves 0 to 4 and the . row holds leaves 5 to 9 — so stem 2 becomes 2* | 0 1 2 3 4 and 2. | 5 6 7 8 9. The key does not change: 1 | 2 is still 12 on either row.
How do I read the key?
The key turns one stem and one leaf back into a value: 1 | 2 = 12 means stem 1, leaf 2, value 12. It also tells you the leaf unit — with unit 1 the stem is the tens and the leaf is the units; with unit 0.1 the stem is the whole number and the leaf is the first decimal place, so 12 | 5 = 12.5. Always check the unit before reading a value off the plot.
All examples on this page were recomputed with Python (scipy.stats), last updated 19 November 2026.
See all 91 free statistics tools.
Next steps
๐
โ Live
Box Plot Maker
The box that holds the same five numbers โ Tukey or Excel quartiles, fences and outliers.
Calculator
Try Calculator โ
๐งฎ
โ Live
Quartile Calculator
Find quartiles and the IQR โ the numbers behind the box edges.
Calculator
Try Calculator โ
๐
โ Live
Histogram Maker
See the shape as bars โ bins, counts and a normal overlay.
Calculator
Try Calculator โ
More Tools to Explore
Keep going with the calculators that pair with the stem-and-leaf plot—the box plot, quartiles and the histogram.
Box Plot Maker
Draw a box plot from your data—Tukey or Excel quartiles, fences and outliers.
Quartile Calculator
Find quartiles and the IQR—the numbers behind the box edges.
Histogram Maker
Make a histogram from your data—bin rules, a frequency table and a normal overlay.
Standard Deviation Calculator
Work out the standard deviation of your data—sample or population, with steps.
Statistics Calculator
The full summary of your data—mean, median, mode, SD and quartiles.
Z-Score Calculator
Turn any raw score into a z-score and read off its percentile in seconds.
Explore All Tools→
Browse all 91 free statistics tools—every calculator on this site in one place.