Quartile Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Paste or type a list of numbers to get the first quartile, the median, the third quartile and the interquartile range.
Result
First quartile (Q1, 25th percentile)
Second quartile (Q2, median)
- Third quartile (Q3, 75th percentile)
- Interquartile range (Q3 − Q1)
- Five-number summary (min, Q1, median, Q3, max)
- Count
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Numbers (separated by commas, spaces or new lines): type or paste your values.
- Read the result: First quartile (Q1, 25th percentile); the panel also shows Second quartile (Q2, median), Third quartile (Q3, 75th percentile), Interquartile range (Q3 − Q1), Five-number summary (min, Q1, median, Q3, max) and Count.
Data plot
Table of values
| Value | Count |
|---|
How this calculator works
Sort the numbers. Q2 is the median. Q1 is the median of the lower half and Q3 the median of the upper half; when the count is odd, the median itself belongs to neither half. This is the method used by TI-83/84 calculators (Tukey's hinges give the same halves with the median included).
Spreadsheets and statistics packages offer several other definitions that interpolate between values, so their quartiles can differ slightly on small data sets. The interquartile range Q3 − Q1 spans the middle half of the data.
Worked example
| Numbers (separated by commas, spaces or new lines) | 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49 |
|---|
| First quartile (Q1, 25th percentile) | 15 |
|---|---|
| Second quartile (Q2, median) | 40 |
| Third quartile (Q3, 75th percentile) | 43 |
| Interquartile range (Q3 − Q1) | 28 |
| Five-number summary (min, Q1, median, Q3, max) | 6, 15, 40, 43, 49 |
| Count | 11 |
Frequently asked questions
What are the quartiles of 6, 7, 15, 36, 39, 40, 41, 42, 43, 47, 49?
The median is 40; the lower half 6, 7, 15, 36, 39 gives Q1 = 15 and the upper half 41, 42, 43, 47, 49 gives Q3 = 43, so the IQR is 28.
Why does Excel give a different first quartile?
Excel's QUARTILE.INC and QUARTILE.EXC interpolate between data points, while this calculator takes the median of each half. Both are accepted definitions.