Home · Statistics · Descriptive Statistics · IQR Calculator — Interquartile Range

IQR Calculator — Interquartile Range

The interquartile range: the spread of the middle 50% of the data, from Q1 to Q3.

Your figures

Example result — edit the figures to make it yours

3.75

Count (n)10
Mean6
Median6.5
Q14.25
Q38

What this calculator does

The interquartile range: the spread of the middle 50% of the data, from Q1 to Q3. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

IQR = Q3 − Q1

The IQR measures spread using only the middle half, so extreme values cannot inflate it.

Percentiles and quartiles use linear interpolation (the R-7 method), the numpy.percentile default.

Worked example

With the example inputs this page opens with, the result is 3.75. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — the worked example in full
FigureValue
Result3.75
Count (n)10
Mean6
Median6.5
Q14.25
Q38

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Why prefer the IQR over the range?

The range uses only the two most extreme values and is easily distorted by one outlier; the IQR describes the bulk of the data.

What is the IQR used for besides spread?

It sets the box-plot fences: values below Q1 − 1.5·IQR or above Q3 + 1.5·IQR are flagged as potential outliers.

How does the IQR Calculator — Interquartile Range work?

The interquartile range: the spread of the middle 50% of the data, from Q1 to Q3. Data values → IQR = Q3 − Q1. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the IQR Calculator — Interquartile Range need?

Data values → IQR = Q3 − Q1. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.