Skip to main content

Grades 6-12Free, no account needed

Five-number summary & boxplot calculator

Find exact median-of-halves quartiles, IQR, fences and outliers, and connect the five-number summary to a modified boxplot.

All calculators

Try your problem

2-20 comma-separated numbers. Odd n: exclude the overall median from both halves. Paste summary(1,2,3,4,9). Press Ctrl+Enter to calculate.

Your calculations stay in this browser. No input history is saved.

Supported inputs and limits

Use 2-20 comma-separated observations. Median-of-halves only, excluding the overall median for odd n; no quartile-method selector or percentile interpolation. Includes exact IQR, 1.5-IQR fences and strict outside-fence outliers. Boxplot axes are centered at the exact median before approximate projection. Scalars are signed integers, decimals with 1-6 decimal places, or integer fractions with positive denominator, at most 24 characters and 12 digits per integer part. Magnitude at most 1000000 and reduced denominator at most 1000000. No expressions, mixed numbers, repeating decimals, percent signs or scientific notation. Lists have at most 520 characters. All numerical answers and table values are exact rationals; diagram positions alone are approximate. Named paste commands are case-sensitive and at most 200 characters.

Understand the method

For observations 1, 2, 3, 4 and 9, the five-number summary is 1, 3/2, 3, 13/2, 9. A box spans Q1=3/2 to Q3=13/2, with median line at 3 and whiskers at 1 and 9; neither extreme is an outlier.

Sort every observation, keeping repeated values. The five-number summary is the minimum, first quartile Q1, median M, third quartile Q3 and maximum. For an even number of observations, a median averages the middle pair.

This calculator defines Q1 and Q3 as medians of the lower and upper halves. When n is odd, exclude the overall median from both halves. Quartile conventions differ; an interpolating spreadsheet method may give a different answer without an arithmetic error.

The interquartile range is Q3 - Q1. Tukey fences are Q1 - 1.5 IQR and Q3 + 1.5 IQR. Values strictly outside are flagged as outliers. A modified boxplot puts whiskers at the extreme non-outliers, while the summary still reports the actual minimum and maximum. Zero IQR is valid and can coexist with outliers.

Worked examples

Read the reasoning, or load an example into the calculator.

Odd sample, excluded median

Sorted 1,2,3,4,9 has median 3. Excluding it gives halves 1,2 and 4,9, so Q1=3/2 and Q3=13/2. IQR=5; no value is outside fences -6 and 14.

Even sample with fractions

For -1,0,1/2,3/2, median=(0+1/2)/2=1/4. Lower-half median=-1/2; upper-half median=1. The summary is -1,-1/2,1/4,1,3/2.

Zero IQR with a real outlier

For six 1s and one 9, both quartiles and the median are 1. IQR=0 makes both fences 1, so 9 is an outlier. Both whiskers are 1 but the actual maximum is 9.

Try it without the calculator

Three questions for practice, not a graded school assessment. Your answers stay on this page and are not saved.

1. Using this convention, what is Q1 for 1,2,3,4,5?
2. Is a value exactly on an outlier fence flagged?
3. Can IQR be zero even when one observation differs?

Original Testinar learning content. This local preview is awaiting final review before publication.

Page UP