The upper quartile in a box plot is the right (or top) edge of the box. It marks the 75th percentile of your data, meaning 75% of all values fall at or below this point and the highest 25% fall above it. It’s also called the third quartile, or Q3.
Where Q3 Sits on a Box Plot
A box plot has five key landmarks: the minimum value, the lower quartile (Q1), the median, the upper quartile (Q3), and the maximum value. The “box” portion spans from Q1 to Q3, covering the middle 50% of the data. A line inside the box marks the median. The upper quartile forms the right edge of that box in a horizontal plot, or the top edge in a vertical one. From that edge, a “whisker” extends outward toward the highest values in the dataset.
So when you look at a box plot, everything inside the box to the right of the median line (or above it, in a vertical layout) represents the data between the 50th and 75th percentiles. Everything beyond the right edge of the box sits in the top 25%.
What the Upper Quartile Actually Tells You
The upper quartile is the value that separates the top quarter of your data from the bottom three quarters. If you’re looking at test scores and Q3 is 88, that means 75% of students scored 88 or lower. Only 25% scored higher.
This makes Q3 useful for understanding where the “high end” of typical performance begins. Values between Q1 and Q3 represent the bulk of the distribution, the middle 50%. Values above Q3 are relatively high for that dataset, and values below Q1 are relatively low.
How To Calculate the Upper Quartile
To find Q3, start by sorting your data from smallest to largest. Find the median of the entire dataset, which splits it into a lower half and an upper half. Q3 is then the median of that upper half.
This works cleanly when you have an even number of data points. With an odd number, you have to decide what to do with the middle value. There are two common approaches:
- Inclusive method: Include the overall median in both the lower and upper halves, then find the median of each half.
- Exclusive method: Exclude the overall median from both halves before finding Q1 and Q3.
These two methods can give slightly different results for small datasets. Most textbooks and calculators are consistent within their own approach, but if your answer doesn’t match a classmate’s or an online tool’s, this is almost always the reason. For large datasets, the difference becomes negligible.
A Quick Example
Take this dataset of nine values: 2, 4, 5, 7, 8, 10, 12, 14, 16. The overall median is 8 (the fifth value). Using the exclusive method, you’d ignore the 8 and find the median of the upper half: 10, 12, 14, 16. The median of those four numbers is (12 + 14) / 2 = 13. So Q3 is 13. Using the inclusive method, you’d include the 8 in the upper half: 8, 10, 12, 14, 16. The median of those five numbers is 12. So Q3 would be 12 instead.
How Q3 Connects to the Interquartile Range
The interquartile range (IQR) is one of the most common measures of spread, and it depends directly on Q3. The formula is simple: IQR = Q3 minus Q1. This gives you the range covered by the middle 50% of the data, which is the width of the box in a box plot.
If Q1 is 5 and Q3 is 13, the IQR is 8. A narrow box means the middle half of your data is tightly clustered. A wide box means more variation. Because the IQR ignores the extreme highs and lows, it’s more resistant to outliers than the full range.
How Q3 Helps Identify Outliers
The upper quartile also plays a role in flagging unusually high values. The standard rule: any data point more than 1.5 times the IQR above Q3 is considered an outlier. This threshold is called the upper fence.
For example, if Q3 is 90 and the IQR is 10, the upper fence is 90 + (1.5 × 10) = 105. Any value above 105 would be plotted as an individual dot beyond the whisker rather than included in the whisker’s range. This is why some box plots have dots or asterisks floating past the whiskers. The whisker extends only to the highest value that falls within the fence, not necessarily to the true maximum.
This distinction matters when you’re reading box plots in the wild. A whisker that looks short with several dots beyond it tells a very different story than a long whisker with no dots. The first suggests a tight upper range with a few extreme cases. The second suggests a wide but continuous spread.

