Formula & Calculator

Interquartile Range (IQR)

Measures the spread of the middle 50% of a dataset, a robust measure of variability not affected by extreme outliers.

StatisticsDescriptive StatisticsSpread

Interquartile Range CalculatorIQR · Spread · Outlier Detection

IQR = Q3Q1
IQR = interquartile range  ·  Q1 = 25th percentile  ·  Q3 = 75th percentile
⟹ ComputeIQR from data
Enter at least 4 numbers. Use commas, spaces, or line breaks.
Presets:
Please fix the errors above.
Interquartile Range (IQR)
Min
Q1
Median
Q3
Max
Outliers:
✓ Copied!
Data Distribution (Box Plot)
Q1–Q3 (IQR) Median Whiskers Outliers
IQR = Q3 − Q1  ·  Outliers defined as values below Q1 − 1.5·IQR or above Q3 + 1.5·IQR

Interpretation

IQR = Q3 − Q1. The range of the middle 50% of data. Robust measure of spread, resistant to outliers. Used in boxplots and outlier detection.

IQR = Q3 - Q1
Interquartile Range (IQR)

Variables

SymbolQuantityUnit
IQRInterquartile range
Q3Third quartile (75th percentile)
Q1First quartile (25th percentile)

What it means

The interquartile range (IQR) is the difference between the third quartile (Q3, 75th percentile) and the first quartile (Q1, 25th percentile). It represents the spread of the central 50% of the data and is a robust measure of dispersion that is not influenced by outliers. The IQR is used to construct boxplots, to identify outliers (data points beyond 1.5×IQR from the quartiles), and to compare variability across groups. It is also used in non‑parametric statistics. Understanding the IQR is important for exploring data and for selecting appropriate measures of spread when the data are skewed or contain outliers.

Worked example

Interquartile Range – Two Examples

Real‑World
Scenario: A dataset has Q1=25 and Q3=75. Find the IQR.
ParameterValue
Q125
Q375
1IQR = 75 − 25 = 50
Result 50 ✓ Spread of middle 50%
Scenario: For household incomes, Q1=$15,000 and Q3=$35,000. Find IQR.
ParameterValue
Q115000
Q335000
1IQR = 35000 − 15000 = 20000
Result $20,000 ✓ Middle 50% spread
Insight: IQR measures the spread of the middle 50% and is robust to outliers. Used in box plots and outlier detection (1.5×IQR).

Common mistakes

  • Quartiles: Q1 (25th percentile) and Q3 (75th percentile) – different methods may give slightly different values.
  • Ordering: Data must be sorted before calculating quartiles.
  • IQR: Is a measure of spread – resistant to outliers.
  • Outlier detection: Values below Q1 − 1.5·IQR or above Q3 + 1.5·IQR are often considered outliers.
  • Units: IQR has the same units as the data.

Applications

The interquartile range (IQR) is the difference between the third and first quartiles, covering the middle 50% of the data. It is a robust measure of spread, unaffected by outliers. Engineers use IQR to identify outliers, to describe skewed distributions, and to construct box plots. In quality control, it helps assess process dispersion. In healthcare, it summarises patient data with extreme values. By using IQR, professionals can focus on the central bulk of the data, reducing the influence of extreme observations. It is often combined with the median to provide a robust summary. Understanding IQR is crucial for exploratory data analysis and for communicating data variability in a clear, interpretable manner.

  • Identification of outliers in datasets
  • Exploratory data analysis and box plot construction
  • Healthcare and clinical data summarisation
  • Quality control – robust process dispersion measure
  • Educational assessment – distribution of scores

Frequently Asked Questions

Q01What is the interquartile range (IQR) and how is it calculated?
A01

IQR = Q3 – Q1, where Q1 is the 25th percentile (first quartile) and Q3 is the 75th percentile (third quartile). It measures the spread of the middle 50% of the data.

Q02Why is IQR a robust measure of spread?
A02

Because it is not affected by outliers or extreme values – it only considers the central half of the data. This makes it ideal for skewed distributions.

Q03How is the IQR used to identify outliers?
A03

Outliers are often defined as values below Q1 – 1.5×IQR or above Q3 + 1.5×IQR. This is the standard rule in boxplot construction.

Q04What is the relationship between IQR and standard deviation?
A04

Both measure spread. For a normal distribution, IQR ≈ 1.35 × σ. The IQR is more robust, while σ is more efficient for symmetric data.

Q05How do you compute quartiles for a dataset with an even number of observations?
A05

There are different methods. One common approach: after sorting, the median splits the data; Q1 is the median of the lower half, Q3 is the median of the upper half. Interpolation may be used for even splits.

Q06What is the IQR used for in descriptive statistics?
A06

It is often reported alongside the median in the five‑number summary (min, Q1, median, Q3, max). It gives a quick picture of the spread without being swayed by outliers.

Q07How does the IQR behave under linear transformations?
A07

If you add a constant b, the IQR is unchanged. If you multiply by a, the IQR is multiplied by |a|.

Q08Can the IQR be zero?
A08

Yes, if Q1 = Q3, meaning all values in the middle 50% are identical (or the dataset has little variability).

Q09How is IQR used in comparative studies?
A09

It is useful for comparing the variability of different groups, especially when distributions are skewed. Boxplots visually display IQR for each group.

Q10What is the difference between IQR and range?
A10

The range covers all data (from min to max) and is sensitive to outliers. The IQR covers only the middle 50% and is robust. IQR is often preferred for skewed data.