Interquartile Range Calculator

calculatorsonline.co.uk

Interquartile Range Calculator 2026

Instantly calculate IQR, Q1, Q2, Q3, outliers, and the full five-number summary from any dataset. Paste your numbers and get a complete statistical breakdown with a box plot.

📊 IQR
🔢 Q1, Q2, Q3
🎯 Outlier Detection
📦 Box Plot
5️⃣ Five-Number Summary

Dataset Input

Enter your numbers separated by commas, spaces, or new lines

📋 Try a Sample Dataset

🔢 Your Data

— values entered

Exclusive: Q1/Q3 from halves excluding the median. Inclusive: median is included in both halves when n is odd.

Statistical Results

IQR, quartiles, five-number summary, and outliers

📊

Enter your dataset above and click Calculate IQR to get a full statistical breakdown.

How to Calculate IQR by Hand

Follow these five steps to find the interquartile range of any dataset, exactly as this calculator does it.

01
Sort the Data
Arrange all values in ascending order from smallest to largest. This is essential — quartiles are position-based statistics.
02
Find the Median (Q2)
The median is the middle value. For an even count, average the two middle values. This splits the dataset in half.
03
Find Q1 and Q3
Q1 is the median of the lower half; Q3 is the median of the upper half. Whether the median itself is included depends on the method used.
04
Calculate IQR
Subtract Q1 from Q3: IQR = Q3 − Q1. The result is the spread of the middle 50% of your data.
05
Identify Outliers
Calculate fences: Lower = Q1 − 1.5×IQR, Upper = Q3 + 1.5×IQR. Any value outside these fences is a suspected outlier.

Interquartile Range FAQ

Everything you need to understand the IQR, from the basics of quartiles to outlier detection and choosing the right method.

The interquartile range (IQR) is the difference between the third quartile (Q3) and the first quartile (Q1): IQR = Q3 − Q1. It measures the spread of the middle 50% of a dataset and is a robust measure of statistical dispersion that is resistant to the influence of extreme values or outliers.

1) Sort the data in ascending order. 2) Find Q2 (the median) — the middle value, or the average of the two middle values for an even-count dataset. 3) Split the data into a lower half and upper half. 4) Q1 is the median of the lower half. 5) Q3 is the median of the upper half. 6) IQR = Q3 − Q1.

Use the 1.5 × IQR rule: any value below Q1 − 1.5×IQR (the lower fence) or above Q3 + 1.5×IQR (the upper fence) is flagged as a mild outlier. For extreme outliers, the threshold is 3 × IQR, giving a lower extreme fence of Q1 − 3×IQR and an upper extreme fence of Q3 + 3×IQR.

The five-number summary is a compact description of a dataset using five values: the minimum, Q1, Q2 (median), Q3, and the maximum. Together they describe where the data is centred, how spread out it is, and where the extremes lie. These five numbers are also what define a box-and-whisker plot.

When n (the count) is odd, the two methods treat the median differently. The exclusive method (Moore & McCabe) excludes the median when splitting data into lower and upper halves, which tends to give a wider IQR. The inclusive method (Tukey) includes the median in both halves, giving a narrower IQR. For even n, both methods produce the same result. Most statistics textbooks and exam boards use the exclusive method.

IQR is preferred when your data is skewed, has outliers, or does not follow a normal distribution, because it only considers the middle 50% of values and is therefore robust. Standard deviation is more appropriate for symmetric, normally distributed data where every value carries meaningful information. In exploratory data analysis, IQR is typically reported alongside the median rather than the mean.

Similar Posts

  • Molarity Calculator

    Molarity Calculator | Calculate Molar Mass, Moles & Volume calculatorsonline.co.uk Molarity Calculator Calculate the molarity, mass, volume, or moles of a chemical solution step-by-step. Find molar mass and concentration instantly with our free chemistry solver. 🧪 Molarity Solver ⚗️ Moles & Mass 📏 Volume & Dilution 📊 Step-by-Step Solution Concentration Solver Enter known values to…

  • Gutter Length Calculator

    Gutter Length Calculator | Free Roofing & Drainage Tool calculatorsonline.co.uk Gutter Length Calculator Instantly calculate the total linear metres of guttering needed for your home, including roof overhang and standard waste allowances. 🏠 Roof Dimensions 📏 Linear Metres ✂️ Waste Allowance 📱 Mobile Friendly Roofing & Drainage Tool Calculate Your Gutter Requirements Enter your house…

  • Trigonometry Calculator

    Trigonometry Calculator | Sin, Cos, Tan & Inverse Trig Functions calculatorsonline.co.uk Trigonometry Calculator Calculate sine, cosine, tangent, and all inverse trig functions instantly. Supports degrees and radians with step-by-step solutions and common angle references. 📐 Sin Cos Tan 🔄 Inverse Functions 📊 Special Angles 🧮 Hyperbolic Trigonometric Function Calculator Calculate any trig function with precision…

  • Median Calculator

    Median Calculator | Find the Median, Mean & Mode calculatorsonline.co.uk Median Calculator Instantly find the median, mean, mode, and range of any data set. Enter your numbers separated by commas or spaces to see the sorted list and step-by-step statistical calculations. 📊 Median Finder 🧮 Mean & Mode 📈 Statistics 📝 Step-by-Step Statistical Measures Calculator…

  • Bakery Ingredient Cost Calculator

    Bakery Ingredient Cost Calculator | Calculate Recipe & Unit Costs calculatorsonline.co.uk Bakery Ingredient Cost Calculator Instantly calculate your recipe batch costs, cost per unit, and suggested retail price based on ingredients, packaging, labor, and profit margins. 🥐 Recipe Costing 💰 Profit Margins 📊 Unit Pricing ⚡ Instant Results Choose Your Calculator Batch Cost or Pricing…