Quartile Calculator

Calculate quartiles Q1, Q2, Q3, interquartile range (IQR), and a sorted summary from a dataset.

Enter values separated by commas, spaces, or line breaks.
This calculator returns:
Q1, Q2 (median), Q3, and IQR = Q3 − Q1

Result will appear here.
Metric Value

Privacy: calculations run locally in your browser. No inputs are stored or transmitted.

How it works

The data is sorted first. Then:
Q2 is the median, Q1 is the median of the lower half, and Q3 is the median of the upper half.

Examples

  • 5, 7, 8, 11, 13, 16, 20
  • Q2 = median = 11
  • Q1 = 7, Q3 = 16, IQR = 9

FAQ

  • What are quartiles?

    Quartiles divide sorted data into four parts. Q1 is the first quartile, Q2 is the median, and Q3 is the third quartile.

  • What is IQR?

    IQR stands for interquartile range and is calculated as Q3 − Q1.

  • How does this calculator split the data?

    This page uses the median-of-halves method on the sorted dataset.

  • How should I enter the data?

    Enter values separated by commas, spaces, or line breaks.

  • Are calculations stored?

    No. Everything runs locally in your browser.

Related tools