IQR Calculator

Box Plot Calculator

Draw a box-and-whisker plot from your numbers, with outliers marked separately.

Box plot calculatorRuns entirely in your browser
Separate values with commas, spaces or line breaks. Paste a column straight from a spreadsheet.
Try:
Quartile method

Quartiles have no single agreed definition. Why these differ.

Fence multiplier
ResultExclusive method · n = 8

Box plot

Box and whisker plot of your dataBox plot. Minimum 12, lower whisker 12, Q1 13.5, median 15.5, Q3 17.5, upper whisker 18, maximum 92. 1 outlier: 92.lower fenceupper fenceInterquartile range: Q1 13.5 to Q3 17.5, IQR 4Median: 15.5Outlier: 92Q1 13.5Med 15.5Q3 17.520406080
Middle 50% (Q1 to Q3)MedianRange within the fencesOutlier

The five numbers it is drawn from

Minimum
12
Lower whisker
12
Q1
13.5
Median
15.5
Q3
17.5
Upper whisker
18
Maximum
92
IQR
4
!
1 outlier flagged: 92 (68.5 past the fence).

How we calculated it

Your data, as entered
12, 15, 14, 18, 16, 13, 17, 92
8 values.
Sorted from smallest to largest
1213141516171892
An even count, so the split falls cleanly between the two middle values.
Median (Q2)
No single middle value, so average the two in the middle:(15 + 16) ÷ 2 = 15.5
Split into halves
Lower half  →  12, 13, 14, 15Upper half  →  16, 17, 18, 92
Q1 and Q3 are the medians of those halves
Q1 = (13 + 14) ÷ 2 = 13.5Q3 = (17 + 18) ÷ 2 = 17.5
Interquartile range
IQR = Q3 − Q1IQR = 17.5 − 13.5 = 4
Outlier fences (1.5 × IQR)
Lower = Q1 − 1.5 × IQR = 13.5 − 1.5 × 4 = 7.5Upper = Q3 + 1.5 × IQR = 17.5 + 1.5 × 4 = 23.5
Outside those fences: 92.

How to read the plot

Each part of the drawing is one number from the five-number summary, plus the outlier rule:

  • The box runs from Q1 to Q3. Its width is the IQR — the middle half of the data.
  • The line inside the box is the median. Where it sits inside the box tells you about skew.
  • The whiskers reach out to the furthest value still inside the 1.5 × IQR fences — not automatically to the minimum and maximum.
  • The separate points are values outside the fences, drawn individually so you can see how many there are and how far out they sit.

That last distinction defines the modified box plot, which is what almost every statistics package draws today and what this calculator produces. In a plain box plot the whiskers simply run to the extremes and outliers are not shown at all.

Spotting skew at a glance

A box plot is unusually good at one specific job: showing asymmetry without any calculation.

  • Median centred in the box, whiskers of similar length — symmetric.
  • Median pushed toward the left edge of the box and a long right whisker — right-skewed.
  • Median pushed right with a long left whisker — left-skewed.

What a box plot cannot show you is whether the data has more than one peak. Two distinct clusters can produce a perfectly ordinary-looking box. If that matters, plot a histogram as well — the standard deviation calculator draws one.

Building one by hand

  1. Sort the data and find Q1, the median and Q3.
  2. Compute the IQR and the two fences.
  3. Draw an axis covering the full range of the data.
  4. Draw the box from Q1 to Q3, with a line at the median.
  5. Extend a whisker from each end of the box to the furthest value still inside the fence.
  6. Plot every value beyond a fence as its own point.

Worked example

Ten heights, no outliers

Data (cm): 168, 172, 165, 180, 175, 171, 169, 177, 173, 166

Sorted: 165, 166, 168, 169, 171, 172, 173, 175, 177, 180. Q1 = 168, median = 171.5, Q3 = 175, IQR = 7.

The fences land at 157.5 and 185.5, well outside the data, so both whiskers run all the way to the extremes — 165 and 180 — and no points are drawn separately. The median sits 3.5 above Q1 and 3.5 below Q3: as symmetric as a box gets.

Questions

Why does my whisker stop before the largest value?

Because that largest value is outside the 1.5 × IQR fence, so it is drawn as an individual point instead. The whisker marks the last value the rule considers ordinary.

Can I compare two data sets on one plot?

That is the classic use, and it is what box plots do better than almost any other chart. This calculator handles one set at a time; draw each one and compare the boxes side by side.

Method & sources