Quartiles Calculator

Published on: November 26, 2026
Final Answer: Free | Full Steps: Plus

This Quartiles Calculator splits a list of numbers into four equal parts and shows the working line by line. It sorts the values, finds the median of the whole list as the middle quartile, and then splits the sorted list into a lower half and an upper half. With an odd number of values the median itself is left out of both halves. The median of each half gives the lower and the upper quartile, so the same pattern of sorting and finding medians gives all three.

Step-by-step method

  1. Set up the problem.
  2. Sort the values from smallest to largest.
  3. Find the median of the whole list.
  4. Split the sorted list into a lower half and an upper half.
  5. Find the median of each half.

Useful Tips to Remember

Quartiles split ordered data into four equal parts. The lower quartile \(Q_1\) is the median of the lower half, the median \(Q_2\) is the middle, and the upper quartile \(Q_3\) is the median of the upper half. Always order the data first. Methods differ on whether the median is included in each half, so small differences between answers are normal.

Required knowledge

Where Are Quartiles Used?

Quartiles split ordered data into four equal parts, with the lower quartile, median and upper quartile marking the boundaries. They show how data is spread out, not just where its centre is, which is why they are used to compare groups and draw box plots. Schools use quartiles to group students by results, analysts use them to describe incomes and prices, and researchers use them to report typical ranges in data. They also give the interquartile range, which is used to find outliers.

  • Grouping students into top, middle and bottom quarters
  • Describing how incomes and prices are spread out
  • Marking the edges of the box on a box plot
  • Comparing performance between teams or branches
  • Finding the interquartile range and outliers

Quartiles Practice Problems

Example 1 uses eight ordered values, and Example 2 uses nine unordered values that must be sorted first. Try splitting the data into halves yourself before checking. For two more free worked examples, check out the Quartiles Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Sort the values from smallest to largest.
  3. Find the median of the whole list.
  4. Split the sorted list into a lower half and an upper half.
  5. Find the median of each half.

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the three quartiles of \(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\).

\(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\)

Step 2

Step 2 - Sort the values from smallest to largest.

In this problem: Putting the values in order from smallest to largest gives \(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\).

\(1,\; 2,\; 3,\; 4,\; 5,\; 6,\; 7,\; 8\)

Step 3

Step 3 - Find the median of the whole list.

In this problem: The middle quartile \(Q_2\) is the median of the whole list, \(Q_2 = 4.5\).

\(Q_2 = 4.5\)

Step 4

Step 4 - Split the sorted list into a lower half and an upper half.

In this problem: There is an even number of values, so the sorted list splits straight down the middle.

\(\underbrace{1,\; 2,\; 3,\; 4}_{\text{lower half}},\; \underbrace{5,\; 6,\; 7,\; 8}_{\text{upper half}}\)

Step 5

Step 5 - Find the median of each half.

In this problem: The lower quartile is the median of the lower half, and the upper quartile is the median of the upper half.

\(\text{lower half} = 1,\; 2,\; 3,\; 4 \qquad \text{upper half} = 5,\; 6,\; 7,\; 8\)

Step 5a

Step 5a - Find the median of the lower half.

In this problem: The median of \(1,\; 2,\; 3,\; 4\) is \(2.5\).

\(Q_1 = 2.5\)

Step 5b

Step 5b - Find the median of the upper half.

In this problem: The median of \(5,\; 6,\; 7,\; 8\) is \(6.5\).

\(Q_3 = 6.5\)

Final Answer

\(Q_1 = 2.5,\; Q_2 = 4.5,\; Q_3 = 6.5\)
See Example 2 Hide Example 2

Problem

\(3,\; 7,\; 8,\; 5,\; 12,\; 14,\; 21,\; 13,\; 18\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Sort the values from smallest to largest.
  3. Find the median of the whole list.
  4. Split the sorted list into a lower half and an upper half.
  5. Find the median of each half.

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the three quartiles of \(3,\; 7,\; 8,\; 5,\; 12,\; 14,\; 21,\; 13,\; 18\).

\(3,\; 7,\; 8,\; 5,\; 12,\; 14,\; 21,\; 13,\; 18\)

Step 2

Step 2 - Sort the values from smallest to largest.

In this problem: Putting the values in order from smallest to largest gives \(3,\; 5,\; 7,\; 8,\; 12,\; 13,\; 14,\; 18,\; 21\).

\(3,\; 5,\; 7,\; 8,\; 12,\; 13,\; 14,\; 18,\; 21\)

Step 3

Step 3 - Find the median of the whole list.

In this problem: The middle quartile \(Q_2\) is the median of the whole list, \(Q_2 = 12\).

\(Q_2 = 12\)

Step 4

Step 4 - Split the sorted list into a lower half and an upper half.

In this problem: There is an odd number of values, so the median \(12\) is left out and the values either side of it make the two halves.

\(\underbrace{3,\; 5,\; 7,\; 8}_{\text{lower half}},\; 12,\; \underbrace{13,\; 14,\; 18,\; 21}_{\text{upper half}}\)

Step 5

Step 5 - Find the median of each half.

In this problem: The lower quartile is the median of the lower half, and the upper quartile is the median of the upper half.

\(\text{lower half} = 3,\; 5,\; 7,\; 8 \qquad \text{upper half} = 13,\; 14,\; 18,\; 21\)

Step 5a

Step 5a - Find the median of the lower half.

In this problem: The median of \(3,\; 5,\; 7,\; 8\) is \(6\).

\(Q_1 = 6\)

Step 5b

Step 5b - Find the median of the upper half.

In this problem: The median of \(13,\; 14,\; 18,\; 21\) is \(16\).

\(Q_3 = 16\)

Final Answer

\(Q_1 = 6,\; Q_2 = 12,\; Q_3 = 16\)

Notes and Practice Mode

Example Problems

Click one to load it into the box and solve it.