# Interquartile Range Calculator

Calculate Q1, Q3, IQR, and optional 1.5 x IQR outlier fences for a numeric dataset

> Canonical page: https://elysiatools.com/en/tools/interquartile-range-calculator

- **Category:** Math & Numbers

- **Keywords:** interquartile range, iqr, quartile, q1, q3, outliers, box plot

## Overview

Calculate the interquartile range for a numeric dataset.

IQR = Q3 - Q1

The IQR measures the spread of the middle 50% of sorted data. It is robust against extreme values and is commonly used for box plots and outlier screening.

## Inputs

- **Dataset** (textarea): e.g. 7, 15, 36, 39, 40, 41
- **Quartile Method** (select)
- **Decimal Places** (number)
- **Include Outlier Fences** (checkbox)

## When to use

- When you need to measure the statistical dispersion of a dataset while ignoring extreme high or low values.
- When preparing data for a box plot visualization and you need exact quartile values.
- When screening a dataset for potential outliers using the standard 1.5 x IQR rule.

## How it works

- Paste your comma-separated or space-separated numeric dataset into the input field.
- Select your preferred quartile calculation method, such as linear interpolation or nearest rank.
- Choose whether to include Tukey's 1.5 x IQR outlier fences and set your desired decimal precision.
- View the calculated Q1, Q3, interquartile range, and outlier boundaries in the results.

## Use cases

- Data analysts cleaning raw datasets by identifying and filtering out anomalous data points.
- Students and researchers calculating summary statistics for academic papers and lab reports.
- Quality control engineers monitoring manufacturing variations without being misled by isolated measurement errors.

## Frequently asked questions

### What is the Interquartile Range (IQR)?

The IQR is a measure of statistical dispersion representing the difference between the third quartile (Q3) and the first quartile (Q1), capturing the middle 50% of a dataset.

### Why use IQR instead of the standard range?

Unlike the standard range which only looks at the absolute minimum and maximum, the IQR is not skewed by extreme outliers, providing a more reliable view of the central data spread.

### What are outlier fences?

Outlier fences are boundaries calculated using the IQR (typically Q1 - 1.5 * IQR and Q3 + 1.5 * IQR). Any data points falling outside these fences are generally considered outliers.

### What quartile calculation methods are supported?

The tool supports linear interpolation, nearest rank, and exclusive percentile methods to match different statistical software standards.

### Can I adjust the decimal precision of the results?

Yes, you can configure the output to display anywhere from 0 to 10 decimal places depending on your reporting needs.

## Related tools

- [Quartile Calculator](https://elysiatools.com/en/tools/quartile-calculator): Calculate Q1, median, Q3, interquartile range, and optional outlier fences for a numeric dataset
- [Convolution Integral Calculator (Numeric)](https://elysiatools.com/en/tools/convolution-integral-calculator): Numeric (f*g)(t) = ∫ f(τ)g(t−τ)dτ by composite Simpson, in causal or direct-window mode, at up to 8 output points.
- [Numerical Differentiation Calculator (f′(x))](https://elysiatools.com/en/tools/numerical-differentiation): Forward, backward, and central finite differences for f′(x₀) plus the central second derivative, with optional per-method error against the exact derivative.
- [Square Root Calculator](https://elysiatools.com/en/tools/square-root-calculator): Calculate square roots, check whether a value is a perfect square, and verify the squared result
- [Euler Method Solver (dy/dx = f(x, y))](https://elysiatools.com/en/tools/euler-method-solver): Explicit Euler integration for dy/dx = f(x, y): step table, final estimate, and optional exact-solution error column.
- [Newton-Raphson Root Finder](https://elysiatools.com/en/tools/newton-raphson-root-finder): Newton-Raphson iteration for f(x) = 0 with analytic or numeric derivative, full iteration table, and explicit convergence/divergence reporting.
- [Simpson's Rule Integrator (∫f(x)dx)](https://elysiatools.com/en/tools/numerical-integration-simpson): Composite Simpson's 1/3 rule for ∫f(x)dx (even n): node table with weights, integral estimate, optional exact value, O(h⁴) accuracy.
- [Trapezoidal Rule Integrator (∫f(x)dx)](https://elysiatools.com/en/tools/numerical-integration-trapezoid): Composite trapezoidal rule for ∫f(x)dx: node table, integral estimate, optional exact value and O(h²) error report.

## Samples

- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
