Report

Help us improve this tool

Five-Number Summary Calculator

Calculate the five-number summary (Minimum, Q1, Median, Q3, Maximum) for any dataset with IQR and box plot breakdown.

O M T

What is a Five-Number Summary?

The five-number summary is a fundamental descriptive statistic that provides a concise snapshot of a dataset's distribution. It divides a set of observations into four equal segments, giving key insights into central tendency, spread, and overall range without assuming a normal distribution.

The Five Values in the Summary

A standard five-number summary consists of five values arranged in ascending order:

  • Minimum (Min): The smallest data point in the dataset.
  • First Quartile ($Q_1$): The 25th percentile value, marking the boundary below which 25% of the data falls.
  • Median ($Q_2$): The 50th percentile value or middle number, dividing the dataset into two equal halves.
  • Third Quartile ($Q_3$): The 75th percentile value, marking the boundary below which 75% of the data falls.
  • Maximum (Max): The largest data point in the dataset.

Interquartile Range and Outlier Detection

Beyond the five numbers, the summary allows for important secondary statistical metrics:

  • Range: Calculated as $\text{Range} = \text{Max} - \text{Min}$.
  • Interquartile Range (IQR): Calculated as $\text{IQR} = Q_3 - Q_1$, representing the spread of the middle 50% of data.
  • Lower Fence: $Q_1 - 1.5 \times \text{IQR}$. Data points below this threshold are potential low outliers.
  • Upper Fence: $Q_3 + 1.5 \times \text{IQR}$. Data points above this threshold are potential high outliers.

How the Five-Number Summary Powers Box Plots

The five-number summary is the direct foundation for constructing a box plot (also called a box-and-whisker plot). In a box plot:

  • The box spans from $Q_1$ to $Q_3$, containing the middle 50% of values.
  • A vertical line inside the box marks the median ($Q_2$).
  • The whiskers extend outward from $Q_1$ and $Q_3$ to the Minimum and Maximum non-outlier values.

Frequently Asked Questions

How do I calculate Q1 and Q3 manually?

First, arrange the dataset in ascending order and find the median ($Q_2$). For the exclusive method, split the dataset at the median into a lower half and upper half (excluding the median if $N$ is odd). $Q_1$ is the median of the lower half, and $Q_3$ is the median of the upper half.

What is the difference between inclusive and exclusive quartile methods?

The exclusive method excludes the median value when computing the medians of the lower and upper halves for odd sample sizes. The inclusive method (Tukey hinges) includes the median in both halves when calculating $Q_1$ and $Q_3$.

Why is the five-number summary better than mean and standard deviation for skewed data?

The mean and standard deviation are sensitive to extreme outliers and skewed distributions. The median and interquartile range in a five-number summary are robust statistics that remain unaffected by extreme values.

Can a dataset have identical Q1 and Median values?

Yes. If a dataset contains repeated numbers or clustered observations around the lower quartiles, $Q_1$, $Q_2$, or $Q_3$ can take identical numerical values.