Interquartile Range Calculator

Enter comma-separated numbers to instantly compute Q1, Q2, Q3, IQR, and detect outliers via the 1.5×IQR rule.

Use the Interquartile Range Calculator

Dataset Input

Quick Examples

Enter numbers above and click Calculate IQR

Copied!

Summary

The Interquartile Range (IQR) measures statistical dispersion by capturing the middle 50% of a dataset. It equals Q3 minus Q1, where Q1 is the 25th percentile and Q3 is the 75th percentile. IQR is robust to extreme values and is the foundation of box-and-whisker plots and the standard outlier detection fence.

How it works

  1. Enter your numbers separated by commas (or spaces) in the input box.
  2. The calculator sorts the dataset and computes Q1, Q2 (median), and Q3 using the exclusive-quartile method.
  3. IQR is calculated as Q3 - Q1.
  4. Lower fence = Q1 - 1.5×IQR; Upper fence = Q3 + 1.5×IQR.
  5. Any value outside these fences is flagged as an outlier.
  6. Results update instantly as you type.

Use cases

  • Verify homework or exam solutions for descriptive statistics.
  • Identify outliers in survey, lab, or sensor data before modeling.
  • Determine box-plot whisker boundaries for data visualization.
  • Assess data spread without sensitivity to extreme values.
  • Quality control: flag measurements that fall outside expected ranges.
  • Compare dataset variability across different groups or time periods.

Frequently Asked Questions

Last updated: 2026-06-04 · Reviewed by Nham Vu