---
title: "Quartiles and the Interquartile Range"
description: "Find the median, the quartiles and the interquartile range of a data set, and use the interquartile range to compare how spread out two sets are."
canonical: https://lightmysky.com/learn/mathematics/quartiles-and-the-interquartile-range-mt_vN10d1I9dA
source: https://lightmysky.com/learn/mathematics/quartiles-and-the-interquartile-range-mt_vN10d1I9dA.md
retrieved: 2026-09-02
---

> **Agent view.** This is the Markdown twin of the page, for tools and assistants.
> When to use this site, and the call that answers each job: https://lightmysky.com/agent-instructions.md
> API description (OpenAPI 3.1): https://lightmysky.com/openapi.json · Authentication: https://lightmysky.com/auth.md
> Pricing: https://lightmysky.com/pricing.md · Catalog: https://lightmysky.com/llms.txt · Full catalog: https://lightmysky.com/llms-full.txt
> Every machine-readable file on this domain: https://lightmysky.com/.well-known/ai-catalog.json
> Ask for Markdown with `Accept: text/markdown`, a `.md` address, or `?mode=agent`.

# Quartiles and the Interquartile Range

Find the median, the quartiles and the interquartile range of a data set, and use the interquartile range to compare how spread out two sets are.

Subject: Mathematics · Area: Data & Statistics · Ages 15 to 16
Page: https://lightmysky.com/learn/mathematics/quartiles-and-the-interquartile-range-mt_vN10d1I9dA

## Ready when they can

- Find the lower and upper quartile positions in an ordered list
- Work out the interquartile range and say what it measures
- Explain why the interquartile range survives one extreme value better than the range

## Lesson: Cutting a List Into Quarters

The survey is filed and the park is roped off. Wren Lane runs a two-lap race round it every summer, and this year eleven people finished. Their times in minutes, in order, were 21, 23, 24, 26, 27, 29, 30, 32, 35, 41 and 58. These are the real times, with no bands and nothing to estimate. The median you already know: position (11 + 1) / 2 = 6, so the sixth time, 29 minutes. Every summary here is found by counting to a position, which only means something once the list is in order.

*(drawing: Three cuts across the race: 24 minutes, 29 minutes and 35 minutes. The long tail out to 58 is one runner, not a crowd.)*

The median cut the list in half. Two more cuts give you quarters, and they are found the same way, by position. The lower quartile is at position (n + 1) / 4 and the upper quartile is at position 3(n + 1) / 4. For the eleven runners that is (11 + 1) / 4 = 3 and 3 × 12 / 4 = 9. Count along: the third time is 24 and the ninth is 35. So the lower quartile is 24 minutes and the upper quartile is 35 minutes. When a position lands halfway between two places, take the halfway point of the two times.

Those three cuts split the runners into four groups holding the same number of people, not the same spread of time. About a quarter of the field was home by 24 minutes. About a quarter took longer than 35. The half in the middle finished somewhere between 24 and 35. That middle half is the part of a race most people care about, because it is where the ordinary runner is, away from the one who sprinted and the one who stopped to fix a shoelace.

*(drawing: Twelve dots instead of the race's eleven, so the quarters divide evenly on the page. The cuts are made by counting, so the four groups hold the same number each. The stretch of value they cover can be wildly different.)*

**Example.** The interquartile range is the distance between the two outer cuts: upper quartile minus lower quartile. For this race that is 35 - 24 = 11 minutes. It measures how spread out the middle half of the field was. Set it beside the range, which is the whole spread from first to last: 58 - 21 = 37 minutes. Two honest numbers, three times apart. Turn the subtraction round and the upper quartile is the lower quartile plus the interquartile range. Two races with the same median but interquartile ranges of 5 and 20 minutes had very different middles: one bunched, one strung out.

That gap is the point. The 58 belongs to a runner who pushed a buggy round both laps. Suppose she had walked it in 90 minutes instead. The range would leap from 37 to 90 - 21 = 69, nearly doubling, on the strength of one person. The lower quartile stays 24 and the upper quartile stays 35, so the interquartile range is still 11. The cuts are made by position, and a bigger last number is still just the last number. One odd entry cannot drag a quartile.

**Recap.** The lower quartile sits at position (n + 1) / 4 and the upper quartile at 3(n + 1) / 4 of an ordered list, with the median's position halfway between those two positions. The interquartile range is upper quartile minus lower quartile, and it measures the spread of the middle half. Because the cuts are made by counting positions, one extreme value moves the range a long way and leaves the interquartile range where it was.

## Practice

24 questions on this page, each with its working shown.

## Needs first

- [Estimating the Mean from Grouped Data](https://lightmysky.com/learn/mathematics/estimating-the-mean-from-grouped-data-mt_3PHP7NLZAw)

## Opens up

- [Box Plots and Comparing Distributions](https://lightmysky.com/learn/mathematics/box-plots-and-comparing-distributions-mt_G_SnfEllzQ)
