Skip to content

Interquartile Range Calculator

Robust because it ignores how extreme the extremes are.

Work out Interquartile Range. Robust because it ignores how extreme the extremes are. Free, with no account and nothing to install.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these

1.5 is Tukey's convention for mild outliers, 3 for extreme ones

Interquartile range

4

Q1 3 · median 5 · Q3 7

Minimum1
First quartile (Q1)3
Median (Q2)5
Third quartile (Q3)7
Maximum100
Interquartile range4
Lower fence-3
Upper fence13
Outliers100
Extreme fences-9 to 19

1 value falls outside the fences. Tukey's fences flag candidates for investigation rather than errors to delete — an outlier is frequently the most informative point in a dataset, and removing it because a rule said so discards exactly the observation worth understanding.

How the Interquartile Range Calculator works

Quartiles, interquartile range and Tukey's fences, with outliers listed. The IQR measures the middle half of the data and is unaffected by how far the extremes reach, which is what makes it robust.

Also known as: iqr calculator · find outliers in data · quartile calculator · tukey fences outlier test

Robustness, and what it costs

The interquartile range measures the middle half of the data and ignores how extreme the extremes are. Moving the largest value from 100 to 10,000 does not change it at all, while it moves the standard deviation enormously.

That robustness is the point. For skewed or contaminated data the IQR describes the spread more honestly, which is why box plots are built on quartiles rather than on means and standard deviations.

The cost is efficiency. For clean, roughly normal data the standard deviation uses all the information and the IQR uses only positions, so the standard deviation is the more precise estimator. Which to use depends on what the data looks like.

Tukey's fences and the 1.5

Points below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are flagged. The multiplier is a convention chosen so that roughly 0.7% of normally distributed data falls outside — rare enough to notice, common enough not to fire constantly.

The 3 × IQR fences mark extreme outliers, separating points worth checking from points almost certainly wrong. Reporting both gives a sense of how far out an outlier actually is.

None of this is a test in the statistical sense. Tukey's fences flag candidates for investigation, and treating them as a rule for deletion is a misuse — one that discards exactly the observations most worth understanding.

What to do with an outlier

Investigate it. An outlier is a data entry error, a genuinely unusual case, or the most important observation in the dataset — and only looking at it distinguishes the three.

Removing outliers because a rule flagged them is how genuine discoveries get discarded. The ozone hole was missed for years partly because automated processing discarded readings as implausible.

Where an outlier is genuine and dominating the analysis, the remedy is usually a robust method rather than deletion — a median, an IQR, or a model that does not assume normality. Changing the tool is more honest than changing the data.

Where to go next

The Interquartile Range question rarely arrives on its own. These are the ones that usually come with it:

Frequently asked questions

What is the interquartile range?

Q3 minus Q1 — the spread of the middle half of the data. Unlike the range or standard deviation, it does not change when an outlier gets more extreme.

How are outliers identified?

By Tukey's fences: below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR. The 1.5 multiplier is a convention rather than a statistical threshold.

Should I remove outliers?

Usually not. An outlier flags a point worth investigating, and it is frequently the most informative observation in the dataset. Removing it because a rule said so discards exactly what was worth understanding.

What are extreme outliers?

Points beyond 3 × IQR from the quartiles rather than 1.5. The distinction separates points worth checking from points almost certainly wrong.

Why is a box plot built on quartiles?

Because they are robust. The box shows the middle half, the line shows the median, and the whiskers reach to the fences — none of which moves when an extreme value gets more extreme.

How is IQR different from standard deviation?

Standard deviation uses every value and its distance from the mean, so one extreme point moves it a great deal. IQR uses only positions, so it does not.

How are quartiles calculated?

By the same competing methods as percentiles, which is why software packages disagree. The differences are largest on small datasets and vanish on large ones.

What is a box plot?

A visual summary built on quartiles: a box from Q1 to Q3, a line at the median, whiskers to the fences, and outliers plotted individually. It shows spread and skew at a glance.

Why 1.5 times the IQR?

It is Tukey's convention, chosen so that roughly 0.7% of normally distributed data falls outside — rare enough to be worth noticing, common enough not to fire constantly.

Should outliers always be investigated?

Yes, and not necessarily removed. An outlier can be a data-entry error, a genuinely unusual case, or the most important observation in the set — and only investigation distinguishes them.

What is the median absolute deviation?

The median of the absolute deviations from the median, an even more robust spread measure than the IQR. It is used where outliers are expected rather than exceptional.

When is standard deviation better than IQR?

For roughly normal data with no outliers, where it uses all the information rather than only positions. For skewed or contaminated data the IQR is more informative.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/interquartile-range-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Interquartile Range Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/interquartile-range-calculator" style="color:#64748b">Interquartile Range Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators