How to Find Quartiles: Step-by-Step Guide with Examples
Imagine a teacher hands you 15 test scores and asks: "Where does the bottom quarter end? Where does the top quarter begin?" Those boundaries are quartiles. Learning to find them accurately is essential for understanding data distribution, creating box plots, and computing the five number summary.
What Are Quartiles?
Quartiles are values that divide a sorted dataset into four equal parts, with each part containing 25% of the data:
- Q1 (First Quartile): Also called the lower quartile or 25th percentile. 25% of data falls below this value.
- Q2 (Second Quartile): This is the median or 50th percentile. Half the data falls below and half above.
- Q3 (Third Quartile): Also called the upper quartile or 75th percentile. 75% of data falls below this value.
The relationship between quartiles and percentiles is simple: Q1 = 25th percentile, Q2 = 50th percentile, Q3 = 75th percentile.
Step-by-Step: Finding Quartiles
Step 1: Sort Your Data
Always begin by arranging your data from smallest to largest. This is the most critical step. Attempting to find quartiles from unsorted data will give incorrect results.
Example dataset: 7, 15, 36, 39, 40, 41
Already sorted, so we can proceed.
Step 2: Find the Median (Q2)
The median is the middle value of your dataset. The calculation depends on whether you have an odd or even number of data points:
For odd count: The median is the value at position (n + 1) / 2, where n is the number of values.
For even count: The median is the average of the two middle values—those at positions n/2 and (n/2) + 1.
In our example with 6 values (even count), the median is the average of the 3rd and 4th values: (36 + 39) / 2 = 37.5
Step 3: Find Q1 (First Quartile)
Q1 is the median of the lower half of your data—all values below the overall median.
For our example, the lower half is: 7, 15, 36
The median of this lower half is 15, so Q1 = 15.
Step 4: Find Q3 (Third Quartile)
Q3 is the median of the upper half of your data—all values above the overall median.
For our example, the upper half is: 39, 40, 41
The median of this upper half is 40, so Q3 = 40.
Check the three quartile values with the Q1, median, and Q3 calculator.
Example 1: Odd Number of Data Points
Dataset: 3, 7, 8, 5, 12, 14, 21
Step 1: Sort: 3, 5, 7, 8, 12, 14, 21
Step 2: Find median (Q2): With 7 values, the median is the 4th value = 8
Step 3: Find Q1: Lower half is 3, 5, 7. Median = 5, so Q1 = 5
Step 4: Find Q3: Upper half is 12, 14, 21. Median = 14, so Q3 = 14
Result: Q1 = 5, Q2 = 8, Q3 = 14
Example 2: Even Number of Data Points
Dataset: 4, 8, 15, 16, 23, 42
Step 1: Sort: Already sorted: 4, 8, 15, 16, 23, 42
Step 2: Find median (Q2): With 6 values, median = (15 + 16) / 2 = 15.5
Step 3: Find Q1: Lower half is 4, 8, 15. Median = 8, so Q1 = 8
Step 4: Find Q3: Upper half is 16, 23, 42. Median = 23, so Q3 = 23
Result: Q1 = 8, Q2 = 15.5, Q3 = 23
Different Methods for Calculating Quartiles
An important note that confuses many students: there are multiple valid methods for calculating quartiles, and they can give slightly different answers for the same dataset.
The two most common methods are:
- Inclusive (Tukey's Hinges): Includes the median in both halves when the dataset has an odd count. Common in statistics courses.
- Exclusive (TI-83/84): Excludes the median from both halves when the dataset has an odd count. Used by Texas Instruments calculators.
For a detailed comparison, see our guide on Quartile Calculation Methods Compared.
Note
Different calculators and software may give slightly different Q1 and Q3 values. This is because they use different methods, not because one is wrong. Always use the method required by your course or organization.
Common Mistakes to Avoid
- Forgetting to sort first: This is the #1 mistake. Always sort your data before calculating anything.
- Wrong formula for even/odd datasets: Remember that median calculation differs based on count.
- Including/excluding median incorrectly: Know which method your course uses for splitting halves.
- Confusing quartile position with value: Q1 is not the first quarter of values. It's a specific percentile position.
Video Tutorial
Watch this comprehensive tutorial on finding quartiles and the five number summary:
Video by Mathispower4u. For more video tutorials, see our Video Resources page.
Conclusion
Finding quartiles follows a straightforward process: sort your data, find the median, then find the median of each half. The key is being consistent with your method and careful with your calculations.
Ready to practice? Try the practice problems or verify calculations with the online calculator.
Verify Your Calculations
Use the free five number summary calculator to check your work.
Open CalculatorWritten by Oge Nwaozuzu
Statistics educator and data analyst. Creator of 5numbersummarycalculator.app.