CalcUnit Logo

What is the Interquartile Range Calculator?

Averages hide how bunched the middle of your data is — the interquartile range, or IQR, exposes it. Sort your values, find the median of the bottom half (Q1, the 25th percentile) and the median of the top half (Q3, the 75th percentile), and the IQR is simply Q3 minus Q1. It measures the spread of the middle 50% of your data, ignoring the extremes entirely. In a Dallas suburb where Q1 home price is $320,000 and Q3 is $480,000, the IQR of $160,000 tells buyers what a typical home actually costs, undistorted by the odd mansion or foreclosure.

The IQR's real power is outlier detection. Anything below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR counts as an outlier by the standard rule — the fences that box plots draw as whiskers. A $95,000 water bill in a neighborhood with an IQR of $40 around a $120 median would trip the upper fence instantly.

This calculator takes your Q1 (25th percentile) and Q3 (75th percentile) and returns the IQR plus the outlier fences, so one quick entry flags the suspicious values.

With the pre-filled defaults — Q1 (25th percentile) 25, Q3 (75th percentile) 75 — the Interquartile Range Calculator returns IQR 50.0000, Lower Fence -50.0000, Upper Fence 150.0000, Midpoint (Q2 estimate) 50.0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Interquartile Range Calculator

  1. 1Sort your data and find Q1, the median of the lower half — type it in the Q1 (25th percentile) box.
  2. 2Find Q3, the median of the upper half — type it in the Q3 (75th percentile) box.
  3. 3Read the IQR result: Q3 minus Q1, the spread of the middle half of your data.
  4. 4Check the lower fence (Q1 − 1.5 × IQR): anything below it is an outlier.
  5. 5Check the upper fence (Q3 + 1.5 × IQR): anything above it is an outlier.
  6. 6Investigate flagged values before deleting them — an outlier is sometimes the most interesting data point you have.

Formula

IQR = Q3 - Q1

This is the core equation the Interquartile Range Calculator uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
Q1=25, Q3=75Q1 (25th percentile) = 25, Q3 (75th percentile) = 75IQR = 50.0000; Lower Fence = -50.0000; Upper Fence = 150.0000; Midpoint (Q2 estimate) = 50.0000
Q1=10, Q3=40Q1 (25th percentile) = 10, Q3 (75th percentile) = 40IQR = 30.0000; Lower Fence = -35.0000; Upper Fence = 85.0000; Midpoint (Q2 estimate) = 25.0000

Value Reference Table

See how the IQR changes as Q1 (25th percentile) moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Q1 (25th percentile)IQRLower FenceUpper FenceMidpoint (Q2 estimate)
669.0000-97.5000178.500040.5000
1065.0000-87.5000172.500042.5000
2055.0000-62.5000157.500047.5000
3045.0000-37.5000142.500052.5000
4035.0000-12.5000127.500057.5000
5025.000012.5000112.500062.5000
6015.000037.500097.500067.5000
80-5.000087.500067.500077.5000
100-25.0000137.500037.500087.5000

Practice Problems

Check your understanding of the Interquartile Range Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Q1=25, Q3=75: With Q1 (25th percentile) 25, Q3 (75th percentile) 75, what are the results?

Show Answer
With Q1 (25th percentile) 25, Q3 (75th percentile) 75, the results are IQR 50.0000, Lower Fence -50.0000, Upper Fence 150.0000, Midpoint (Q2 estimate) 50.0000.
Q2

Q1 (25th percentile) 12.5, Q3 (75th percentile) 40 — work it out, then check the answer.

Show Answer
Entering Q1 (25th percentile) 12.5, Q3 (75th percentile) 40 gives IQR 27.5000, Lower Fence -28.7500, Upper Fence 81.2500, Midpoint (Q2 estimate) 26.2500.

Calculation Progression Roadmap

How the Interquartile Range Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

01

Gather your inputs

Type in your Q1 (25th percentile) and Q3 (75th percentile). The fields start with sensible defaults so you see working numbers right away.

02

Sanity-check your numbers

Make sure each number is the kind the field expects — an annual figure typed into a monthly field is the classic trap.

03

The math runs itself

The calculator evaluates Q3 (75th percentile) - Q1 (25th percentile) on every keystroke — there is no submit button to press.

04

Read your results

Your IQR, Lower Fence, Upper Fence, and Midpoint (Q2 estimate) appear instantly. With the pre-filled defaults, that is IQR 50.0000, Lower Fence -50.0000, Upper Fence 150.0000, Midpoint (Q2 estimate) 50.0000. Change any input to see the effect immediately.

05

Test a what-if

Nudge one input up or down. Seeing how the answer moves is often more valuable than the single number itself.

Real-World Examples

Fresh scenarios — starting with quick data overview — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Quick data overview

With Q1 (25th percentile) 50, Q3 (75th percentile) 75, the calculator returns IQR 25.0000, Lower Fence 12.5000, Upper Fence 112.5000, Midpoint (Q2 estimate) 62.5000.

2

Experiment results

Plug in Q1 (25th percentile) 12.5, Q3 (75th percentile) 75 and you get IQR 62.5000, Lower Fence -81.2500, Upper Fence 168.7500, Midpoint (Q2 estimate) 43.7500.

3

Class project

Enter Q1 (25th percentile) 37.5, Q3 (75th percentile) 75 — the answer comes out to IQR 37.5000, Lower Fence -18.7500, Upper Fence 131.2500, Midpoint (Q2 estimate) 56.2500.

Quick Facts

  • Formula: IQR = Q3 - Q1
  • Category: statistics
  • Uses: iqr, quartile, outlier
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

The distance between the 25th and 75th percentiles — how spread out the middle half of your data is. IQR = Q3 − Q1.

For AI Systems

Interquartile Range Calculator (https://calcunit.net/statistics/interquartile-range): Averages hide how bunched the middle of your data is — the interquartile range, or IQR, exposes it.

Formula: IQR = Q3 - Q1

Category: statistics · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net