Stem-and-Leaf Plot Calculator
Paste your data set and get a formatted stem-and-leaf plot, the five-number summary (min, Q1, median, Q3, max) and the full data range.
Number of valid data points in the set
1 | 2 4 8 2 | 1 5 7 3 | 3 6 7 4 | 1 3 8 5 | 2 5 9
How does this calculator work?
A stem-and-leaf plot splits each number into a stem (leading digits) and a leaf (next digit), then lists all leaves for each stem in a table. Paste your numbers to instantly see the plot, plus min, Q1, median, Q3 and max. Leaf unit is auto-detected from the data scale.
Formula
How this is calculated
A stem-and-leaf plot preserves the actual data values while organising them by magnitude. Each number is split into a stem (the leading significant digit or digits) and a leaf (the next digit). For data in the tens and units range the stem is the tens digit and the leaf is the units digit; for three-digit data the stem is the hundreds digit and the leaf is the tens digit, and so on. The calculator auto-detects the appropriate split based on the maximum absolute value in your data set.
Sorted values within each stem row let you read the distribution shape directly: a longer row means more values in that range. The plot lets you spot clusters, gaps, and skewness at a glance — without losing a single data point, unlike a histogram. Back-to-back stem-and-leaf plots (comparing two groups) share a central stem column; this calculator shows a single-group plot.
The five-number summary (minimum, Q1, median, Q3, maximum) uses the exclusive quartile method (overall median excluded from both halves when n is odd). Non-numeric tokens are silently ignored; at least two numeric values are required.
Frequently asked questions
Each row shows one stem value on the left of the vertical bar and all leaves for that stem on the right. To recover a data value, concatenate stem and leaf: stem 4 with leaf 7 represents 47 (when leaf unit is 1). Reading leaves left to right in each row gives the values in ascending order.
The leaf unit is the place value of the rightmost digit shown. Leaf unit = 1 means leaves are ones digits (data in the range 0–99 or similar). Leaf unit = 10 means leaves are tens digits (data in hundreds range). The calculator picks the leaf unit automatically based on the largest value in your data set.
Decimals are parsed and the leaf unit adjusts accordingly for integer data. For data that is inherently decimal (e.g. 1.2, 1.5, 2.3), the stem-and-leaf split works with the integer part as the stem and the first decimal as the leaf — the auto-detection handles this when all values are below 10.
Also known as
TG we-Calculate Editorial Team. (2026). Stem-and-Leaf Plot Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/stem-and-leaf-plot-calculator
TG we-Calculate Editorial Team. "Stem-and-Leaf Plot Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/stem-and-leaf-plot-calculator.
TG we-Calculate Editorial Team, "Stem-and-Leaf Plot Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/stem-and-leaf-plot-calculator
@misc{wecalculate_stem_and_leaf_plot_calculator, title = {Stem-and-Leaf Plot Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/stem-and-leaf-plot-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
