Box and Whisker Plot Calculator

Build a five-number summary with this box-and-whisker plot calculator

This box-and-whisker plot calculator turns a list of observations into a compact view of its center, middle spread, full range, and possible outliers. A boxplot summarizes ordered data with the minimum, first quartile (Q1), median, third quartile (Q3), and maximum rather than asking you to inspect every raw value individually. Those landmarks make it easier to discuss typical values, variability, asymmetry, and unusually distant observations.

Enter numbers in the form below to sort them, calculate the five-number summary, compare quartile methods, and draw a horizontal boxplot in your browser. The selected whisker rule determines whether the chart uses Tukey fences and separate outlier points or simply stretches to the observed minimum and maximum. The calculations and drawing run locally in the page, which is useful for coursework, exploratory checks, and data you prefer not to send to a calculation service.

The results combine exact numeric summaries with a visual boxplot. Use the table when you need reported values, and use the plot to see whether the middle half is compact, whether the median is off-center, and whether the tails contain observations separated by the Tukey rule.

How to use the box-and-whisker plot calculator

To make a boxplot, type or paste observations into the data box as a comma-separated list. Spaces, line breaks, tabs, and semicolons also work, so values can be pasted directly from many spreadsheet layouts. For example, enter 12, 15, 15, 18, 22, 30, choose a quartile convention and whisker rule, then select Create Plot. The calculator ignores empty or non-numeric entries, orders the valid values, and calculates the displayed statistics.

Read the result line for the selected method’s minimum, quartiles, median, maximum, and IQR. The summary and spread tables then show the same values alongside the mean, sample standard deviation, fences, whiskers, and any flagged observations. In the graph, the box spans Q1 through Q3, its interior line marks the median, and the whisker treatment follows the option you selected.

A box-and-whisker plot needs at least two valid observations, so the calculator asks for more data when fewer are supplied. A dataset of identical values is still valid: its quartiles coincide, its IQR is zero, and the box collapses to a single position on the plot.

What each boxplot value means

In a boxplot summary, the minimum and maximum are the smallest and largest entered observations. The median, or Q2, divides the ordered data into lower and upper halves. Q1 is the first quartile and Q3 is the third quartile; together they bracket the central half of the observations according to the selected quartile convention.

The box width is the interquartile range, abbreviated IQR. It is the difference between Q3 and Q1, so it describes the spread of the middle 50% without being driven as strongly by a distant minimum or maximum as the full range can be. A wide box indicates more variation in the central observations; a narrow box indicates tighter clustering there.

How the boxplot quartile formula works

The linear-interpolation option in this boxplot calculator uses positions in the sorted data list. If the observations are x1, x2, …, xn after sorting, the fractional position for quartile proportion q is:

pos = ( n 1 ) q

For this method, use q = 0.25 for Q1, q = 0.5 for the median, and q = 0.75 for Q3. When the position falls between observations, the calculator interpolates between the neighboring values. Tukey hinges and the exclusive-median option use median splits instead, so use the comparison table to see how that choice affects your particular dataset.

Q ( q ) = xbase+1 + rest × ( xbase+2 xbase+1 )

For every quartile convention offered here, the boxplot IQR is:

IQR = Q3 Q1

With the Tukey whisker setting, the calculator treats values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR as possible outliers. It draws those observations individually and takes each whisker only to the most extreme value still within its fence. The Simple setting instead uses the entered minimum and maximum as the whisker ends.

Worked boxplot example with linear-interpolation quartiles

Consider the ordered dataset 7, 9, 10, 10, 12, 15, 18, 21 with linear interpolation selected. The minimum is 7 and the maximum is 21. For the median, q = 0.5 gives pos = (8 − 1) × 0.5 = 3.5, halfway between the fourth and fifth values, 10 and 12. The median is therefore 11.

For Q1, q = 0.25 gives position 1.75, between the second and third values, 9 and 10, so Q1 is 9.75. For Q3, q = 0.75 gives position 5.25, between 15 and 18, so Q3 is 15.75. The resulting IQR is 15.75 − 9.75 = 6.

This boxplot’s box runs from 9.75 to 15.75 and its median is 11. The median is closer to Q1 than Q3, meaning the upper half of the middle 50% covers more units than the lower half. That can be a useful visual clue about the central portion of the distribution, but it is not by itself proof of overall skewness.

How to read a boxplot result well

Start a boxplot interpretation with the median, which gives a resistant measure of a typical observation. Then compare the median’s distance from Q1 and Q3. A centered median suggests similarly sized lower and upper portions within the box, while an off-center line shows that one half of the middle data occupies more of the scale.

Next, inspect the whiskers and any separately plotted points. Under the Tukey setting, whiskers exclude values beyond the 1.5 × IQR fences; under the Simple setting, they show the full entered range. That distinction matters when comparing plots, because a long simple whisker and a Tukey outlier communicate different aspects of the same extreme observation.

A boxplot remains a summary rather than a complete distribution display. Different datasets can have matching quartiles and whiskers while having very different clusters, gaps, or multiple peaks. Pair the boxplot with a histogram, dot plot, or sorted data list when those details affect your conclusion.

Boxplot data assumptions, units, and preparation

A box-and-whisker plot is meaningful only when its values are comparable measurements. Do not combine incompatible units or unrelated populations unless that mixture is exactly what you intend to summarize. The calculator operates on numerical order alone, so it cannot detect whether a list mixes centimeters and inches, different scoring scales, or measurements collected under different conditions.

The boxplot parser accepts decimal and negative values as well as whole numbers. It also accepts commas, semicolons, tabs, spaces, and line breaks between entries. Review the reported minimum and maximum after pasting data; this is a fast way to notice an omitted observation, accidental text, or a value entered in the wrong unit.

Small samples can produce quartiles that move noticeably when one observation changes. That sensitivity reflects the limited information in the data, not an error in the plot. Larger samples generally provide a more stable view of the middle spread, although the appropriate sample size depends on the question being studied.

Comparing the three boxplot quartile conventions on real data

This boxplot calculator reports linear interpolation, Tukey hinges, and exclusive-median quartiles for the same entered values. In the even-sized dataset below, Tukey hinges and exclusive medians agree because there is no single central observation to include or omit. In the odd-sized dataset, their Q1 and Q3 values differ because the methods handle the median differently.

Quartiles for two datasets under each convention
Dataset Method Q1 Median Q3 IQR
7, 9, 10, 10, 12, 15, 18, 21 (n = 8)Linear interpolation9.751115.756
7, 9, 10, 10, 12, 15, 18, 21 (n = 8)Tukey hinges9.51116.57
7, 9, 10, 10, 12, 15, 18, 21 (n = 8)Exclusive median9.51116.57
7, 9, 10, 12, 15 (n = 5)Linear interpolation910123
7, 9, 10, 12, 15 (n = 5)Tukey hinges910123
7, 9, 10, 12, 15 (n = 5)Exclusive median81013.55.5

Boxplot whiskers, Tukey fences, and outliers

This calculator’s Tukey boxplot option places fences at Q11.5×IQR and Q3+1.5×IQR. Its whiskers end at the most extreme observations inside those limits, while observations beyond them are drawn as individual points and listed in the results. Select Simple whiskers when your purpose is to show the observed minimum and maximum rather than apply an outlier-screening convention.

Adding an extreme observation can leave the quartiles nearly unchanged while making that observation appear separately under the Tukey rule. This preserves the visual scale of the central box and makes the unusual value easier to recognize. It does not establish that the value is erroneous; the point should be investigated in the context of the collection process and subject matter.

The 1.5 multiplier is a conventional threshold used for exploratory analysis, not a universal definition of an invalid value. It is best treated as a prompt to examine a point, check its provenance, and decide whether it represents an error, a distinct condition, or ordinary variation.

Sources. The five-number summary and fence rule are associated with Tukey’s exploratory data analysis; software quartile conventions are surveyed in the cited sample-quantile reference.

Questions about this boxplot calculator

Why do my quartiles differ from another calculator?

Quartile conventions are not universal. This calculator lets you compare linear interpolation, Tukey hinges, and the exclusive-median method on the same sorted data. Linear interpolation uses the position (n − 1) × q; Tukey hinges include an odd-count median in both halves; the exclusive method omits it from both halves. Tukey and exclusive results agree for even-sized datasets but can differ for odd-sized datasets.

Why do the whiskers stop before the minimum and maximum?

With the Tukey whisker rule, a whisker reaches only the most extreme entered value within Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. Values outside those fences are plotted individually. Select the Simple whisker rule to extend whiskers to the actual minimum and maximum instead.

Does a point outside the fences mean the value is wrong?

No. A point beyond a 1.5 × IQR fence is a potential outlier under a descriptive convention, not proof of an error. Check flagged observations for data-entry problems or different conditions, but evaluate them in the context of the data rather than discarding them automatically.

What happens when values repeat?

Repeated values remain individual observations in the sorted list. If Q1, the median, and Q3 are identical, the box has zero width and the IQR is zero. Under Tukey fences, every distinct value away from that common quartile value falls outside the zero-width fences.

Why is 1.5 the multiplier and not some other number?

The 1.5 × IQR cutoff is Tukey’s widely used convention for flagging possible outliers. It is not a validity test or a universal threshold; analysts may choose different rules when their subject area or purpose calls for them.

Can I use this to compare two groups?

Run each group separately and compare the medians, IQRs, whiskers, and flagged points. A box plot summarizes location and spread but does not reveal every feature of a distribution, so use a histogram, dot plot, or raw values when internal shape matters.

Where box-and-whisker plots are useful

Boxplots are useful wherever many comparable numerical measurements need a quick distribution summary. Teachers can compare assessment results, laboratories can review repeated measurements, manufacturers can monitor dimensional variation, and analysts can compare metrics across groups or periods. In each case, the five-number summary makes central location and middle spread easy to inspect before deeper analysis.

The median and quartiles are especially valuable when a few extreme values could dominate a mean or full range. They do not replace those measures, but they offer a resistant first look at the data. A boxplot is therefore often a practical starting point for identifying differences in typical values, variability, and potential outliers.

Boxplot privacy and local processing

This boxplot calculator performs its parsing, summary calculations, chart rendering, and optional quartile mini-game in the browser. The tool itself does not upload the entered dataset. Follow your own organization’s data-handling requirements when working with sensitive information.

Separate values with commas, line breaks, tabs, or semicolons. Non-numeric entries are ignored. Use a period for decimals, such as 3.5.

Statistics packages can use different quartile conventions for identical data. Select a method to calculate the plot, then use the comparison table to see every convention side by side.

Tukey whiskers distinguish observations beyond the 1.5 × IQR fences from the rest of the data; Simple whiskers display the full observed range.

Enter a list of numbers to generate the five-number summary and plot.
Your browser does not support the plot canvas.
The box spans Q1 to Q3, the line inside the box is the median, and the whiskers follow the selected Tukey or Simple rule.

Optional boxplot mini-game: Quartile Lineup

Build boxplot intuition with a short quartile-placement challenge. Each round displays a fresh ordered sample on a number line; drag the Q1, median, and Q3 markers to the positions you think the calculator’s linear-interpolation method will produce. The game is independent of the calculator form and does not alter any plotted dataset.

Score0
Time75
Streak0
Sample0
ModeWarm-up
Your browser does not support the mini-game canvas.

Click to play

Drag the Q1, Median, and Q3 markers onto the number line, then lock in your guess with Check quartiles.

  • Goal: place the middle 50% correctly and keep your streak alive.
  • Controls: drag with mouse or touch; keyboard players can use 1, 2, 3 to select markers and arrow keys to move.
  • Scoring: tighter quartile guesses earn more points, and perfect reads add bonus time.

Best score: 0

Quick takeaway: Q1 marks 25% of the ordered data, the median marks 50%, and Q3 marks 75%.

Embed this calculator

Copy and paste the HTML below to add the Interactive Box Plot Calculator: Quartiles, Tukey Fences & Outliers to your website.