Quartiles: Definition, Method, and Examples
Quartiles divide ordered numerical data into four equal parts. The first quartile, , marks the lower quarter of the dataset. The second quartile, , is the median. The third quartile, , marks the upper quarter. Together, these three values summarize the distribution of a dataset.
Always order the data from smallest to largest before finding quartiles.

These three positions split any sorted numerical dataset so that approximately twenty-five percent of the data values fall into each of the four sections.
What are quartiles?
Quartiles are boundary values that break a dataset into manageable segments. They help describe the center and the spread of the data.
The three boundaries are formally called the first, second, and third quartiles. The first quartile () is also known as the lower quartile. The second quartile () is the median, which identifies the exact middle of the entire dataset. The third quartile () is known as the upper quartile.
Using these boundaries, mathematicians evaluate how concentrated or stretched out the data is. The distance between the lower and upper quartile is known as the interquartile range, which measures the spread of the middle fifty percent of the data.
Order the data
Before calculating any quartile, the dataset must be arranged in ascending order, from the smallest value to the largest value.
If you attempt to find the middle values of an unordered list, the results will just be random numbers from the sequence rather than true mathematical boundaries. Quartiles rely on the numerical rank of each value, not its original placement in a list.
Find Q1, Q2 and Q3
To find the quartiles of a dataset, you identify the medians of different sections of the ordered list.
First, identify the median () of the complete dataset. This value splits the data into a lower half and an upper half. Next, find the median of the lower half to determine . Finally, find the median of the upper half to determine .
Conventions for finding quartiles can differ. Some methods include the median when splitting the data, while others exclude it. The standard method taught here excludes the median. Always use one method consistently.

When a dataset contains an odd number of values, the exact middle number is the median. Exclude this median when finding the lower and upper halves. When a dataset contains an even number of values, the median falls halfway between the two central numbers, naturally splitting the dataset into two equal halves without excluding any values.
Use quartiles from a frequency display
When data is summarized in a frequency table, listing every individual value is impractical. Instead, you can use formulas based on the total number of values, , to find the position of each quartile.
A running total, known as cumulative frequency, helps locate the specific row that contains the target position.
To find the position of the lower quartile (), calculate .
To find the position of the median (), calculate .
To find the position of the upper quartile (), calculate .
Connect quartiles to percentiles
Quartiles and percentiles both divide ordered numerical data into sections. While quartiles split the data into four parts, percentiles split the data into one hundred parts.
The first quartile () marks the point where twenty-five percent of the data is lower. This makes it mathematically equivalent to the 25th percentile.
The median () represents the 50th percentile, as half of the data falls below it.
The third quartile () represents the 75th percentile. Recognizing this relationship simplifies the interpretation of large datasets and standardized test scores.
Worked examples
Example 1: Finding quartiles for an odd number of values
Question: Find the first, second, and third quartiles for the dataset: .
Method:
- Order the data from smallest to largest to get .
- Find the median (), which is the exact middle value of the dataset, .
- Find the median of the lower half () to determine .
- Find the median of the upper half () to determine .
Answer: The lower quartile () is , the median () is , and the upper quartile () is .
Check: Each half contains exactly three values, confirming the split is perfectly balanced.
Example 2: Finding quartiles for an even number of values
Question: Calculate the first, second, and third quartiles for the dataset: .
Method:
- Order the data from smallest to largest to get .
- Find the median (). Since there are eight values, average the two middle numbers: .
- Find the median of the lower half () to determine , which is .
- Find the median of the upper half () to determine , which is .
Answer: The first quartile is , the median is , and the third quartile is .
Check: The original eight numbers are symmetrically divided into four pairs by these boundaries.
Example 3: Finding the lower quartile from a frequency table
Question: A survey records the number of pets owned by families. Find the lower quartile
().
Pets | Frequency |
Method:
- Identify the total frequency, which is .
- Calculate the position of using the formula .
- Substitute to get . The lower quartile is the 5th value in the dataset.
- Use the frequencies to find the 5th value. The first values are , so the 5th value falls into the next group.
Answer: The lower quartile () is pet.
Check: Listing the first few values yields . The 5th value is exactly .
Common mistakes
Not ordering the data first
A frequent mistake is finding the middle values of a dataset exactly as it is written. Data must always be sorted from smallest to largest before locating any quartile.
Confusing position with value
When using formulas like , the result is the position in the list, not the quartile itself. Always count through the ordered data to find the actual data value at that position.
Including the median in the halves
For an odd number of data points, do not include the median when finding the lower and upper halves. Including it will pull the quartiles artificially closer to the center.
Frequently asked questions
Are there only three quartiles?
Yes, there are exactly three quartile boundaries: , , and . These three points are sufficient to divide a dataset completely into four equal quarters.
How do quartiles relate to the interquartile range?
The interquartile range is the difference between the upper quartile and the lower quartile. It is calculated as and represents the middle half of the data, filtering out extreme outliers.
How are quartiles used in graphing?
Quartiles are essential for creating box plots. A box plot visually displays the minimum value, , , , and the maximum value to illustrate the spread and skewness of a distribution.
Practice questions

The median () splits the ordered dataset above into two halves. What is the value of the upper quartile ()?
20
22
23.5
25
23.5
What is the median () of the dataset: ?
5
8
9
12
8
Which percentile is equivalent to the first quartile ()?
10th percentile
25th percentile
50th percentile
75th percentile
25th percentile
A student calculated the lower quartile of the dataset by splitting the list in half exactly as it is written. What mistake did the student make?
The student forgot to order the data.
The student did not find the mean.
The student calculated the median instead.
The student found the upper quartile.
The student forgot to order the data.
A dataset contains values. Using the standard position formula , at which position is the lower quartile () located?
7th position
8th position
9th position
10th position
8th position
