IQR Calculator

Range Calculator

The simplest measure of spread, and the one most easily wrecked by a single value.

Range calculatorRuns entirely in your browser
Separate values with commas, spaces or line breaks. Paste a column straight from a spreadsheet.
Try:
Quartile method

Quartiles have no single agreed definition. Why these differ.

ResultExclusive method · n = 8
Range1618 − 2across 8 values
Minimum
2
Maximum
18
Count
8
IQR
7.5
Midrange
10
Median
7.5

How we calculated it

Find the extremes
Maximum = 18Minimum = 2
Subtract
range = 18 − 2 = 16
Compare against the middle 50%
IQR = 11 − 3.5 = 7.5
The range is 2.133333× the IQR. A large multiple means the extremes sit far outside the bulk of the data.

The formula

range = maximum − minimum

The simplest measure of spread there is, and the most fragile. It uses exactly two of your values and throws the rest away, so it tells you how wide the data reaches but nothing about how it is distributed inside that width.

Why the range is so easily wrecked

Every additional observation can only widen the range, never narrow it — so ranges from larger samples are systematically larger, which makes comparing them across different sample sizes meaningless.

And a single mistyped value changes it completely. In the set 12, 13, 14, 15, 16, 17, 18, 92 the range is 80, while the IQR is 4. The range is describing one keystroke; the IQR is describing the data.

The calculator above shows both, and the ratio between them. When the range is many times the IQR, the extremes are doing all the work.

Questions

Is the midrange useful?

The midrange — (max + min) ÷ 2 — is shown above for completeness, but it inherits every weakness of the range and adds none of its own strengths. It depends on exactly two observations, both of them the most extreme ones you have.