House of Calculator

Paste your numbers to get quartiles, IQR and any outliers.

Results are estimates for planning. Check the figures before you make a financial or health decision.

Embed this calculator on your website

Free to use. Copy the code and paste it into your page. Please keep the link under the calculator in place: it is how we keep the tool free.

How the Quartile and IQR Calculator works

Quartiles split sorted data into four equal parts. Q1 is the 25th percentile, the median is the 50th and Q3 is the 75th. The IQR = Q3 − Q1 measures the spread of the middle half.

Outliers are values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR. This calculator uses linear interpolation, the same as Excel’s QUARTILE.INC.

Worked example

With these inputs: Numbers, separated by spaces, commas or new lines: 3 7 8 5 12 14 21 13 18 40.

ResultValue
Interquartile range9.75
Count10
Minimum3
Q1 (25th percentile)7.25
Median12.5
Q3 (75th percentile)17
Maximum40
Lower fence-7.375
Upper fence31.625
Outliers40

Tips and common mistakes

  • Methods differ. Some textbooks take the median of each half, which can give slightly different quartiles on small lists.
  • Separate numbers with spaces, commas or new lines. Non-numbers are ignored.
  • Check any outlier before removing it. It may be a real value or a typing error.

Frequently asked questions

How do I find the interquartile range?

Sort the data, find Q1 and Q3 and subtract Q1 from Q3.

What counts as an outlier?

A value more than 1.5 times the IQR below Q1 or above Q3.

Why does my textbook give different quartiles?

Different methods treat the middle value differently. The results are close but can differ by a little on small lists.

How many numbers do I need?

At least four for quartiles to be meaningful.

Related calculators