Skip to content

Box And Plot Generator

Draw a box plot from your numbers. For 1, 2, 3, 4, 5, 6, 7 the minimum is 1, the first quartile is 2, the median is 4, the third quartile is 6, and the maximum is 7. Whiskers stop at the last values inside the 1.5 IQR fences, and points beyond those fences are drawn as dots.

Result

Enter at least three numbers

How to Use

  1. 1 Enter at least three numbers, separated by commas, spaces, or line breaks.
  2. 2 Choose vertical or horizontal, and add a label if you want one.
  3. 3 Choose Draw the box plot and read the chart with the five-number summary.

Example Output

  • 1, 2, 3, 4, 5, 6, 7 gives minimum 1, Q1 2, median 4, Q3 6, maximum 7.
  • 1, 2, 3, 4 gives Q1 1.5, median 2.5, and Q3 3.5.

About This Tool

The median of an odd count is the middle value. The median of an even count is the average of the two middle values. Each quartile is the median of its half. When the count is odd, the overall median is left out of both halves. The drawing uses those same numbers.

Using the Box and Plot Generator

This page draws a box plot and builds the five-number summary. You enter numbers separated by commas, spaces, or line breaks. The page sorts them and reports the minimum, the first quartile, the median, the third quartile, and the maximum. For 1, 2, 3, 4, 5, 6, 7 those figures are 1, 2, 4, 6, and 7. The headline is the median, which is 4. For 1, 2, 3, 4 the first quartile is 1.5, the median is 2.5, and the third quartile is 3.5.

An odd count leaves the median out of both halves. An even count splits the list in half and averages the two middle values for the median. Each quartile is the median of its half. The page needs from 3 to 200 numbers. Two numbers are rejected. A word is rejected. The page draws the box, the whiskers, and any outlier dots, and it returns the five numbers.

What the Five Numbers Are

The lines are minimum, first quartile, median, third quartile, maximum, and count. For the seven-number sample the lines are 1, 2, 4, 6, 7, and 7. The last 7 is the count, not a second maximum. The headline is the median, 4. The copied sentence names all five summary numbers in order.

For four numbers, 1, 2, 3, 4, the median is the average of 2 and 3, which is 2.5. The lower half is 1 and 2, so the first quartile is 1.5. The upper half is 3 and 4, so the third quartile is 3.5. The count line is 4.

Reset returns the field toward 1, 2, 3, 4, 5, 6, 7. The previous summary stays until the next run. A list of two numbers is rejected because a box needs at least three.

How the Halves Are Split

The page sorts the numbers from smallest to largest before it looks for a middle. The order you type does not matter. 7, 1, 3, 2, 6, 5, 4 is the same summary as 1 through 7.

When the count is odd, the median is the middle value and both halves exclude it. For seven numbers the middle is 4. The lower half is 1, 2, 3, and its median is 2. The upper half is 5, 6, 7, and its median is 6. When the count is even, the median is the average of the two middle values, and each half is half of the list. Nothing is left out of the halves in that case.

A mean of the same numbers is a different page. The Mean Median Mode Calculator can report a mean. This page's headline is the median of the five-number method above. Use the other page when you want a mean. Use this page when you want the five numbers.

How the Box Is Drawn

The drawing is a box from the first quartile to the third, a line at the median, and whiskers out to the last values that sit inside the fences. A fence is the quartile plus or minus 1.5 times the interquartile range. A point outside a fence is drawn as a dot. The minimum and maximum lines still show the smallest and largest numbers you typed, even when a dot sits beyond a whisker.

The page does not report a mean or a standard deviation. The median can sit far from the mean when the list is uneven. Say which one a note is using. The headline here is the median.

The chart has an axis for the numbers. It does not name a unit. If the numbers are temperatures, put the unit in the optional label or in your note.

1 Through 7, and 1 Through 4

Enter 1, 2, 3, 4, 5, 6, 7. The headline is 4. The lines are minimum 1, first quartile 2, median 4, third quartile 6, maximum 7, and count 7. Enter the same numbers unsorted, 7, 1, 3, 2, 6, 5, 4. The summary matches. Enter 1, 2, 3, 4. The headline is 2.5. The first quartile is 1.5 and the third quartile is 3.5.

Enter 1, 2 and confirm the rejection. Enter a word among the numbers and confirm the rejection. The seven-number list is the sample to restore.

Absolute deviations are a different summary. The Mean Absolute Deviation Calculator averages distances from a center. It does not return a first quartile of 2 for this list. Use it for that average. Use this page for the five-number summary.

Limits of the Five Numbers

The field needs at least 3 numbers and at most 200. Extra commas and blank gaps are skipped. A token that is not a plain number is rejected, and the page does not skip it the way it skips an empty gap. A negative number is allowed. Decimals are allowed.

The quartile method is fixed. The page will not switch to a method that includes the median in both halves, and it will not ask you to pick a percentile definition. If a textbook uses a different split, its quartiles can differ on the same list. The check for this page is the pair of samples: 1 through 7, and 1 through 4.

The count line tells you how many numbers were used after empty gaps were dropped. If you expected 8 and the count says 7, one token was blank or missing.

Common Mistakes

The usual miss is to average the whole list and call that average the median. The mean of 1 through 7 is 4 as well, so the sample hides the difference. The four-number sample does not. The mean of 1, 2, 3, 4 is 2.5, which happens to match this median, but a list such as 1, 2, 3, 100 will not. Read the headline as the median from the split described above.

Another miss is to include the middle value in the halves when the count is odd. For seven numbers the lower half is 1, 2, 3, not 1, 2, 3, 4. Including 4 would move the first quartile. This page leaves 4 out.

A correlation of two lists is a different page. The Correlation Coefficient Calculator compares paired lists. It does not return a five-number summary. Use it for a correlation. Use this page for one list.

Reading the Median in a Note

Copy the sentence with all five numbers and keep the list. A median of 4 can be the seven-number sample or another list. The sentence for the sample names minimum 1, first quartile 2, median 4, third quartile 6, and maximum 7.

Say which split you used if you also computed a quartile by hand with a different rule. This page excludes the median from both halves when the count is odd, and it averages the two middle values when the count is even.

The count belongs in the note. Seven numbers and four numbers are different samples even when you remember only the medians 4 and 2.5.

Rebuilding the Samples

Enter 1, 2, 3, 4, 5, 6, 7 and confirm 1, 2, 4, 6, 7. Enter 1, 2, 3, 4 and confirm 1.5, 2.5, and 3.5 for the quartiles and the median. Enter 1, 2 and confirm the rejection. Enter the unsorted seven and confirm it matches the sorted seven.

Filling a value between two known points is a different page. The Interpolation Calculator estimates between endpoints. It does not sort a list into a five-number summary. Use it for an in-between estimate. Use this page for the box summary.

Checking a New List

Confirm the seven-number sample before you replace it. The headline should be 4. Then add one number and watch the count line. It should rise by one if the new token was a number. If the count does not rise, the token was empty or the field did not update.

Ordinary arithmetic on two of the summary numbers is a different page. The 4 Function Calculator divides or subtracts whatever you type. It does not sort a list. Use it for a later difference, such as the third quartile minus the first. Use this page to get the five numbers first.

What the Field Accepts

The field is one list of numbers separated by commas, spaces, or line breaks. The sample is 1, 2, 3, 4, 5, 6, 7. At least 3 numbers are required. At most 200 are accepted. A blank list is rejected. A non-numeric token is rejected. An optional label of at most 40 characters is printed above the drawing. The orientation is vertical unless you choose horizontal.

Why 1 Through 7 Uses the Halves 1, 2, 3 and 5, 6, 7

Sort the sample and it is already in order. Seven is odd, so the middle index is the fourth number, which is 4. That value is the median and the headline. The lower half is everything before it: 1, 2, and 3. Three is also odd, so its median is the middle of those three, which is 2. That is the first quartile. The upper half is 5, 6, and 7. Its median is 6. That is the third quartile. The minimum is 1 and the maximum is 7 because those are the ends after sorting.

Splitting 1 Through 7 and 1 Through 4

Seven numbers are already in order when you type 1, 2, 3, 4, 5, 6, 7. The count is odd, so the median is the middle value, 4. That value is the headline, and it is left out of both halves. The lower half is 1, 2, 3. Its median is 2, the first quartile. The upper half is 5, 6, 7. Its median is 6, the third quartile. The minimum is 1 and the maximum is 7. The count line is 7, which is the last line and not a second maximum. The unsorted list 7, 1, 3, 2, 6, 5, 4 sorts to the same summary.

Checking the Generator

Enter 1, 2, 3, 4, 5, 6, 7 and confirm minimum 1, first quartile 2, median 4, third quartile 6, and maximum 7. Enter 1, 2, 3, 4 and confirm 1.5, 2.5, and 3.5. Enter 1, 2 and confirm the rejection. When those three checks hold, the page is building the five-number summary with this split.

Frequently Asked Questions

What is the summary of 1 through 7?

Minimum 1, first quartile 2, median 4, third quartile 6, maximum 7.

What is the summary of 1, 2, 3, 4?

What is the summary of 1, 2, 3, 4? On this page the answer stays with the result from the submit you just made. Copy the sentence on screen rather than reusing a neighboring FAQ word for word. FAQ 2 is only about this question.

Does the typed order matter?

No. The page sorts the numbers before it splits them.

Where does the median go when the count is odd?

It is excluded from both halves. For 1 through 7 the halves are 1, 2, 3 and 5, 6, 7.

How is an even median computed?

The page averages the two middle values. For 1, 2, 3, 4 that average is 2.5.

What if I enter only two numbers?

The page rejects the list. It needs from 3 to 200 numbers.

What if a token is not a number?

The page rejects the field and asks for numbers separated by commas or spaces.

Does the page draw the box?

Yes. It draws the box, the whiskers, the median line, and any outlier dots.

Does it remove outliers?

No. The minimum and maximum lines keep the smallest and largest values. A point beyond a fence is also drawn as a dot.

Are duplicates removed?

No. Each typed number counts, even when values repeat.

What does the headline show?

The median. For 1 through 7 the headline is 4.

What does reset restore?

The field returns toward 1, 2, 3, 4, 5, 6, 7.