Home · Statistics · Descriptive Statistics · Quartile Calculator – IQR Calculator
Quartile Calculator – IQR Calculator
All three quartiles of a data set — Q1, the median Q2 and Q3 — with the interquartile range.
What this calculator does
All three quartiles of a data set — Q1, the median Q2 and Q3 — with the interquartile range. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The headline result is Q2, the median.
Quartiles divide the sorted data into four equal-frequency parts.
Percentiles and quartiles use linear interpolation (the R-7 method), the numpy.percentile default.
Worked example
With the example inputs this page opens with, the result is 6.50. Change any figure and the result updates with the same formula.
Quick reference
| Figure | Value |
|---|---|
| Result | 6.50 |
| Count (n) | 10 |
| Mean | 6 |
| Median | 6.5 |
| First quartile (Q1) | 4.25 |
| Third quartile (Q3) | 8 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
How is the IQR related to the quartiles?
The interquartile range is simply Q3 − Q1, the width of the middle half of the data.
Why do different calculators sometimes give slightly different quartiles?
There are several accepted interpolation rules for positions between data points; this calculator states and uses the R-7 linear method throughout.
How does the Quartile Calculator – IQR Calculator work?
All three quartiles of a data set — Q1, the median Q2 and Q3 — with the interquartile range. Data values → Q2 median (primary) · Q1 · Q3 · IQR. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Quartile Calculator – IQR Calculator need?
Data values → Q2 median (primary) · Q1 · Q3 · IQR. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.