About the Quartile Calculator
Quartiles describe where the middle half of a data set lies, which is more robust than the mean when there are extreme values. This quartile calculator sorts your data and finds Q1, the median, Q3 and the interquartile range using three common methods, since textbooks and software differ, and draws a box plot with the five-number summary. Choose the method your course or spreadsheet uses so the answers match.
Different textbooks and programs calculate quartiles slightly differently, so the calculator offers the three most common methods. The median-of-halves method, taught in most schools and used for Tukey's box plots, takes the median of the lower and upper halves, leaving out the middle value when the count is odd. The inclusive method interpolates at (n − 1)p, matching Excel's QUARTILE.INC and R's default; the exclusive method uses (n + 1)p, matching Excel's QUARTILE.EXC and Minitab.
Example: for 6, 7, 15, 36, 39, 40, 41, 42, 43, 47 and 49, the median is 40. By the median-of-halves method Q1 = 15 and Q3 = 43, giving IQR = 28; the exclusive method gives the same, while the inclusive method gives Q1 = 25.5 and Q3 = 42.5. The 1.5 × IQR fences at −27 and 85 show there are no outliers.
The IQR describes the spread of the middle half of the data and ignores extreme values. To flag unusual values use the outlier calculator, for other percentiles the percentile calculator, and for spread around the mean the standard deviation calculator.
How to use the Quartile Calculator
- Enter your dataType or paste the numbers in any order.
- Choose a methodMedian of halves (school textbooks), inclusive (Excel QUARTILE.INC) or exclusive (QUARTILE.EXC).
- Read the quartilesSee Q1, the median, Q3 and the interquartile range.
- Check the summary and plotSee the five-number summary, the fences and the box plot.
Quartile Calculator features
- Q1, median, Q3 and IQR
- Five-number summary
- Three quartile methods, matching textbooks and Excel
- Outlier fences at 1.5 × IQR
- Box plot drawn from your data
- Range, mean and count
- Paste data from spreadsheets
Common uses
- Statistics homework and exams
- Summarizing test scores or salaries
- Spotting skew and outliers
- Box plots for reports
- Comparing groups by their spread
Quartiles in practice: box plots, salary bands, commute times and comparing groups
Quartiles split ordered data into four equal parts. The first quartile marks the value below which a quarter of the data lies, the median marks the middle and the third quartile marks three quarters. Together with the minimum and maximum, they form the five-number summary, the basis of box plots. This guide shows how quartiles describe data that averages cannot, works through commute times, and explains salary bands and comparisons between groups.
The five-number summary
The minimum, first quartile, median, third quartile and maximum together describe the centre, spread and range of a data set in five numbers. Unlike the mean and standard deviation, they are not distorted by a few extreme values. That makes them ideal for skewed data such as incomes, house prices and waiting times.
A worked example: commute times
Ten employees report commute times of 18, 22, 25, 27, 30, 31, 34, 38, 45 and 60 minutes. With the median-of-halves method, the calculator's default, the first quartile is 25 minutes, the median 30.5 and the third quartile 38 minutes. The interquartile range, Q3 minus Q1, is 13 minutes, so the middle half of the employees commute within a band 13 minutes wide. The inclusive method used by Excel's QUARTILE.INC gives 25.5 and 37 instead, a small difference that matters mainly when comparing figures from different sources.
The longest commute of 60 minutes lies well above the rest. The 1.5 × IQR rule places the upper fence at 38 + 1.5 × 13 = 57.5 minutes, so the 60-minute commute counts as an outlier, worth noting if the company considers flexible working.
Box plots
A box plot draws the quartiles as a box, the median as a line inside it and whiskers out to the furthest values within the fences, with outliers shown as separate points. Side-by-side box plots compare groups at a glance, such as test scores in several classes or delivery times from several warehouses, showing differences in centre and spread together.
Salary bands
Pay surveys often report salaries by quartile: the 25th percentile, the median and the 75th percentile for a role. Employers use these to set pay bands, and employees use them to judge whether an offer is low, typical or high. The interquartile range shows how much pay varies for similar roles, which is often more useful than an average distorted by a few very high earners.
Comparing groups
When comparing two groups, look at both the medians and the interquartile ranges. Two schools might have the same median score, but if one has a much wider interquartile range, its results are more varied, with more students at both ends. Quartiles reveal such differences that a single average hides.
Different methods give slightly different values
There are several methods for calculating quartiles, especially for small data sets, and they can give slightly different answers. Spreadsheets offer QUARTILE.INC and QUARTILE.EXC, and textbooks use other variants. The differences shrink as data sets grow. Use one method consistently and state which one you used when reporting.
Quartiles and percentiles
Quartiles are particular percentiles: the first quartile is the 25th percentile, the median the 50th and the third quartile the 75th. Deciles and other percentiles extend the same idea. Reports often combine them, for example showing the 10th, 25th, 50th, 75th and 90th percentiles to describe a distribution in more detail.
Common mistakes
- Calculating quartiles from unsorted data.
- Mixing methods when comparing groups.
- Treating the interquartile range as the full range.
- Deleting outliers flagged by the fences without investigating them.
Related tools
For outliers, use Outlier Calculator. For any percentile, try Percentile Calculator, and for averages, Average Calculator.
Quartiles in exam and admission results
Schools and universities often describe results by quartile, for example saying that a student is in the top quarter of their year. Some universities report that the middle half of admitted students scored between two values on an entrance test, which is the interquartile range. Applicants can use those figures to judge whether their own score is typical for a course, rather than relying on a single average or a minimum entry requirement.
Using quartiles to spot skew
The position of the median within the box tells you about the shape of the data. If the median sits closer to Q1 than to Q3, the upper part of the data is more spread out, which suggests right skew, common in incomes and waiting times. In the commute example, the median of 30.5 is 5.5 minutes above Q1 and 7.5 minutes below Q3, a slight right skew driven by the longer journeys.
Quartiles in spreadsheets
In most spreadsheets, QUARTILE.INC(range, 1) returns the first quartile by the inclusive method and QUARTILE.EXC uses the exclusive method, and both can differ from the median-of-halves values taught in school. Before comparing a spreadsheet result with this calculator, choose the matching method in the menu. The PERCENTILE functions work the same way for any percentile, so the 90th percentile of delivery times becomes a single formula once the data is in one column.
Limits
Results follow the method chosen; small data sets can give noticeably different quartiles under different methods.
Frequently asked questions
What are quartiles?
The three values that divide sorted data into four groups of equal size: Q1 at the 25th percentile, Q2, the median, at the 50th, and Q3 at the 75th.
How do I find Q1 and Q3?
Sort the data and find the median. Q1 is the median of the lower half and Q3 the median of the upper half; with an odd count, the middle value is usually left out of both halves.
What is the interquartile range?
IQR = Q3 − Q1, the spread of the middle 50% of the data. Because it ignores the lowest and highest quarters, it is not affected by extreme values.
What is the five-number summary?
The minimum, Q1, median, Q3 and maximum. Together they describe the center, spread and range of the data, and they are exactly what a box plot draws.
Why do calculators give different quartiles?
There are several accepted definitions. School textbooks often use medians of halves, Excel's QUARTILE.INC interpolates at (n − 1)p and QUARTILE.EXC at (n + 1)p. Choose the method your course or software uses.
How do I read a box plot?
The box spans Q1 to Q3, the line inside is the median, and the whiskers reach the smallest and largest values within 1.5 × IQR of the box. Points beyond the whiskers are outliers.
How are outliers found with the IQR?
Values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR are flagged as outliers. Using 3 × IQR instead identifies extreme outliers. The calculator shows both fences and lists any values beyond them.
What does a lopsided box plot mean?
If the median sits closer to Q1 and the right whisker is long, the data are skewed right, with a tail of high values. The reverse pattern indicates left skew.
How do I make a box plot by hand?
Draw a number line, mark the five-number summary, draw a box from Q1 to Q3 with a line at the median, then extend whiskers to the smallest and largest values inside the fences and mark outliers as dots.