Skip to content

Quartiles and Box Plot Calculator

Compare quartile conventions, calculate IQR and outlier fences, and draw a responsive box plot with observed-value whiskers and numeric results.

Separate finite numbers by spaces, commas or semicolons; up to 2,000 observations.

Preparing calculator controls…

Results

Enter your inputs and calculate to see the result.

Runs in your browser — nothing you enter is sent to a server.

How the Quartiles and Box Plot Calculator works

Choose linear-interpolated quartiles or medians of the lower/upper halves. For an odd count, the halves method excludes the central observation; one observation gives identical quartiles. Whiskers are the furthest observations within the 1.5-IQR fences.

Compare quartile conventions, calculate IQR and outlier fences, and draw a responsive box plot with observed-value whiskers and numeric results.

Formula

Type 7: h = (n−1)p, interpolate between adjacent sorted observations. IQR = Q3−Q1; fences = Q1−1.5IQR and Q3+1.5IQR.

Quartile conventions differ across software and can materially change small-sample outlier flags. Flagging does not prove a recording error or justify deleting data. The graph uses all observations and reports the selected convention; finite input magnitudes are limited to 1e12.

Examples

Five ordered observations

For 1,2,3,4,5, type 7 gives Q1=2, median=3 and Q3=4. Median-of-halves instead gives Q1=1.5 and Q3=4.5.

Flag an extreme value

For 1,2,3,4,5,6,7,100, type 7 gives Q1=2.75, Q3=6.25 and IQR=3.5. The upper fence is 11.5, so 100 is flagged and the upper whisker ends at 7.

Frequently asked questions

What does this calculation assume?

Choose linear-interpolated quartiles or medians of the lower/upper halves. For an odd count, the halves method excludes the central observation; one observation gives identical quartiles. Whiskers are the furthest observations within the 1.5-IQR fences.

Which limitations matter for this tool?

Quartile conventions differ across software and can materially change small-sample outlier flags. Flagging does not prove a recording error or justify deleting data. The graph uses all observations and reports the selected convention; finite input magnitudes are limited to 1e12.

How can I check the result?

For 1,2,3,4,5, type 7 gives Q1=2, median=3 and Q3=4. Median-of-halves instead gives Q1=1.5 and Q3=4.5. Compare this worked case before using your own inputs.

Information:

Good to know

Quartile conventions differ across software and can materially change small-sample outlier flags. Flagging does not prove a recording error or justify deleting data. The graph uses all observations and reports the selected convention; finite input magnitudes are limited to 1e12.

Reference: R official documentation: quantile algorithms. The implementation scope and conventions above are authoritative for this worksheet.

Additional reference: NIST: box-plot fences and outlier interpretation.

Linear Regression Calculator

Fit a least-squares line to paired observations with residuals, correlation, parameter standard errors and labelled prediction uncertainty.

Calculators

Average Calculator

Find the mean, median, mode, sum and range of a list of numbers.

Math Tools