Stem-and-leaf plot maker: single or back-to-back

Make a stem-and-leaf plot from a list of numbers: stems and leaves are chosen for you, two data sets give a back-to-back plot. Key, table for Word, PNG and SVG.

Enter the numbers in a column, one per cell, or paste them as a list. A second column is a second data set: you get a back-to-back plot with shared stems.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Image 1200 × 750 pixels

Stems and leaves

StemLeaves
55 8
62 4 6 8 9
70 1 3 4 5 7 9
81 3 5 8
90 2

Style

px
px

How to use

Enter the numbers in a table column, one per cell, or paste them as a list from Excel, Google Sheets or text, separated by spaces or line breaks. You can also open a CSV file.

The plot appears right away. Left of the line are the stems (all digits but the last), right of it are the leaves (the last digit), in increasing order. Stems run without gaps: an empty row shows there are no values in that range. Below the plot is a key such as “7 | 4 = 74”, and further down the same plot as a table that you can copy into Word or Excel.

To compare two data sets — say, two classes — enter the second one in the next column. You get a back-to-back plot: stems in the middle, leaves of the first data set on the left (read outward from the line), leaves of the second on the right. Column headers label the two sides.

How stems and leaves are chosen

The leaf is the smallest place value in the data: ones for whole numbers, tenths for numbers with one decimal place. If that gives more than 20 stems, the leaf moves up to tens, hundreds and so on. The lower digits are then dropped without rounding, as textbooks do, and a note appears below the plot.

Negative numbers get their own stems with a minus sign, including “−0” for numbers from −9 to −1. If a row has more leaves than fit across, the end of the row is replaced with an ellipsis; all values of the row show on hover and in the table.

Example

Test scores of 20 students: 62, 71, 55, 88, 74, 69, 81, 77, 58, 92, 66, 73, 85, 70, 64, 79, 90, 68, 75, 83. Stems are tens, leaves are ones:

You can see at once that most scores are in the 70s. The lowest is 55, the highest is 92, so the range is 37. The 10th and 11th values in order are 73 and 74, so the median is 73.5.

FAQ

Why use a stem-and-leaf plot if there’s a histogram? It shows the shape of the distribution like a histogram with bins of 10, but keeps the actual numbers, so you can read off the median, minimum and maximum. For large data sets a histogram is more convenient.

Can I split stems into two rows (0–4 and 5–9)? Not yet: stems always go up by one place value. A histogram with a bin width of 5 shows the distribution in more detail.

How do I find the quartiles? The box plot maker calculates them — your data carries over. The dot plot maker shows how often each value occurs.

Where is my data saved? The plot is drawn in your browser. The data and settings are saved in the page address after the # sign. That part of the address isn’t sent to the server, but you can bookmark the link or send it to someone.