Quartile Calculator: what the result means
Calculate Q1, median, Q3 and interquartile range with inclusive linear interpolation (R type 7).
Choose inputs and convention
Quartiles use R type 7 interpolation at 25%, 50% and 75%, not the median-of-halves rule. Paste observations into Numeric observations, separated by commas, whitespace or newlines. Keep repeated observations; they contribute to the calculation. Choose Calculate, or load the example to replace the current inputs with the case below.
Worked example
For 0, 10, 20, 30, Q1 is 7.5, median is 15 and Q3 is 22.5. The interquartile range is 22.5 − 7.5 = 15.
Calculation rule
Each quartile interpolates at zero-based index (n − 1)p: p = 0.25, 0.50 or 0.75. Interquartile range (IQR) is Q3 − Q1 and has the same units as the original values. Minimum and maximum are also shown for context.
The interpolation convention follows R’s quantile documentation, type 7. Choose the same convention when comparing another tool.
Interpretation and limitations
Textbooks and software may use median-of-halves, Tukey hinges or other conventions. Their answers may differ without either calculation being internally wrong. This tool does not label outliers, draw a box plot or infer a distribution. For a one-value list, every quartile is that value and IQR is zero.
Numeric bounds and precision
Interpolation uses the parsed numeric values, not rounded display strings. Decimal text is represented as browser floating-point numbers, so values closer than its precision may become indistinguishable. Calculated values are shown to 12 significant digits. Inputs may include signs, decimal points or exponent notation such as 1e3, but not unit suffixes or thousands separators. Up to 1,000 observations and 100,000 characters are accepted; absolute values must be at most 1e12 and nonzero magnitudes at least 1e-12. Zero is valid. Empty comma fields are rejected rather than silently converted to zero.
Editing an input or option clears the previous answer. Copy results copies the displayed summary; calculate again after edits.
Use Percentile Calculator to request a different percentage using the same interpolation rule.





