Home Statistics Quartiles and Interquartile Range Calculator

Quartiles and Interquartile Range Calculator

Enter a list of numbers and get the quartiles, the interquartile range and the fences that flag outliers.

Advertisement

How it works

Type or paste the numbers separated by commas or spaces, then pick the inclusive or exclusive method. The page shows the three quartiles, the interquartile range, both fences and how many values fall outside them.

Advertisement

Formula

Sort the numbers.
Q1, Q2 and Q3 are the values a quarter, a half and three quarters of the way up the sorted list.
IQR = Q3 - Q1.
Lower fence = Q1 - 1.5 x IQR, upper fence = Q3 + 1.5 x IQR.
Values outside the fences are flagged as outliers.

Sources

Example

Interquartile range: 13.5

Frequently asked questions

Why do two tools give different quartiles?

Two methods are common. Inclusive counts the middle value in both halves, exclusive leaves it out. Short lists give different answers, so say which method you used.

What counts as an outlier?

A value more than one and a half times the interquartile range below the lower quartile or above the upper quartile. It is a flag to look at the value, not proof it is wrong.

Advertisement

Related calculators

Percent Error Calculator

How far a measured value is from the true value, as a percent.

Mean, Median, Mode and Range Calculator

Type a list of numbers and get the mean, median, mode, range, sum, smallest and largest.

Standard Deviation Calculator

Sample and population standard deviation and variance for a list of numbers.

Z-Score Calculator

How many standard deviations a value is from the mean, with the share of values below and above it.