Quartiles in plain words: splitting data into quarters
A quartile is one of the three cut points that split a sorted data set into four equal parts. The first quartile, Q1, marks the 25% point; the second quartile, Q2, is the median at 50%; and the third quartile, Q3, marks the 75% point. Together they describe the shape of a data set far better than a single average ever could.
For the default list on this page, 1, 2, 3, 4, 5, 6, 7, 8 and 9, the quartiles are Q1 = 2.5, Q2 = 5 and Q3 = 7.5. That tells you a quarter of the numbers sit below 2.5, half sit below 5, and three quarters sit below 7.5. The gap between Q1 and Q3 — the interquartile range — is 5, which is the spread of the middle half.
This calculator takes your list of numbers and returns all three quartiles plus the interquartile range. Paste a column of data or type the numbers in; the results update live as you type. Everything runs in your browser, so your data never leaves your device.
How this quartile calculator finds Q1, Q2 and Q3
The calculator uses the Tukey hinges method, the one taught in most school and college statistics courses. First it sorts your numbers from smallest to largest. Then it finds the median — that is Q2. Then it splits the list into a lower half and an upper half, leaving the median out of both halves when the count is odd. Q1 is the median of the lower half and Q3 is the median of the upper half.
Take the default list, 1 to 9. The median is 5. The lower half is 1, 2, 3, 4 and its median is 2.5, so Q1 is 2.5. The upper half is 6, 7, 8, 9 and its median is 7.5, so Q3 is 7.5. Every step is a plain median, so you can check the whole calculation on paper in under a minute.
Other methods exist and can give slightly different answers — some include the median in both halves, others interpolate between positions. If your spreadsheet gives a Q1 of 3 where this calculator gives 2.5, it is using a different convention, not making an error. For school and college work, Tukey hinges is the method most teachers expect, and it is the one used here.
Reading a data set through its quartiles
Quartiles are the input people misread most often, because they look like ordinary numbers but behave like positions. Q1 is not the average of the bottom quarter — it is the value that sits a quarter of the way through the sorted list. For 10, 20, 30, 40 and 50, Q1 is 15, a number that does not even appear in the list. That is normal: quartiles are cut points, not data values.
The gaps between quartiles tell you about skew. In the default list the gaps are equal: Q2 − Q1 is 2.5 and Q3 − Q2 is 2.5, so the data is symmetric. In a salary list where Q1 is ₹25,000, the median is ₹40,000 and Q3 is ₹90,000, the upper gap is far bigger than the lower one — the data is skewed right, with a long tail of high earners pulling Q3 away from the centre.
That is exactly why salary surveys and exam boards quote quartiles instead of only the average. A average calculator gives you the middle as one number; quartiles show whether the middle is a fair summary or whether one side of the data stretches far further than the other.
A worked example: marks of nine students
Nine students score 1, 2, 3, 4, 5, 6, 7, 8 and 9 marks — a tidy list for showing the method. Sorted already, the middle value is the fifth one, 5, so Q2, the median, is 5. The lower half is 1, 2, 3, 4. Its median is the average of the middle two values, (2 + 3) ÷ 2 = 2.5, so Q1 is 2.5.
The upper half is 6, 7, 8, 9. Its median is (7 + 8) ÷ 2 = 7.5, so Q3 is 7.5. The interquartile range is 7.5 − 2.5 = 5. Those are exactly the numbers this calculator shows for the default input, and you can verify each one with a pencil.
Now try the classic textbook set: 2, 4, 4, 4, 5, 5, 7, 9. Eight values, so the median is the average of the fourth and fifth: (4 + 5) ÷ 2 = 4.5. The lower half is 2, 4, 4, 4, whose median is 4, so Q1 is 4. The upper half is 5, 5, 7, 9, whose median is 6, so Q3 is 6. The IQR is 6 − 4 = 2. The middle half of this class spans only two marks — a much tighter group than the first example.
Who uses quartiles, and why they matter
Teachers use quartiles to see how a class really performed. An average of 70 tells you little on its own; quartiles of 55, 70 and 85 tell you the middle half of the class scored between 55 and 85, with a quarter below 55 and a quarter above 85. That is a full picture of the class in three numbers.
Salary surveys and income reports run on quartiles. When a report says the median salary is ₹45,000 with Q1 at ₹30,000 and Q3 at ₹70,000, you know what a typical worker earns, what the lower-paid quarter earns, and where the top quarter starts. One very high salary cannot distort these numbers the way it distorts an average.
In finance, quartiles rank funds and portfolios. A fund in the top quartile beat three quarters of its peers; a fund in the bottom quartile lagged three quarters of them. A mode calculator shows the most common value in a list, which answers a different question — quartiles answer where a value stands relative to the whole group.
Quartiles vs percentiles, deciles and the median
Percentiles are quartiles with finer cuts. Q1 is the 25th percentile, the median is the 50th percentile, and Q3 is the 75th percentile. Deciles cut the data into tenths instead of quarters. All three are the same idea at different resolutions, and this calculator's quartiles are the coarsest, most readable version of it.
The median on its own is Q2 — the same number, just a different name. A median calculator gives you that single centre value, which is enough when you only need the middle. Quartiles add the 25% and 75% markers, which is what you need when the spread matters as much as the centre.
The mean is a different kind of centre altogether: it adds everything up and divides, so one extreme value can drag it far from the typical value. In a list of ten salaries where nine people earn ₹40,000 and one earns ₹4,00,000, the mean is ₹76,000 — a salary nobody earns. The quartiles stay honest: Q1, the median and Q3 all sit near ₹40,000, because position, not size, decides them.
Common quartile mistakes
The first mistake is forgetting to sort. Quartiles are positions in a sorted list, so an unsorted list gives nonsense. The calculator sorts for you, but if you work by hand, sort first — always. One number out of place can move a quartile to the wrong value entirely.
The second mistake is mixing up quartile methods. Tukey hinges, the exclusive method, the inclusive method and interpolation can all give different Q1 and Q3 values for the same data, especially with small lists. None of them is wrong; they are different conventions. Check which one your course uses before arguing that an answer is wrong.
The third mistake is treating Q1 as the average of the bottom quarter. It is not — it is the cut point below which the bottom quarter sits. The average of the bottom quarter of 1 to 9 is 1.5, but Q1 is 2.5. Confusing the two gives a wrong answer and a wrong picture of the data.
The fourth mistake is quoting quartiles for tiny lists. With three or four numbers, the quartiles are unstable — adding one value can swing Q1 or Q3 a long way. Quartiles earn their keep with ten or more values; below that, list the numbers themselves and let the reader see them.
How to use this quartile calculator
Paste or type your numbers into the box, separated by commas, spaces, or one per line — a column copied from a spreadsheet works as it is. Q1, the median, Q3 and the interquartile range all update live as you type. Check the median first: if it looks wrong, a mistyped number is usually the cause.
Read the three quartiles as cut points: a quarter of your data sits below Q1, half below the median, and three quarters below Q3. The IQR — Q3 minus Q1 — is the spread of the middle half. If you need the outlier fences, they are Q1 − 1.5 × IQR and Q3 + 1.5 × IQR.
Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. Use it alongside the standard deviation calculator whenever you want both the classic spread and the robust one: standard deviation uses every value, quartiles use position, and together they show whether outliers are distorting the picture.