Skip to content
OneCalculate

Interquartile Range Calculator

Separate numbers with commas, spaces or new lines — needs at least 4 values.

Interquartile range (IQR)

7

Q1 (lower quartile)

36

Q3 (upper quartile)

43

Outlier fence

25.50 – 53.50

Across 10 values, the middle 50% of the data sits between 36 and 43 — a spread of 7. Values below 25.50 or above 53.50 fall outside Tukey's 1.5×IQR fence and are typically flagged as outliers.

Quick answer

The interquartile range (IQR) shows how spread out the middle 50% of a data set is. Sort your numbers, split them into a lower half and an upper half around the median, then find the median of each half to get Q1 and Q3. IQR is Q3 minus Q1, and values well outside that range are often flagged as outliers.

Explore more Maths calculators

Interquartile Range Calculator is one of numbers, percentages and conversion tools on OneCalculate — see the full set for this category.

Browse Maths

How it works

Quartiles split a sorted data set into four equal-sized groups. Q1 (the lower quartile) marks the boundary of the bottom quarter of values, Q3 (the upper quartile) marks the boundary of the top quarter, and the interquartile range (IQR) is the distance between them:

IQR = Q3 − Q1

Because the IQR only covers the middle 50% of the data, it ignores the most extreme values at each end — which makes it a much more reliable measure of spread than the plain range (max − min) whenever your data contains unusually high or low values.

This calculator finds Q1 and Q3 using the median-of-halves method, the version most commonly taught in Australian high school maths classes:

  1. Sort all the values from lowest to highest.
  2. Find the position of the overall median.
  3. If there’s an odd number of values, exclude that middle value entirely, then split the rest evenly into a lower half and an upper half. If there’s an even number of values, the data already splits cleanly down the middle, so nothing needs to be excluded.
  4. Q1 is the median of the lower half. Q3 is the median of the upper half — using the same middle-value (or average-of-the-two-middle-values) rule as a standard median.

This is the exclusive method — the overall median is deliberately left out of both halves when the count is odd, rather than being included in one of them. It’s worth knowing that not every calculator does this the same way: some tools use an interpolation-based method instead, which estimates Q1 and Q3 at fractional positions along the sorted list rather than picking clean sub-medians. Both are legitimate statistical conventions, but they can give marginally different Q1 and Q3 values for the exact same data, so it’s normal for two “correct” IQR calculators to disagree slightly at the second decimal place.

Once Q1 and Q3 are known, this calculator also shows the outlier fence — the range outside which a value is conventionally flagged as a possible outlier, using Tukey’s widely-used 1.5×IQR rule:

Lower fence = Q1 − 1.5 × IQR
Upper fence = Q3 + 1.5 × IQR

A value doesn’t have to be wrong just because it sits outside the fence, but it’s a useful, consistent signal for “this point is unusually far from the rest of the group” worth a second look. See Khan Academy’s guide to the interquartile range for more on how IQR fits alongside the median and box-and-whisker plots.

Worked example

Liam is a real estate agent reviewing how much houses sold for on Jacaranda Street in Toowoomba, Queensland, over the past year. Nine houses changed hands, selling for (in $’000s):

465, 420, 610, 480, 525, 455, 510, 560, 495

Sorted from lowest to highest:

420, 455, 465, 480, 495, 510, 525, 560, 610

There are 9 values — an odd number — so the middle value, $495k (the 5th value), is the overall median and is excluded from both halves:

Each half has 4 values (even), so its median is the average of the two middle numbers:

The outlier fence is Q1 − 1.5×IQR to Q3 + 1.5×IQR, or $460k − $123.75k to $542.5k + $123.75k — $336.25k to $666.25k. Every sale on Jacaranda Street this year falls comfortably inside that range, so Liam can tell his vendors the street had a consistent year: no sale was unusually cheap or unusually expensive next to its neighbours.

Value ($’000s)
Q1 (lower quartile) 460
Median (excluded from Q1/Q3) 495
Q3 (upper quartile) 542.5
IQR 82.5
Outlier fence 336.25 – 666.25

Frequently asked questions

What counts as an outlier when using the IQR?

A common rule of thumb, known as Tukey's fences, flags any value below Q1 minus 1.5×IQR or above Q3 plus 1.5×IQR as a possible outlier. This calculator shows that range as the outlier fence — anything outside it is worth a closer look, though it doesn't automatically mean the value is wrong or should be removed.

Why exclude the overall median when finding Q1 and Q3?

This calculator uses the exclusive method: when there's an odd number of values, the middle one is left out of both halves before finding their medians. Excluding it keeps each half a genuinely separate group of values, which is the version of the method most commonly taught in Australian high school maths classes.

What counts as a 'good' or 'small' IQR?

There's no universal cutoff — it depends entirely on what you're measuring and its typical scale. A small IQR relative to the data means most values cluster tightly around the middle, while a large IQR means the middle 50% is spread widely. Compare IQRs between similar data sets rather than judging one in isolation.

How is the IQR different from the range?

The range is simply the maximum value minus the minimum value, so a single unusually high or low number can distort it heavily. The IQR only looks at the middle 50% of the data, ignoring the top and bottom quarters entirely, which makes it a far more reliable measure of spread whenever a data set contains outliers.

Do different calculators give different Q1 and Q3 values for the same data?

Yes, sometimes. This calculator uses the exclusive median-of-halves method, but some tools use interpolation-based methods, such as linear interpolation between ranks, instead. Both are valid statistical conventions, but they can produce slightly different Q1 and Q3 figures for identical data, so it's worth noting which method you used alongside any answer.

Can the interquartile range be zero?

Yes — if enough values repeat near the middle of the sorted data, Q1 and Q3 can land on the same number, making the IQR zero. This just means at least half of your values are identical or very tightly clustered together, which is genuinely useful information about your data even though it can look like an unusual result.

Is there a minimum number of values needed to calculate the IQR?

This calculator needs at least 4 values so it can split the sorted list into two genuine halves before finding their medians. With fewer than 4 values there aren't enough data points on each side of the middle for Q1 and Q3 to mean anything statistically, so the calculator will ask you for more input.

Nirbhay Tripathi

Written and verified by Nirbhay Tripathi

Last updated 18 August 2026

All rates on this page are verified againstKhan Academy — Interquartile range (IQR)on 18 August 2026. See our methodology for the full update calendar.