Statistical Concepts

Quartile: What It Is, How to Calculate Q1, Q2, Q3, and Box Plot Basics

6 min read

Learn what quartiles are, how to calculate Q1, Q2, and Q3, and how quartiles connect to box plots and data analysis.

What Is a Quartile?

A quartile is any of three values that divide a sorted dataset into four equal parts, each containing 25% of the observations. Q1 (the first quartile) marks the 25th percentile, 25% of data falls below it. Q2 (the second quartile) is the median, splitting the data in half at the 50th percentile. Q3 (the third quartile) marks the 75th percentile, 75% of data falls below it. Together, quartiles give you a quick summary of how data is distributed: where the middle falls, how spread out the central 50% is, and whether the distribution leans toward higher or lower values. They're one of the most fundamental tools in descriptive statistics.

Why Quartiles Matter

Quartiles provide a distribution-free summary that works regardless of data shape. While the mean and standard deviation assume symmetry, quartiles accurately describe skewed data, data with outliers, and non-normal distributions. They're the foundation of box plots, the interquartile range, and common outlier detection rules. In business, quartile-based reporting ("top quartile performance," "bottom 25% of customers") communicates clearly without requiring statistical sophistication from the audience.

How Quartiles Work

Calculation Method

Step 1: Sort the data in ascending order.

Step 2: Find Q2 (the median).

  • If n is odd, Q2 is the middle value.
  • If n is even, Q2 is the average of the two middle values.

Step 3: Find Q1, the median of the lower half of the data (values below Q2).

Step 4: Find Q3, the median of the upper half of the data (values above Q2).

Worked Example

Monthly revenue (in thousands) for 12 stores, sorted:

18, 22, 25, 30, 33, 35, 38, 42, 45, 50, 55, 68

n = 12

Q2 (Median): Average of 6th and 7th values = (35 + 38) / 2 = 36.5

Lower half: 18, 22, 25, 30, 33, 35 Q1: Average of 3rd and 4th values = (25 + 30) / 2 = 27.5

Upper half: 38, 42, 45, 50, 55, 68 Q3: Average of 3rd and 4th values = (45 + 50) / 2 = 47.5

Summary:

  • Q1 = $27,500, 25% of stores earn less than this
  • Q2 = $36,500, the middle store earns about this
  • Q3 = $47,500, 75% of stores earn less than this
  • IQR = Q3 - Q1 = $47,500 - $27,500 = $20,000

The Five-Number Summary

Quartiles are three of the five values in the five-number summary:

  1. Minimum: the smallest value (18)
  2. Q1: the first quartile (27.5)
  3. Q2 (Median): the second quartile (36.5)
  4. Q3: the third quartile (47.5)
  5. Maximum: the largest value (68)

This summary captures the center, spread, and range of your data in just five numbers.

Box Plots: Visualizing Quartiles

A box plot (box-and-whisker plot) is the graphical representation of quartiles:

  • The box spans from Q1 to Q3, representing the middle 50% of data (the interquartile range)
  • A line inside the box marks Q2 (the median)
  • Whiskers extend from the box to the smallest and largest values within 1.5 × IQR of the quartiles
  • Points beyond the whiskers are plotted individually as potential outliers

Box plots are powerful for comparing distributions across groups. Placing side-by-side box plots for different customer segments, product lines, or time periods lets you visually compare medians, spread, and skewness at a glance.

What Quartiles Reveal About Distribution Shape

  • Q2 centered between Q1 and Q3: The middle 50% is roughly symmetric
  • Q2 closer to Q1: The distribution is right-skewed (longer tail toward higher values)
  • Q2 closer to Q3: The distribution is left-skewed (longer tail toward lower values)
  • Large IQR: High variability in the central portion of the data
  • Small IQR: Data is concentrated around the median

For the revenue example: Q2 (36.5) is closer to Q1 (27.5) than to Q3 (47.5), suggesting a slight right skew, a few high-revenue stores are pulling the upper portion of the distribution outward.

Quartiles vs. Other Division Methods

Division Number of Parts Key Positions
Quartiles 4 parts (25% each) Q1, Q2, Q3
Quintiles 5 parts (20% each) P20, P40, P60, P80
Deciles 10 parts (10% each) P10, P20..., P90
Percentiles 100 parts (1% each) P1, P2..., P99

Quartiles are the most commonly used because four groups (bottom 25%, lower-middle 25%, upper-middle 25%, top 25%) balance simplicity with useful granularity.

When to Use Quartiles

  • Summarizing distributions when you need a quick, assumption-free overview of your data's center and spread
  • Comparing groups with box plots to visually contrast distributions across segments
  • Identifying outliers using the 1.5 × IQR rule
  • Reporting performance tiers: "top quartile" and "bottom quartile" are universally understood business terms
  • Describing skewed data where the mean and standard deviation give a misleading picture

Common Mistakes to Avoid

  • Using quartiles with very small datasets: with fewer than 12 observations, quartiles are unstable and may not accurately represent the distribution
  • Confusing "quartile" with "quarter": Q1 is the value at the 25th percentile, not the bottom 25% itself; the bottom 25% is the first quarter of the data
  • Ignoring the method used to calculate quartiles: different software uses slightly different interpolation methods, which can produce different Q1 and Q3 values; for small datasets, the differences can be noticeable

How Quali-Fi Supports Quartile Analysis

Quali-Fi automatically calculates quartiles and generates box plots for continuous survey metrics. The platform's benchmarking module places your results within industry quartile bands, and the outlier detection feature uses IQR-based rules to flag unusual responses for review.

Visualize your data with Quali-Fi

Frequently Asked Questions

Is Q2 always the same as the mean?

No. Q2 is the median, the middle value when data is sorted. The mean is the arithmetic average. For symmetric distributions, they're the same. For skewed distributions, they differ. Income is a classic example: the median household income is typically lower than the mean because a small number of very high earners pull the mean upward.

Can quartiles be used with categorical data?

No. Quartiles require data that can be ordered and sorted, at minimum, ordinal data. They're most meaningful with continuous data (interval or ratio scales). For categorical data (like product categories or regions), use frequencies and proportions instead.

How do I interpret a box plot with no whiskers?

If a whisker has zero length, it means Q1 or Q3 equals the minimum or maximum value within the 1.5 × IQR boundary. This can happen with data that clusters tightly on one end. It's not an error, it just means there's no spread between the quartile and the boundary.

Frequently Asked Questions

Related Guides

Put it into practice

Ready to apply this in your research?

Quali-Fi makes it easy to run surveys, conjoint studies, and more, all in one platform.