Stem-and-Leaf Plot Calculator

Paste a data set to build a stem-and-leaf plot that keeps every value visible, with an automatic or chosen leaf unit, optional split stems and a key.

Key1 | 2 = 12

Numbers separated by commas, spaces or new lines (up to 10,000).

Key

1 | 2 = 12

  • Leaf unit1
  • Stem rows5
  • Count (n)15
  • Minimum12
  • Median33
  • Maximum56
Stem-and-leaf plot (key: 1 | 2 = 12)
StemLeaves
12 5
21 4 4 7
31 3 8 8 8
42 5
51 6

How this was calculated

Leaf unit u = 1: each value is divided by 1 and rounded to a whole number.

Stem = all digits except the last (value ÷ 10, rounded down); leaf = the last digit. Example: 12 → 1 | 2 = 12.

Stems with no data are kept as empty rows so gaps in the distribution stay visible.

How a stem-and-leaf plot is built

Pick a leaf unit u, such as 1 or 0.1. Divide each value by u and round to a whole number. The last digit is the leaf and the remaining digits are the stem. With u = 1, the value 47 has stem 4 and leaf 7, written 4 | 7.

Stems are listed in order down the left side, including empty stems, and each value's leaf is written to the right of its stem in increasing order. The result shows the shape of the distribution like a sideways histogram, but every original value can still be read back.

Worked example

The data 12, 15, 21, 24, 24, 27, 31, 33, 38, 38, 38, 42, 45, 51, 56 has whole-number values, so the leaf unit is 1. The plot has five stems: 1 | 2 5, 2 | 1 4 4 7, 3 | 1 3 8 8 8, 4 | 2 5 and 5 | 1 6.

The longest row is the 30s, and the median (the 8th of 15 values) is 33. The key 1 | 2 = 12 tells a reader how to decode each row.

Leaf units, split stems and negatives

Automatic mode keeps the decimal places in your data, then widens the leaf unit until there are no more than 30 stem rows. When a value has more precision than the leaf unit, it is rounded to the nearest unit and the result says so.

Split stems put leaves 0–4 and 5–9 on separate rows, which spreads out data that crowds onto a few stems. Negative values get stems such as −1 and −0, ordered from the most negative, so −12 appears as −1 | 2.

How to use the Stem-and-Leaf Plot Calculator

Paste your data and choose how the plot is laid out.

  1. Paste the data

    Enter numbers separated by commas, spaces or new lines.

  2. Choose a leaf unit

    Leave it on automatic or pick 0.001 to 1,000.

  3. Split stems if needed

    Turn on split stems to separate leaves 0–4 and 5–9.

  4. Read the plot

    Use the key under the plot to decode each row.

References

Frequently asked questions

What is the leaf unit?

It is the place value of the leaf digit. With a leaf unit of 0.1, the row 2 | 3 7 means 2.3 and 2.7; with a leaf unit of 10, it means 230 and 270.

Should I keep empty stems?

Yes. Empty rows show gaps in the data, which is part of what the plot is for. This calculator always includes them between the smallest and largest stems.

When should I split stems?

Split stems when most values fall on only a few stems, so the plot looks like two or three long rows. Splitting doubles the number of rows and reveals more of the shape.

Last updated . Results are estimates for informational purposes only.