Box Plot Maker

Box Plot Maker

Draw a box plot from your data โ€” one group per line โ€” with Tukey or Excel quartiles, 1.5ร—IQR outlier fences and a five-number summary for every group.

Numbers separated by commas, spaces or line breaks. Each line is one group; use two or more lines to compare groups side by side.
MEDIAN ยท GROUP 1
22.5

Min
Q1
Median
Q3
Max
IQR
Lower fence
Upper fence

CALCULATION

    Box plot

    Five-number summary by group

    A box plot maker draws a box plot from your data โ€” one group per line โ€” with the five-number summary, 1.5×IQR outlier fences and a choice of Tukey or Excel quartiles. Paste your values, pick a quartile method, and it draws the box, lists the fences and flags the outliers.

    How to use the box plot maker

    Paste one group per line, pick Tukey or Excel quartiles, and the calculator draws the box plot and works out the five-number summary for every group.

    1. Paste your data: one group per line, values separated by commas, spaces or line breaks. A single column of values is one group.
    2. Choose a quartile method: Tukey hinges (the median of each half, excluding the median itself) or Excel QUARTILE.INC (the position (n − 1) × p + 1, interpolated).
    3. Click Draw box plot โ€” the calculator updates as you type, so you can also just watch the tiles change.
    4. Read the headline median for the first group, then the results grid for the five-number summary, the IQR and the two fences. The calculation ledger shows every step.
    5. Use the chart to compare groups side by side, and download it as a PNG or an SVG, or copy a link that re-opens the same data and method.

    Try it now: the 20 values in the worked example give, by Tukey, a five-number summary of 12, 17.5, 22.5, 27.5 and 33, an IQR of 10 and fences at 2.5 and 42.5 โ€” with no outliers.

    When should you use a box plot?

    Use a box plot when you want to see a distribution at a glance โ€” its centre, its spread and its outliers โ€” or to compare two or more groups without plotting every value. It is the right picture when:

    • You want to compare the centre and spread of two or more groups side by side โ€” the boxes sit next to each other and the medians are easy to compare.
    • You need to spot outliers: values outside the 1.5×IQR fences are plotted as dots, so they stand out at once.
    • Your data are skewed: the median line sits off-centre in the box and one whisker stretches further than the other, which a mean and SD alone would hide. A histogram shows the same skew in more detail.
    • You have too many values to list but want more than a single number โ€” the box holds the middle 50% and the whiskers show the range that is not outlying.
    • You are checking spread before a test: the box plot is the first picture for an ANOVA, which assumes similar spreads across groups.

    A box plot hides the shape of the data inside the box โ€” it cannot show two peaks, for example. If you need the shape, draw a histogram as well. And if you need the quartiles as numbers, a quartile calculator gives them with the IQR.

    Tukey vs Excel: why do the boxes differ?

    There is no single way to define a quartile, so the same data can give two different boxes. Tukey's hinges take the median of each half of the ordered data (the median itself is excluded when n is odd). Excel's QUARTILE.INC puts Q1 at position (n − 1) × 0.25 + 1 and Q3 at (n − 1) × 0.75 + 1, interpolating between the two nearest values.

    MethodQ1MedianQ3IQRFences
    Tukey hinges17.522.527.5102.5 to 42.5
    Excel QUARTILE.INC17.7522.527.259.53.5 to 41.5

    On the 20 worked-example values, Q1 differs by 0.25 and Q3 by 0.25, so the boxes shift even though the median is the same either way. Neither method is wrong โ€” but always say which one you used, or two people will report different quartiles from the same data and both be right.

    Trap: the median is the same under both methods, so a matching median does not mean matching quartiles. Check Q1 and Q3, not just the middle line, when you compare box plots from different tools.

    What are the whiskers?

    The whiskers are the lines that stick out of the top and bottom of the box โ€” and they do not reach the minimum and maximum. Each whisker stops at the farthest data point that is still inside the fences: the lower fence Q1 − 1.5 × IQR and the upper fence Q3 + 1.5 × IQR. Points outside the fences are plotted as individual dots.

    On the worked example, the fences are 2.5 and 42.5 and every value lies inside them, so the whiskers reach the minimum (12) and the maximum (33) and there are no dots. With a value of 50 added, the upper fence is still 42.5, so 50 would be plotted as a dot and the upper whisker would stop at 33.

    Worked examples

    Example 1 — the 20 shared values (Tukey)

    The 20 values 12, 15, 14, 18, 16, 20, 22, 19, 17, 21, 23, 25, 24, 26, 28, 27, 29, 30, 31, 33, sorted, are 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33. The median is the mean of the 10th and 11th values, (22 + 23) / 2 = 22.5. The lower half (the first 10 values) has median (17 + 18) / 2 = 17.5, so Q1 = 17.5; the upper half has median (27 + 28) / 2 = 27.5, so Q3 = 27.5. The IQR is 27.5 − 17.5 = 10. The fences are 17.5 − 15 = 2.5 and 27.5 + 15 = 42.5. Every value lies inside them, so there are no outliers and the whiskers reach 12 and 33. By Excel, Q1 = 17.75, Q3 = 27.25 and the IQR is 9.5 โ€” the same median, a slightly narrower box.

    Example 2 — two groups side by side

    Split the same 20 values into two groups of 10. Group X is 12, 15, 14, 18, 16, 20, 22, 19, 17, 21 (median 17.5, Q1 15, Q3 20) and group Y is 23, 25, 24, 26, 28, 27, 29, 30, 31, 33 (median 27.5, Q1 25, Q3 30). The two boxes do not overlap at all: the top of group X's box (Q3 = 20) is below the bottom of group Y's box (Q1 = 25). That gap is the story of the picture โ€” the groups are clearly separated, and you can see it without a single test.

    Example 3 — five values, and all identical

    With five values 4, 7, 9, 12, 15, Tukey gives Q1 = 5.5 (the median of 4 and 7), a median of 9 and Q3 = 13.5 (the median of 12 and 15), so the box still draws. With six identical values 7, 7, 7, 7, 7, 7, every summary number is 7 and the IQR is 0, so the box collapses to a single line at 7 โ€” the calculator shows it rather than erroring, because a line is the honest picture of data with no spread.

    Frequently asked questions

    Why do Tukey and Excel give different boxes?

    Because there is no single definition of a quartile. Tukey's hinges take the median of the lower and upper halves of the ordered data (excluding the median itself when n is odd). Excel's QUARTILE.INC interpolates at position (n − 1) × p + 1. On the same 20 values, Tukey gives Q1 = 17.5 and Q3 = 27.5 while Excel gives Q1 = 17.75 and Q3 = 27.25 โ€” the median is 22.5 either way. Neither is wrong; always say which method you used.

    What are the whiskers?

    The whiskers are the lines reaching out of the top and bottom of the box. Each one stops at the farthest data point that is still inside the fences โ€” the lower fence Q1 − 1.5 × IQR and the upper fence Q3 + 1.5 × IQR. They do not reach the minimum and maximum unless every value is inside the fences. Points outside the fences are plotted as individual dots, and those dots are the outliers.

    Source: the box plot, its quartiles and the 1.5×IQR fences are described in the NIST/SEMATECH e-Handbook of Statistical Methods, Box Plot. All examples on this page were recomputed with Python (scipy.stats), last updated 19 November 2026.

    See all 91 free statistics tools on Empirical Rule Calculators.