CalculatorVilla

Interquartile Range Calculator

Calculate the Interquartile Range (IQR)—the statistical spread of the middle 50% of your data. Serves as the primary measure of dispersion in box plots and Tukey’s outlier detection rules.

Interquartile Range (IQR): 0

List of numbers in any order; sorted automatically

Interquartile Range (IQR)
0.0000

How to Use This Calculator

  1. Enter your dataset separated by commas or spaces.
  2. View the computed IQR at the top.
  3. Inspect individual quartiles (Q1, Q2/Median, Q3) below.

Formula & Calculation Methodology

IQR = Q3 − Q1 | Outlier Fences: [Q1 − 1.5×IQR, Q3 + 1.5×IQR]

The IQR subtracts the 25th percentile (Q1) from the 75th percentile (Q3). John Tukey’s rule identifies values outside 1.5 × IQR beyond quartiles as potential outliers.

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

Worked Example

Evaluating 7, 8, 12, 14, 15, 18, 19, 20, 22, 24, 26, 30

numbers: 7, 8, 12, 14, 15, 18, 19, 20, 22, 24, 26, 30
Result: IQR = 10.7500 (Q1 = 13.5, Median = 18.5, Q3 = 24.25)

Evaluating 10, 20, 30, 40, 50

numbers: 10, 20, 30, 40, 50
Result: IQR = 20.0000 (Q1 = 20.0, Q3 = 40.0)

Frequently Asked Questions

Why is IQR preferred over range for skewed data?↓

The full range (Max − Min) is heavily distorted by extreme outliers. The IQR focuses exclusively on the central 50%, remaining completely immune to extreme boundary extremes.

How does IQR detect outliers in box plots?↓

Any point falling below Q1 − 1.5×IQR or above Q3 + 1.5×IQR is flagged as an outlier and plotted as an individual point outside the box plot whiskers.

What is the semi-interquartile range?↓

The semi-interquartile range (or quartile deviation) is half of the IQR: (Q3 − Q1) / 2.

What is a limitation of the IQR?↓

The IQR ignores the specific values within the lower 25% and upper 25%, meaning it cannot convey total sample variance.

Related Calculators

Source Citation & Disclaimer

Informational tool only; not licensed tax, legal, or financial advice.