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.
Compare quartile conventions, calculate IQR and outlier fences, and draw a responsive box plot with observed-value whiskers and numeric results.
Enter your inputs and calculate to see the result.
Runs in your browser — nothing you enter is sent to a server.
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.
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.
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.
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.
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.
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.
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.
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.
Fit a least-squares line to paired observations with residuals, correlation, parameter standard errors and labelled prediction uncertainty.
Calculators
Calculate the standard deviation, variance and mean of a data set, for a sample or a population.
Math Tools
Find the mean, median, mode, sum and range of a list of numbers.
Math Tools