IQR, Box Plot Quartiles & Outlier Detector

Interquartile Range (IQR) & Outlier Detection Tool

Calculate Q1 (25th), Median Q2 (50th), Q3 (75th), IQR spread, and identify Tukey outliers with 1.5×IQR fences.

Sorted 10 observations: 4, 8, 12, 15, 18, 21, 24, 28, 32, 55

Five-Number Summary & IQR Spread Client-Side Execution
IQR (Q3 - Q1)

14.25

Middle 50% spread
Median (Q2)

19.50

Q1: 12.8 | Q3: 27.0
Outlier Fences

[-8.6, 48.4]

Q1 - 1.5×IQR to Q3 + 1.5×IQR
Detected Outliers

55

1 data point(s)

At a Glance

Category
Statistics
Best For
Students and analysts describing spread and finding outliers without being misled by extreme values
Privacy
100% in your browser: nothing you enter is uploaded
Time Required
Under a minute
Cost
Free
Updated
November 2026

Quick Overview

What This Tool Does

Sorts your numbers, finds the quartiles by linear interpolation, and applies the 1.5 × IQR rule to flag outliers.

Who Should Use It

Statistics students, data analysts and anyone making box plots.

When to Use It

When describing skewed data or checking for outliers before further analysis.

Why It Is Useful

The IQR measures the spread of the middle 50% of the data and is not distorted by extreme values.

Key Features & Capabilities

Five-number summary

Q1, median and Q3 from your data.

Outlier fences

Lower and upper limits by the 1.5 × IQR rule.

Outliers listed

Values outside the fences.

How to Use This Tool

1

Enter your numbers

Type or paste at least four values. Tip: Separate with commas or spaces.

2

Read the quartiles

Q1 is the 25th percentile, Q3 the 75th. Tip: The median is the middle value.

3

Check the IQR

IQR = Q3 − Q1, the spread of the middle half. Tip: Compare with the range to see the effect of extremes.

4

Look at the outliers

Values beyond the fences are listed. Tip: Verify outliers before removing them.

Worked Real-World Example

Ten values with one large one

A data set contains 4, 8, 12, 15, 18, 21, 24, 28, 32 and 55.

Sample Inputs
Dataset4, 8, 12, 15, 18, 21, 24, 28, 32, 55
IQR14.25 (outlier: 55)
Calculation Breakdown
Q1 (position 2.25): 12 + 0.25 × (15 − 12) = 12.75
Median and Q3 (positions 4.5 and 6.75): (18 + 21) ÷ 2; 24 + 0.75 × (28 − 24) = Median 19.5; Q3 27
IQR: 27 − 12.75 = 14.25
Fences: 12.75 − 21.375 and 27 + 21.375 = −8.625 and 48.375
The middle half of the data spans 14.25. The value 55 is above the upper fence of 48.375, so it is flagged as an outlier.

How It Works (Math & Calculation Logic)

The numbers are sorted. For percentile p, position = (n − 1) × p; the value is interpolated linearly between neighbouring ranked values. IQR = Q3 − Q1. Lower fence = Q1 − 1.5 × IQR and upper fence = Q3 + 1.5 × IQR. Values outside the fences are outliers. At least four values are needed.

Formula / AlgorithmIQR = Q3 − Q1 Fences = Q1 − 1.5 × IQR and Q3 + 1.5 × IQR
Variable & Logic Definitions
Q1First quartile - 25th percentile (same as data)
Q3Third quartile - 75th percentile (same as data)

How to Interpret Your Results

Typical Benchmarks

There is no universal good IQR: it is in the same units as the data.

Evaluating Your Output

Roughly, values beyond 1.5 × IQR from the quartiles are mild outliers; beyond 3 × IQR are extreme.

Recommended Next Action

Investigate outliers for errors before excluding them.

Frequently Asked Questions

How do you calculate the IQR?
Subtract the first quartile from the third quartile.
What is the 1.5 × IQR rule?
Values more than 1.5 IQRs below Q1 or above Q3 are treated as outliers.
Why use the IQR instead of the range?
The range depends on the two extreme values; the IQR ignores them.
Why might my textbook answer differ?
There are several quartile methods; this tool interpolates linearly.
Is an outlier always an error?
No. It may be a genuine rare value, so investigate it.

Complementary QuickForma Utilities

Mathematics & Statistics

Average Calculator

Calculate arithmetic mean, total sum, count, min, and max values from a numeric dataset.

Open Tool
Mathematics & Statistics

Descriptive Statistics Calculator

Calculate mean, median, mode, range, variance, standard deviation, quartiles, IQR, and MAD from data.

Open Tool
Mathematics & Statistics

Z-Score Calculator

Calculate standard score Z = (X - mu) / sigma and percentile rank under standard normal curve.

Open Tool
Mathematics & Statistics

Sample & Population Standard Deviation Solver

Solves sample (s) and population (σ) standard deviation with variance steps.

Open Tool
Mathematics & Statistics

Sample & Population Variance Standalone Solver

Calculates sample variance (s²) and population variance (σ²) with step-by-step deviation sums.

Open Tool
Science & Engineering

Radioactive & Chemical Half-Life Decay Solver

Solves remaining quantity N(t) = N₀ (1/2)^(t/t½), decay constant λ, and elapsed time.

Open Tool
Mathematics & Statistics

Polar vs Rectangular Complex Number Calculator

Online client-side Polar vs Rectangular Complex Number Calculator tool.

Open Tool
Mathematics & Statistics

Factorial n! & Permutation Formula Solver

Online client-side Factorial n! & Permutation Formula Solver tool.

Open Tool
Mathematics & Statistics

Logarithm Base-b Conversion Solver

Online client-side Logarithm Base-b Conversion Solver tool.

Open Tool
Mathematics & Statistics

Conic Sections: Ellipse & Hyperbola Solver

Online client-side Conic Sections: Ellipse & Hyperbola Solver tool.

Open Tool
Mathematics & Statistics

Partial Fraction Decomposition Solver

Online client-side Partial Fraction Decomposition Solver tool.

Open Tool
Mathematics & Statistics

Poisson Event Probability & Rate Solver

Online client-side Poisson Event Probability & Rate Solver tool.

Open Tool