FLXCode Box Plot Maker

FLXCode apps

Appearance

Box Plot Maker

Paste columns with a header row and get a box plot for each, side by side on one axis.

Paste columns from a spreadsheet or a CSV file: the first row holds the names, each column is one group. Up to 8 groups. Tab, semicolon or comma between columns.

Example Box plot

3 box plots On one axis from 55 to 97, inclusive method

Read 3 columns and 30 numbers (header row found).

60708090Class AClass BClass C

Whiskers reach the furthest values inside the fences (Q1 − 1.5 × IQR, Q3 + 1.5 × IQR). Circles beyond them are outliers. Different programs use different quartile methods, so say which one you used.

Results
Class AQ1 71.5 · median 76 · Q3 83 · IQR 11.5 · no outliers (n = 10)
Class BQ1 75.75 · median 80 · Q3 84.5 · IQR 8.75 · no outliers (n = 10)
Class CQ1 64.5 · median 69 · Q3 73.75 · IQR 9.25 · outliers 95 (n = 10)

The steps, with your numbers

Inclusive method: the rank of a quartile is p × (n − 1) + 1, with p = 0.25, 0.5 and 0.75 (Excel QUARTILE.INC).

Class A: Q1 71.5, median 76, Q3 83, IQR 11.5. Fences 54.25 and 100.25. Whiskers reach 62 and 97. Outliers: none.

Class B: Q1 75.75, median 80, Q3 84.5, IQR 8.75. Fences 62.625 and 97.625. Whiskers reach 70 and 91. Outliers: none.

Class C: Q1 64.5, median 69, Q3 73.75, IQR 9.25. Fences 50.625 and 87.625. Whiskers reach 55 and 79. Outliers: 95.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

Quick start

  1. Paste your data. The first row is the group names, each column below it is one group.
  2. Choose the quartile method. Inclusive matches most spreadsheets.
  3. Check the table under the plot, then download the PNG or the SVG.

A worked example

Three classes took the same test. The default data in the tool is this table, one column each.

ClassQ1MedianQ3Outliers
Class A71.576830
Class B75.758084.50
Class C64.56973.751

One column of 12 numbers works too. For 6, 7, 9, 10, 11, 12, 13, 15, 16, 18, 21, 45 the quartiles are 9.75, 12.5 and 16.5, and 45 is an outlier.

The parts of a box plot

PartWhat it shows
BoxQ1 to Q3, the middle half of the values
Line in the boxThe median
WhiskersThe furthest values inside the fences
CirclesOutliers, beyond Q1 − 1.5 × IQR or Q3 + 1.5 × IQR

For a single list with the full steps, the quartile calculator shows how each quartile is found.

Numbers this uses

  • Groups is up to 8 columns. One row of names on top, the rest are numbers.
  • Limit is 100,000 numbers in all. Kept low so the page stays quick on a phone.
  • Fence is 1.5 × IQR. Tukey's rule, the default in most software.
  • Download is PNG at 600, 900 or 1200 px, or SVG. White background, fixed colours.

Limits

The plot is horizontal, with one box per group. It does not do notches, means or custom colours. Long group names are shortened in the picture, and the table keeps the full name.

In Excel and Google Sheets

Type the example in A1:C11, with the group names in row 1. The rows below use the first group, Class A. The formulas below work the same in both programs: every function name was checked against Google's function list.

TaskFormulaResult
Q1, median, Q3 (inclusive)=QUARTILE.INC(A2:A11,1) =QUARTILE.INC(A2:A11,2) =QUARTILE.INC(A2:A11,3)71.5, 76, 83
Q1, median, Q3 (exclusive)=QUARTILE.EXC(A2:A11,1) =QUARTILE.EXC(A2:A11,2) =QUARTILE.EXC(A2:A11,3)70.25, 76, 85
Lower and upper fence (inclusive), where outliers start=Q1-1.5*(Q3-Q1) and =Q3+1.5*(Q3-Q1)54.25 and 100.25

Excel 2016 and later can draw the chart itself: select the columns, then Insert, Charts, Box and Whisker. In the Format Data Series pane, Quartile Calculation offers "Inclusive median" and "Exclusive median". Microsoft describes them as keeping or dropping the median from the two halves when the count is odd. The chart does not always match the QUARTILE functions above, so check one box against them before you quote numbers.

You can also paste the column into the box above, or open an .xlsx or .csv file with the Open button, and use Download .xlsx to get these formulas filled in with your own numbers.

FAQ

How do I read a box plot?

The box runs from Q1 to Q3, so it holds the middle half of the data, and the line inside it is the median. The whiskers reach the furthest values still inside the fences. Circles beyond the whiskers are outliers.

How are outliers decided?

By the 1.5 × IQR rule: a value below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR is drawn as a circle. In 6, 7, 9, 10, 11, 12, 13, 15, 16, 18, 21, 45 the fences are -0.375 and 26.625, so 45 is an outlier. The upper whisker stops at 21.

Inclusive or exclusive quartiles?

They are two ways to place Q1 and Q3, as Excel's QUARTILE.INC and QUARTILE.EXC. For 1 to 8 the inclusive Q1 is 2.75 and the exclusive Q1 is 2.25. The exclusive method needs at least 3 numbers in a column. A column with fewer is named and left out, and the other boxes are still drawn.

How many groups can I draw?

Up to 8 columns. Each column can have different numbers of values, and empty cells are skipped.

What separates the columns?

A tab, which is what you get when you copy from a spreadsheet, a semicolon or a comma. With semicolons or tabs, a comma inside a number is read as a decimal point.

What do I get when I download?

A PNG at the width you choose (600, 900 or 1200 pixels) or an SVG file. Both have a white background and fixed colours, so they look the same in a document or a slide, in light or dark mode.

More from FLXCode

Share Box Plot Maker