Quartiles, Percentiles and the Interquartile Range: How to Describe Spread Without Being Fooled by Outliers

Learn what quartiles and percentiles mean, how to calculate the interquartile range step by step, and how to use it to spot outliers.

Share on Linkedin Share on WhatsApp

Estimated reading time: 6 minutes

Article image Quartiles, Percentiles and the Interquartile Range: How to Describe Spread Without Being Fooled by Outliers

Averages are useful, but they hide a lot. Two classes can have the same average test score while one has everyone clustered around the middle and the other has a mix of top scores and failing grades. To describe how data is spread out, statisticians often turn to quartiles, percentiles and the interquartile range (IQR). These tools are simple to calculate, easy to explain and, unlike the range or the mean, they are not thrown off by a single extreme value. This guide walks you through each concept with a worked example.

Percentiles: where a value stands

A percentile tells you the percentage of values in a dataset that fall at or below a given point. If your score is at the 80th percentile, roughly 80% of scores are at or below yours. Percentiles are about position, not about the score itself: being at the 80th percentile does not mean you got 80% of the questions right.

You meet percentiles often in everyday life: children’s growth charts, standardized test reports and website performance metrics (for example, “95th percentile load time”) all use them.

Quartiles: cutting the data into four parts

Quartiles are simply three special percentiles that split sorted data into four groups of roughly equal size:

QuartileEquivalent percentileMeaning
Q1 (first or lower quartile)25thAbout a quarter of the values are at or below it
Q2 (second quartile)50thThe median: half the values are below, half above
Q3 (third or upper quartile)75thAbout three quarters of the values are at or below it

Together with the minimum and maximum, the three quartiles form the well-known five-number summary, which is exactly what a box plot draws.

Calculating quartiles step by step

Let’s use a small dataset: the number of minutes nine students spent on homework one evening.

Data (already sorted): 2, 4, 4, 5, 7, 8, 9, 11, 15

  1. Find the median (Q2). With nine values, the middle one is the 5th: 7.
  2. Split the data into a lower and an upper half. One common textbook method leaves the median out: the lower half is 2, 4, 4, 5 and the upper half is 8, 9, 11, 15.
  3. Find Q1, the median of the lower half: (4 + 4) ÷ 2 = 4.
  4. Find Q3, the median of the upper half: (9 + 11) ÷ 2 = 10.

So the five-number summary is: minimum 2, Q1 = 4, median 7, Q3 = 10, maximum 15.

A note on methods: there are several accepted ways to compute quartiles, and they can give slightly different answers, especially with small datasets. Spreadsheet programs reflect this; Excel, for example, has both QUARTILE.INC and QUARTILE.EXC. Neither is “wrong”. What matters is using one method consistently and mentioning which one you used when precision matters.

The interquartile range (IQR)

The interquartile range is the distance between the upper and lower quartiles:

IQR = Q3 − Q1

In our example, IQR = 10 − 4 = 6 minutes. This tells us that the middle half of the students spent within a 6-minute band of each other.

Why not just use the range (maximum minus minimum)? Because the range depends entirely on the two most extreme values. If one student had spent 90 minutes, the range would jump from 13 to 88, even though nothing changed for everyone else. The IQR ignores the top and bottom quarters, so a single unusual value barely moves it. In statistical language, the IQR is a robust measure of spread.

Using the IQR to spot outliers

A widely used rule of thumb, popularized by the statistician John Tukey, flags a value as a potential outlier if it lies more than 1.5 × IQR beyond the quartiles:

  • Lower fence: Q1 − 1.5 × IQR
  • Upper fence: Q3 + 1.5 × IQR

For our data: 1.5 × 6 = 9, so the lower fence is 4 − 9 = −5 and the upper fence is 10 + 9 = 19. Every value lies between −5 and 19, so there are no outliers by this rule. If a tenth student had reported 40 minutes, that value would sit well beyond the upper fence and deserve a closer look.

Remember that “outlier” does not automatically mean “error”. It means “check this”. It might be a typo, a measurement problem, or a perfectly real case that tells an interesting story.

Reading a box plot

A box plot (or box-and-whisker plot) turns these numbers into a picture:

  • The box stretches from Q1 to Q3, so its length is the IQR.
  • A line inside the box marks the median.
  • The whiskers extend toward the smallest and largest values that are still within the fences.
  • Points plotted beyond the whiskers are potential outliers.

Box plots shine when comparing groups side by side. A tall box means a lot of variation in the middle of the data; a median line close to one edge of the box suggests the data is skewed.

IQR or standard deviation?

Interquartile rangeStandard deviation
Based onPositions (quartiles)Distances from the mean
Sensitive to outliers?Very littleYes, quite sensitive
Usually paired withThe medianThe mean
Best forSkewed data, data with extreme valuesRoughly symmetric, bell-shaped data

A good habit: when data is skewed (incomes, house prices, response times), report the median and IQR. When it is roughly symmetric, the mean and standard deviation work well.

Conclusion

Percentiles tell you where a value stands, quartiles divide data into four parts, and the interquartile range measures how spread out the middle half is, without being distorted by extremes. With the 1.5 × IQR rule and a box plot, you can summarize and compare datasets quickly and honestly. If you’d like to build a solid foundation in descriptive statistics, probability and data analysis, take a look at the free statistics courses available on Cursa.

The Bronze Age Collapse: When an Entire Interconnected World Fell Apart

Around 1200 BCE several Mediterranean civilisations collapsed within decades. Here is what happened, the leading explanations, and why it still matters.

Correlation Is Not Causation: How to Read a Data Chart Without Being Fooled

Two lines moving together rarely prove one caused the other. Learn the traps behind correlation and how analysts test for real causal links.

Sample Size and Margin of Error: How a Survey of 1,000 People Represents Millions

Why polling 1,000 people can describe a whole country, what margin of error really means, and how bad sampling ruins good statistics.

The Silk Road: How a Network of Trade Routes Connected the Ancient World

The Silk Road was never one road, and silk was only part of the story. A clear look at the routes, the goods, the ideas and why the network faded.

Why Steel Ships Float: Buoyancy and Archimedes’ Principle Explained

Density, displacement and pressure explain why a steel ship floats while a steel bolt sinks. A clear introduction to buoyancy for beginners.

The Pythagorean Theorem: What It Is and How to Use It

Learn what the Pythagorean theorem is, why it works, and how to use this essential geometry rule to find the sides of right triangles.

What Is Stoicism? A Beginner’s Guide to the Ancient Philosophy

Discover the core ideas of Stoicism, the philosophers behind it, and practical ways to apply its wisdom to daily life.

Why Every World Map Is Wrong: Map Projections Explained

Every flat map distorts the round Earth. Learn what map projections trade away, why Greenland looks huge, and how to read maps critically.