Math Solver Free

Quartiles Calculator

Q1, median, Q3 and the IQR for any data set — with a box plot drawn from your numbers and the outlier test run for you.

Published 26 November 2026

Minimum
2
Q1
4
Median (Q2)
6.5
Q3
8
Maximum
9
Interquartile range (IQR) = Q3 − Q1 = 8 − 4 = 4

Box plot of your data

min 2Q1 4median 6.5Q3 8max 9

Step by step

Step 1 — sort: 2, 3, 4, 5, 6, 7, 8, 8, 8, 9 (n = 10).

Step 2 — the median (Q2) splits the data in half: 6.5.

Step 3 — Q1 is the median of the lower half: 4. Q3 is the median of the upper half: 8.

Step 4 — the IQR is 8 − 4 = 4: the middle 50% of the data lives in that band.

Step 5 — outlier fences: values below Q1 − 1.5 × IQR = -2 or above Q3 + 1.5 × IQR = 14 count as outliers. Your data has no outliers by this rule.

Quartiles use the median-of-each-half method (the median itself is excluded from both halves when n is odd) — the same convention as our statistics calculator.

How This Quartiles Calculator Works

Quartiles cut a sorted data set into quarters. The first quartile (Q1) is the value a quarter of the data falls below, the median (Q2) halves it, and the third quartile (Q3) is the value three quarters fall below. The gap between Q3 and Q1 — the interquartile range — measures the spread of the middle half, immune to whatever the extremes are doing. This quartiles calculator produces the full five-number summary, draws the box plot those five numbers define, and applies the standard 1.5 × IQR outlier rule so unusual values are flagged rather than silently averaged in.

Worked Example: Reading a Box Plot

For the scores 2, 3, 4, 5, 6, 7, 8, 8, 8, 9: minimum 2, Q1 = 4, median 6.5, Q3 = 8, maximum 9. The box on the plot runs from 4 to 8 — that is where the middle half of the class sits — with the median line at 6.5, a little left of the box's centre, hinting the upper-middle scores bunch tighter than the lower-middle ones. The whiskers reach 2 and 9, and since the fences (Q1 − 1.5 × IQR = −2 and Q3 + 1.5 × IQR = 14) contain every score, there are no outlier dots. Two box plots side by side — two classes, two months, two products — are the fastest honest comparison in descriptive statistics, which is why this page draws the plot instead of only listing numbers. The statistics calculator reports quartiles inside a complete summary, and the median calculator isolates the middle value.

Quartiles vs. Standard Deviation

Both measure spread; they disagree about what counts. Standard deviation uses every value, so one extreme score stretches it; the IQR uses only the middle half, so extremes are invisible to it. For roughly symmetric data the two tell the same story and either is fine. For skewed data — incomes, prices, waiting times — the IQR is the honest measure, and the gap between the two is itself diagnostic. The NIST/SEMATECH e-Handbook of Statistical Methods discusses both families of spread measures.

Common Mistakes

  • Computing quartiles on unsorted data: quartiles are positions in the sorted list; without sorting, the numbers mean nothing.
  • Reporting the IQR as a single value: the IQR is a range (Q3 − Q1), not a point in the data.
  • Deleting outliers automatically: the 1.5 × IQR rule flags values for investigation — a genuine measurement can be an outlier, and deleting it without a reason distorts the data.

Frequently Asked Questions

How do you find the quartiles of a data set?

Sort the data. The median splits it into two halves; Q1 is the median of the lower half and Q3 is the median of the upper half. For 2, 3, 4, 5, 6, 7, 8, 8, 8, 9 the median is 6.5, the lower half is 2, 3, 4, 5, 6 with median 4 (Q1), and the upper half is 7, 8, 8, 8, 9 with median 8 (Q3).

What is the interquartile range (IQR)?

The IQR is Q3 − Q1: the span of the middle 50% of the data. In the example above it is 8 − 4 = 4. Because it ignores the top and bottom quarters entirely, the IQR is a spread measure that outliers cannot inflate — the natural partner of the median, just as standard deviation partners the mean.

How are outliers detected with quartiles?

By the 1.5 × IQR rule: any value below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR is flagged as an outlier. With Q1 = 4, Q3 = 8 and IQR = 4, the fences are −2 and 14, so no value in that data set qualifies. The calculator above runs this test automatically on your data.

Why do different calculators give slightly different quartiles?

Because textbooks and software use several quartile conventions (including or excluding the median from the halves, or interpolating between values). For large data sets they agree closely; for small ones they can differ by a step. This calculator uses the median-of-each-half method — the convention taught in most school courses — and says so on the page.

What is the five-number summary?

Minimum, Q1, median, Q3, maximum — the five values a box plot is drawn from. It is the fastest complete sketch of a distribution: centre, spread of the middle half, and total range, all resistant to outliers except the two extremes themselves.

Is this quartiles calculator free?

Yes — every tool on Math Solver Free is completely free, with no sign-up and no usage limits. Calculations run in your browser, so your data never leaves your device.

Related Tools & Guides

About the Math Solver Team

The Math Solver Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team