How Quartiles Divide a Dataset Into Four Informative Sections

Introduction

Quartiles are values that divide an ordered dataset into four sections, helping you see how its numbers are distributed. The first quartile marks the point below which roughly one-quarter of the observations fall, the second is the median, and the third marks the point below which roughly three-quarters fall. Together, they summarize a dataset’s middle and spread without requiring every value to be compared individually.

What Quartiles Tell You

To find quartiles, first arrange the data from smallest to largest. The three quartile values then split that ordered list into four parts, each containing about the same number of observations. The parts are not necessarily the same width on a number line: a section covering a few values may contain as many observations as a section spanning a much larger range.

The quartiles are usually named Q1, Q2, and Q3. Q1 is the first quartile, Q2 the second quartile, and Q3 the third quartile. They are also called the 25th, 50th, and 75th percentiles, respectively, though the exact calculation of a percentile can depend on the method being used.

Q2 is the median: the midpoint of the ordered data. About half of the observations lie at or below it, and about half lie at or above it. Q1 and Q3 describe the middle portion of the data. Roughly half of all observations fall between these two values.

“Roughly” matters because datasets have a limited number of observations, values can repeat, and different calculation conventions may place quartiles differently. Quartiles describe positions in ordered data; they do not guarantee that exactly 25 percent of the observations are strictly below each quartile value.

How to Calculate Quartiles

A common hand-calculation method is to find the median of the full dataset, then find the medians of the lower and upper halves. The lower half’s median is Q1, and the upper half’s median is Q3. If a half contains an even number of values, its median is the average of its two middle values.

A worked example with an even number of values

Consider these 12 values, already in ascending order:
4, 7, 8, 10, 12, 13, 15, 18, 20, 22, 25, 30

The two middle values in the full list are 13 and 15, so Q2 is their average: (13 + 15) ÷ 2 = 14. The lower half is 4, 7, 8, 10, 12, 13. Its middle values are 8 and 10, so Q1 is 9. The upper half is 15, 18, 20, 22, 25, 30. Its middle values are 20 and 22, so Q3 is 21.

The quartiles divide this example into four groups of three observations when each quartile boundary is treated as a point between values. The sections span different numerical ranges: the data below Q1 covers a range from 4 to 9, while the section from Q2 to Q3 covers a range from 14 to 21. Quartiles balance the number of observations, not the size of each numerical interval.

What changes with an odd number of values?

Consider the ordered list 1, 3, 5, 7, 9. Its median, Q2, is 5. One common convention leaves the overall median out when finding the lower and upper halves. That gives a lower half of 1, 3 and an upper half of 7, 9, so Q1 is 2 and Q3 is 8.

Another convention includes the overall median in both halves. Under that approach, the lower half is 1, 3, 5 and the upper half is 5, 7, 9, giving Q1 = 3 and Q3 = 7. Both conventions are used in practice. For a particular dataset, software package, textbook, or field, check which method is expected before comparing quartile results.

Why Quartile Methods Can Differ

There is no single calculation convention used in every context. Some methods identify a median within each half; others use a position formula and may interpolate between neighboring values. Interpolation means calculating a value between two observed data points rather than selecting one of them directly.

These approaches often produce the same or very similar results, especially in large datasets, but they can differ in small samples. A spreadsheet or statistical tool may use a particular percentile definition, and different tools may offer more than one option. When precision matters, report the method or use the same method consistently across the datasets being compared.

Regardless of the convention, the basic idea is the same: quartiles locate points in an ordered distribution. A quartile value does not have to be an observation that appeared in the original data, particularly when a method uses interpolation.

The Interquartile Range and Data Spread

The interquartile range, often shortened to IQR, is the distance between Q1 and Q3:

IQR = Q3 − Q1

In the 12-value example, Q3 is 21 and Q1 is 9, so the IQR is 12. It describes the spread of the central half of the data. A small IQR means the middle observations are relatively close together; a larger IQR means they are more spread out. What counts as small or large depends on the scale and context of the data.

Because the IQR focuses on the middle half, it is less affected by unusually low or high values than the full range, which is simply the maximum minus the minimum. For instance, adding a very large value to a dataset can greatly change the range, while the IQR may change little. This makes the IQR useful when a dataset is uneven or contains extreme observations.

Quartiles, Box Plots, and Unusual Values

A box plot, also called a box-and-whisker plot, presents quartiles visually. The left or lower edge of the box marks Q1, a line inside the box marks the median, and the opposite edge marks Q3. The box therefore spans the IQR. Whiskers extend beyond the box to show additional values, with the exact convention depending on the plot.

Some box plots use a common rule to flag potential outliers: values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR. These are statistical flags, not proof that a value is wrong or should be removed. A flagged observation may reflect a recording problem, natural variation, or a meaningful feature of the data. It should be checked in context.

Quartiles and box plots can help compare groups, such as scores from two classes or delivery times across several routes. Looking at the median gives a sense of each group’s center, while the boxes show how much the middle observations vary. A longer upper whisker or a median positioned off-center in the box can suggest an uneven distribution, but the underlying data may be needed to understand why.

Where Quartiles Are Useful

Quartiles are useful whenever a reader needs a compact summary of ordered numerical data. They appear in descriptive statistics, data analysis, and visual summaries because they show more than a single average can: the median indicates a central value, while Q1 and Q3 help describe the spread around it.

For example, if a report gives the median and quartiles for travel times, a reader can see both a typical midpoint and the range containing the central half of observations. If two groups have similar medians but different IQRs, their central values are alike while their typical spreads differ.

Quartiles can also help describe distributions that are not symmetrical. In a symmetrical dataset, the median may sit near the center of the box, with similar distances from Q1 to the median and from the median to Q3. If those distances differ, the middle of the distribution may be uneven. Quartiles reveal this pattern, although they do not explain its cause.

What Quartiles Do Not Show

Quartiles compress a dataset into a few useful landmarks, but they do not preserve every detail. Two datasets can have the same Q1, median, and Q3 while differing in their individual observations, their extreme values, or the shape of their distributions. A quartile summary should not be mistaken for a complete account of the data.

Quartiles are also sensitive to the dataset’s scale and composition. The same numerical difference can mean different things in different settings, and quartiles alone do not establish whether a difference between groups is important. For a fuller picture, consider the sample size, the data’s source, the measurement units, and an appropriate graph or additional summary statistics.

Conclusion

Quartiles divide ordered data into four sections containing roughly equal numbers of observations. Q1 marks the lower quarter, Q2 is the median, and Q3 marks the point below which roughly three-quarters of the data lie. Their difference, the IQR, summarizes the spread of the middle half. Because calculation conventions can vary, use a consistent method and interpret quartiles alongside the data’s context.