What the first quartile (Q1) is
The first quartile, written Q1, is the value that separates the lowest 25% of a dataset from the top 75% once the numbers are sorted from smallest to largest. It is also called the lower quartile or the 25th percentile. Together with the median (Q2, the 50th percentile) and the third quartile (Q3, the 75th percentile), it divides the data into four groups that each hold about one quarter of the values.
Q1 is a positional statistic: it depends only on the order of the values, not on how large the extremes are. That makes it resistant to outliers, which is why quartiles are the backbone of box-and-whisker plots and of the standard outlier rule (a point below Q1 − 1.5·IQR or above Q3 + 1.5·IQR).
How this calculator computes Q1
It uses the median-of-halves method (also known as Tukey's hinges, the "exclusive" method used in many introductory statistics courses):
- Sort all the numbers in ascending order.
- Find the median (Q2). If the count is odd, the single middle value is the median and is not placed in either half.
- Take the lower half — every value below the median position — and find its median. That is Q1. The median of the upper half is Q3.
Worked example with 9 sorted values: 3, 5, 7, 8, 12, 13, 14, 18, 21. The median is the 5th value, 12. The lower half is 3, 5, 7, 8, and its median is (5 + 7) / 2 = 6, so Q1 = 6. The upper half is 13, 14, 18, 21, so Q3 = (14 + 18) / 2 = 16, and the IQR is 16 − 6 = 10.
A note on methods
Quartiles have no single universal definition. This tool's median-of-halves result can differ slightly from a spreadsheet's built-in function. Excel's QUARTILE / QUARTILE.INC uses linear interpolation at position (n−1)·0.25 + 1, and QUARTILE.EXC uses position (n+1)·0.25; R offers nine "types." For most datasets the differences are small, and any of these methods is defensible as long as you report which one you used.
Common reference points
- Q1 = 25th percentile. A quarter of the data is at or below it.
- IQR = Q3 − Q1 spans the middle 50% of the data and is the standard robust measure of spread.
- Five-number summary: minimum, Q1, median, Q3, maximum — the values a box plot draws.
- Outlier fences: lower fence = Q1 − 1.5·IQR, upper fence = Q3 + 1.5·IQR.