A stem and leaf plot calculator turns a list of numbers into a stem and leaf display: the last digit of each number is a leaf, and the digits in front of it form the stem. It keeps the original data, sorts it and shows the shape of the distribution. It also draws a dot plot.
How to use the stem and leaf plot calculator
- Paste your numbers.
- Choose a stem and leaf plot or a dot plot, and the leaf unit if your numbers have decimals or are large.
- Press Make the plot.
How the plot is built
The Wikipedia article on stem-and-leaf displays says the observations must first be sorted in ascending order, and that typically the leaf contains the last digit of the number and the stem contains all of the other digits.[1] The display has two columns separated by a vertical line, with the stems on the left, each stem listed only once and no stems skipped, even if some have no leaves.[1] The leaves increase from left to right.[1] Repeated values are repeated: the numbers 72, 72, 75, 76 and 77 give 7 | 2 2 5 6 7.[1]
A worked example
The page's example data are 44, 46, 47, 49, 63, 64, 66, 68, 68, 72, 72, 75, 76, 81, 84, 88 and 106.[1] The display has the stems 4 to 10: 4 | 4 6 7 9, then 5 with no leaves, 6 | 3 4 6 8 8, 7 | 2 2 5 6, 8 | 1 4 8, 9 with no leaves and 10 | 6. The empty stems 5 and 9 are kept because the page says that no stems are skipped.[1] The page's own layout of this example was garbled in the text we read, so this layout is our own working from its rules and its data. The key tells the reader how to read a leaf: 6 | 3 means 63.[1]
Decimals, negatives and large numbers
For numbers with decimals, the page says non-integers are rounded, and for negative numbers a negative sign is placed in front of the stem.[1] For large numbers, the values may be rounded to a place value such as the hundreds, with the digits to the left forming the stem.[1] The calculator offers leaf units of 0.1, 1, 10 and 100, rounds each value to the leaf unit and prints a key. For 3.4, 4.43 and 5.5 with a leaf unit of 0.1, it shows 3 | 4, 4 | 4 and 5 | 5. For negative values such as −24, −12 and 15, it shows the stems −2, −1, 0 and 1. The page shows only the negative sign in front of the stem, so the stem of −3 is written −0 here, which is our own convention.
Why use a stem and leaf plot
The page says that, unlike histograms, stem-and-leaf displays retain the original data to at least two significant digits and put the data in order, which helps to show the shape, the relative density, outliers and the mode.[1] It says they are only useful for moderately sized data sets, around 15 to 150 data points. For small sets a dot plot may be better, and for large ones a box plot or histogram.[1] The calculator accepts up to 500 values, but the plot becomes cluttered long before that.
The dot plot
The article on dot plots describes a dot chart as a statistical chart of data points plotted on a fairly simple scale, typically using filled-in circles, used for continuous quantitative univariate data.[2] It says dot plots suit small to moderate data sets and highlight clusters, gaps and outliers, and that with more than 20 to 30 data points they can become too cluttered.[2] The page does not say how repeated values are stacked, so our dot plot shows each distinct value with one dot per occurrence and the count, which is our own layout: for 1, 2, 2, 3, 3, 3 it shows 1: ●, 2: ●● and 3: ●●●.
Reading the shape
Turn the plot on its side in your mind: the leaves form bars like a histogram. A long run of leaves on one stem marks the mode, a gap marks an empty class, and a lone leaf far from the rest suggests an outlier. In the example above, the value 106 stands apart from the others, so it may be an outlier worth checking.
History
The page traces stem-and-leaf displays to Bowley's work in the early 1900s and says they became popular after Tukey's 1977 book, partly because they could be made with typewriter type.[1]
Comparing two groups
To compare two groups, make a plot for each and put them side by side. If the plots show the same range and a similar shape, the groups are alike, and if one is shifted to higher stems, that group has higher values. A back-to-back display, with one group on each side of the stems, is a common way to do this by hand. The pages we read do not show a back-to-back example, so this is general practice and not from the pages.
Rounding and the leaf unit
The leaf unit decides how much detail you keep. With a leaf unit of 1, the number 63.6 is rounded to 64. With a leaf unit of 0.1, it keeps its decimal digit and is shown as 63 | 6. Pick the unit so that the stems number between about five and fifteen, which usually gives a clear picture of the shape.
Common mistakes
- Skipping empty stems. Keep them so the spacing is honest.
- Forgetting the key. Without it, readers cannot tell the unit.
- Using it for very large sets. Use a histogram instead.
What next
Use this often? Add Stem and Lea to your Home screen.
Frequently asked questions
What is a stem and leaf plot calculator?
A tool that sorts your numbers and shows them as stems, the leading digits, and leaves, the last digits, so that the data keep their original values.
How do I make a stem and leaf plot?
Sort the data, split each number into a stem, all digits but the last, and a leaf, the last digit, list each stem once and write its leaves in order.
What is the key in a stem and leaf plot?
A note that tells you how to read a leaf, such as 6 | 3 means 63.
How many values suit a stem and leaf plot?
Around 15 to 150. For small sets a dot plot may be better, and for large sets a box plot or histogram.
What is a dot plot?
A chart that plots each data point as a dot on a scale, used to show clusters, gaps and outliers in small data sets.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.