Quartiles Formula

Quartiles divide an ordered data set into four equal parts: Q1 is the 25th percentile, Q2 is the median (50th), and Q3 is the 75th percentile.

The Formula

Q1=median of lower half, Q3=median of upper half

Ask yourself: Am I splitting ordered data into four groups that each contain the same fraction of the values?

Quick example

Data: 1, 2, 3, 4, 5, 6, 7, 8. Q1=2.5, Q2=4.5, Q3=6.5.

Notation

Q1 (25th percentile), Q2 (median, 50th percentile), Q3 (75th percentile)

What this formula means

Quartiles divide an ordered data set into four equal parts: Q1 is the 25th percentile, Q2 is the median (50th), and Q3 is the 75th percentile.

Quartiles are the three marks that cut a line of people into four teams of equal size. If the people stand unevenly spaced, the teams cover different stretches of ground. Moving the last person farther away lengthens the last team's stretch but does not move any of the cuts.

Formal view

Qp is the value where P(X≤Qp)=p; specifically Q1=Q0.25, Q2=Q0.50, Q3=Q0.75

Worked examples

Example 1

easy
Find the quartiles Q1, Q2, and Q3 for the data set: {4,7,9,11,14,18,22,25,30}.
Show solution

Answer

Q1=8, Q2=14, Q3=23.5

First step

1.
The data is already sorted; n=9

Full solution

  1. 2.
    Q2 (median): middle value at position 5 → Q2=14
  2. 3.
    Lower half (below median): {4,7,9,11}; Q1 = median of lower half =7+92=8
  3. 4.
    Upper half (above median): {18,22,25,30}; Q3 = median of upper half =22+252=23.5
Quartiles divide ordered data into four equal parts. Q1 is the 25th percentile, Q2 (median) is the 50th percentile, and Q3 is the 75th percentile. For even-sized halves, average the two middle values.

Example 2

medium
A dataset of 10 values (sorted): {2,5,8,12,15,18,21,25,30,40}. Find all quartiles and the five-number summary.

Example 3

medium
Find Q1, Q2, and Q3 for the dataset: 4,7,8,12,15,18,21,25,30.

Common mistakes

  • Splitting by equal value width instead of equal count — quartiles divide the data into equal numbers of points, not equal ranges.
  • Forgetting to order the data first — quartiles, like the median, require a sorted list.
  • Confusing Q2 with the mean — Q2 is the median (the 50th-percentile rank), which may differ from the average.

Why this formula matters

Quartiles tell you where you stand, not just the average: a child at the 75th percentile for height is taller than three quarters of children the same age. Because they depend on rank, one extreme value barely moves them, which is why Q1 and Q3 are used to build the outlier-resistant IQR and the box plot.

Frequently asked questions

What is the Quartiles formula?

Quartiles divide an ordered data set into four equal parts: Q1 is the 25th percentile, Q2 is the median (50th), and Q3 is the 75th percentile.

How do you use the Quartiles formula?

Use quartiles when a question asks about the 25th or 75th percentile, the top or bottom quarter, where a value ranks within a group, or what you need to draw a box plot. They suit skewed data and data with outliers, because they depend on order rather than size. For a single center, use the median (Q2); for one spread number, the IQR, Q3−Q1; for a typical distance from the mean, the standard deviation.

What do the symbols mean in the Quartiles formula?

Q1 (25th percentile), Q2 (median, 50th percentile), Q3 (75th percentile)

Why is the Quartiles formula important in Math?

Quartiles tell you where you stand, not just the average: a child at the 75th percentile for height is taller than three quarters of children the same age. Because they depend on rank, one extreme value barely moves them, which is why Q1 and Q3 are used to build the outlier-resistant IQR and the box plot.

What do students get wrong about Quartiles?

The procedure for quartiles is the easy part; the trap is splitting by equal value width instead of equal count. Asking "Am I splitting ordered data into four groups that each contain the same fraction of the values?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Quartiles formula?

Before studying the Quartiles formula, you should understand: median.