IQR Calculator

Find the interquartile range of any list of numbers. This IQR calculator and quartile calculator gives you Q1, the median, Q3, the five-number summary and the outliers from the 1.5 × IQR rule. Pick the exclusive or inclusive quartile method. Everything runs in the browser.

  • Q1, Q2, Q3
  • Five-number summary
  • Outlier fences
  • Exclusive and inclusive
  • Stays on your device

Exclusive matches Excel QUARTILE.EXC and most statistics textbooks. Inclusive matches Excel QUARTILE.INC and QUARTILE.

How to find the interquartile range

  1. Sort the numbers from smallest to largest.
  2. Find the median (Q2), then Q1 and Q3, the medians of the lower and upper parts.
  3. Subtract: IQR = Q3 − Q1.
  4. Optional: set the fences at Q1 − 1.5 × IQR and Q3 + 1.5 × IQR to spot outliers.

Quartile method used

Quartiles are not defined the same way everywhere. The default here is the exclusive method, position (n + 1) × p, which matches Excel QUARTILE.EXC and many textbooks. The inclusive method, position 1 + (n − 1) × p, matches Excel QUARTILE.INC. Example: for 1 to 10 the exclusive IQR is 8.25 − 2.75 = 5.5 and the inclusive IQR is 7.75 − 3.25 = 4.5.

Outliers and the five-number summary

A value more than 1.5 × IQR below Q1 or above Q3 is flagged as an outlier. For 1, 2, 3, 4, 5, 6, 7, 8, 9 and 50, Q1 is 2.75, Q3 is 8.25 and the IQR is 5.5, so the upper fence is 16.5 and 50 is an outlier. Pair this with the mean median mode calculator for the center of your data and the standard deviation calculator for spread around the mean.

Frequently asked questions

What is the interquartile range (IQR)?

The interquartile range is the spread of the middle half of your data: IQR = Q3 − Q1. Q1 is the 25th percentile and Q3 is the 75th percentile. Because it ignores the lowest and highest quarters, extreme values barely change it.

How do I use this IQR calculator?

Paste or type your numbers, separated by commas, spaces or new lines. The calculator sorts them and shows Q1, the median (Q2), Q3, the IQR, the five-number summary and any outliers. It updates as you type.

How does this quartile calculator find Q1 and Q3?

By default it uses the exclusive method, which places a quartile at position (n + 1) × p in the sorted list and interpolates between neighbors if needed. Switch to the inclusive method to use position 1 + (n − 1) × p, which matches Excel QUARTILE.INC. Both are standard, and they can differ slightly on small data sets.

What is the difference between the exclusive and inclusive quartile methods?

The exclusive method treats your numbers as a sample from a larger population, so its quartiles can land farther toward the ends. The inclusive method treats the minimum and maximum as the 0th and 100th percentiles. For 1 through 10, exclusive gives Q1 = 2.75 and Q3 = 8.25, while inclusive gives Q1 = 3.25 and Q3 = 7.75.

How do I find outliers with the 1.5 × IQR rule?

Compute the fences: lower fence = Q1 − 1.5 × IQR and upper fence = Q3 + 1.5 × IQR. Any value below the lower fence or above the upper fence is flagged as an outlier. The calculator shows both fences and lists the outliers.

What is the five-number summary?

It is the minimum, Q1, the median, Q3 and the maximum. Together they describe the center, spread and range of your data, and they are exactly the values drawn in a box plot.

Is a bigger IQR better or worse?

Neither. A bigger IQR means the middle half of the data is more spread out, and a smaller IQR means it is tightly clustered. Use it to compare variability between data sets measured in the same units.

Is my data saved or uploaded?

No. The IQR calculator runs entirely in your browser. Your numbers are not sent to a server or stored, and there is no account.