Stem-and-Leaf Plot Calculator

Generate stem-and-leaf plots with frequency counts, back-to-back comparison mode, key interpretation, and summary statistics. Auto-detects stem unit.

Comma or space separated
n (Dataset 1)
20
Range: 62–95
Mean
80.75
Dataset 1 arithmetic mean
Median
82.00
Dataset 1 middle value
Std. Dev.
9.14
Dataset 1 population SD
Stem Unit
10
Stems represent multiples of 10
Stem Count
4
6|_ to 9|_

Stem-and-Leaf Plot

6|2 8 9(3)
7|1 2 4 6 7 9(6)
8|1 3 4 5 6 8(6)
9|0 1 1 3 5(5)
Key: 6|2 = 62

Stem Frequency Summary

StemRangeFreq. (D1)Bar
660693
770796
880896
990995
Planning notes, formulas, and examples

About the Stem-and-Leaf Plot Calculator

The stem-and-leaf plot calculator builds stemplots from raw data, preserving the original values while still showing the overall distribution shape.

Unlike a histogram, which groups values into bins, a stem-and-leaf plot keeps each observation visible. That makes it useful for teaching, small-to-medium datasets, and quick exploratory analysis where you want both the shape and the exact values in the same display.

This page supports both single-dataset stemplots and back-to-back comparisons, with automatic stem-unit detection and a frequency summary for each stem.

When This Page Helps

Stem-and-leaf plots are still one of the clearest ways to examine small and medium datasets without throwing away the original values. They make medians, gaps, clusters, and repeated values easy to spot at a glance.

The back-to-back layout is especially helpful when you want to compare two groups on a shared scale without reducing them to summary statistics alone.

How to Use the Inputs

  1. Enter numeric data separated by commas or spaces.
  2. Choose the stem unit (auto-detect works for most cases).
  3. For comparing two groups, enable "Back-to-back" mode and enter a second dataset.
  4. Read the plot: each stem represents a range (e.g., stem 7 = 70–79 for unit=10). Leaves are the last digit.
  5. Check the key at the bottom of the plot to confirm your reading.
  6. Review the stem frequency summary table for exact counts per row.
  7. In back-to-back mode, Dataset 1 leaves extend left and Dataset 2 extends right from the center stem.
Formula used
For each value x: stem = floor(x / unit), leaf = round((x/unit − stem) × unit). Stem unit is auto-detected from the data range: range ≤ 10 → unit=1, ≤ 100 → unit=10, ≤ 1000 → unit=100.

Example Calculation

Result: Stem-and-leaf plot with stems 6–9, each showing sorted leaves

6|2 8 9 → values 62, 68, 69. 7|1 2 4 6 7 9 → values 71, 72, 74, 76, 77, 79. 8|1 3 4 5 6 8 → values 81, 83, 84, 85, 86, 88. 9|0 1 1 3 5 → values 90, 91, 91, 93, 95. Leaves are always read in order. The 7 stem has the most values (6), showing the concentration in the 70s.

Tips & Best Practices

  • Stem-and-leaf plots work best with 15–150 data points. Under 15, just list the values. Over 150, use a histogram.
  • The "shape" of the plot mirrors a horizontal histogram — look for symmetry, skewness, gaps, and clusters.
  • Back-to-back plots are excellent for comparing exam scores between two classes, or before/after measurements.
  • If leaves are crowded (too many on one stem), try splitting stems: e.g., stem 7* for 70–74, stem 7. for 75–79.
  • The key line is essential for interpretation — it tells you the value corresponding to a stem-leaf pair.
  • Stem-and-leaf plots were invented by John Tukey in 1977 as part of Exploratory Data Analysis (EDA).

History of the Stem-and-Leaf Plot

John Tukey introduced the stem-and-leaf display in his 1977 book "Exploratory Data Analysis." It was designed as a quick, hand-drawable alternative to histograms that preserves the original data values. Despite the rise of computer graphics, stemplots remain a standard topic in introductory statistics courses because they teach students to think about distribution shape while staying close to the data.

Stem-and-Leaf Plots vs Dot Plots

Both stemplots and dot plots show individual values. Dot plots place a dot for each value on a number line; stemplots group values by leading digits. For small datasets (< 20 values), dot plots are often clearer. For moderate datasets (20–100), stemplots are more compact. Both are "EDA tools" in Tukey's framework, designed for quick understanding rather than formal presentation.

Advanced Stemplot Techniques

Beyond basic and split stemplots, there are: (1) rounded stemplots where values are rounded to smooth noise, (2) truncated stemplots where leaves are truncated (not rounded) for simplicity, (3) five-stem plots where each stem is split into five parts (leaves 0–1, 2–3, 4–5, 6–7, 8–9) for fine-grained shape analysis. These variations offer different trade-offs between resolution and readability.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • A stem-and-leaf plot (stemplot) is a way to display quantitative data that shows individual values while revealing the distribution shape. Each number is split into a "stem" (leading digits) and a "leaf" (trailing digit). For example, 85 becomes stem=8, leaf=5. Values with the same stem are grouped on the same row, with leaves sorted in order.