Quartile and IQR Calculator tool

Quartile and IQR Calculator

Quartile and IQR calculator splits your dataset into four parts and reports the interquartile range — the spread of the middle 50% of values.

What is a quartile and IQR calculator?

A quartile and IQR calculator splits sorted data into four parts and reports Q1, Q2 (median), Q3, and the interquartile range Q3 − Q1. It also applies the 1.5×IQR fence rule to flag outliers. Paste a list of numbers to see spread in the middle 50% without letting one extreme dominate.

How to use the Quartile and IQR Calculator

  1. Paste comma- or space-separated numbers.
  2. Read Q1, median Q2, and Q3 in the stats row.
  3. Check IQR = Q3 minus Q1.
  4. Review how many values fall outside the fences.
  5. Use the quartiles when drawing a box plot.

About this calculator

Quartile and IQR calculator splits your dataset into four parts and reports the interquartile range — the spread of the middle 50% of values. Outliers stand apart from this middle band, which makes IQR more robust than range when a few extreme values exist.

Students use quartiles for box-and-whisker plots in CBSE and ICSE statistics units. Analysts use IQR to describe salary distributions where a few crore packages skew the mean. The calculator also flags values outside the 1.5×IQR fences used in standard outlier rules.

Combine with [[percentile]] for custom ranks, [[mean-median-mode]] for averages, and [[z-score]] when you need standard-deviation-based outlier checks. For larger samples see [[standard-deviation]].

Formula for quartiles and IQR

Q1 = 25th percentile; Q2 = median; Q3 = 75th percentile
IQR = Q3 − Q1
Lower fence = Q1 − 1.5 × IQR; upper fence = Q3 + 1.5 × IQR
  • Q1 is the first quartile
  • Q3 is the third quartile
  • IQR is the interquartile range of the middle half

Quartile example: thirteen class marks with one high score

Marks: 12, 15, 18, 22, 15, 30, 15, 20, 25, 18, 45, 14, 16. The calculator gives Q1 = 15, Q2 = 18, Q3 = 22, so IQR = 22 − 15 = 7. Middle 50% of students scored between 15 and 22.

Fences: lower = 15 − 1.5×7 = 4.5 and upper = 22 + 10.5 = 32.5. The score 45 lies above 32.5, so it counts as an outlier under the Tukey rule while most of the class stayed in a tighter band.

For a box plot, the box spans Q1 to Q3 with a line at Q2. Whiskers usually extend to the last non-outlier points; here 30 stays inside while 45 sits as a separate high point. IQR ignores extreme tails, so salary reports often quote quartiles instead of raw range. Analysts compare IQR across two batches to see which group is more consistent.

Common uses

  • Drawing a box plot for CBSE Class 10 statistics homework
  • HR analyst reporting salary quartiles without revealing individual pay
  • Detecting outlier sales days in a kirana shop
  • ,
  • ,

Frequently asked questions

What is the interquartile range and why use it instead of range?

IQR is Q3 minus Q1 — the spread of the middle half of data. Range (max minus min) is distorted by one extreme value. IQR ignores the top and bottom 25%, so it describes typical spread better.

How do you find outliers using IQR?

Compute fences: lower = Q1 − 1.5×IQR, upper = Q3 + 1.5×IQR. Values outside these fences are outliers by the Tukey rule. This calculator reports how many values fall outside.

Is Q2 the same as the median?

Yes. Q2 is the 50th percentile — the middle value when data is sorted. For an even count, it is the average of the two middle values.

How do quartiles help compare income data in India?

Mean income is pulled up by billionaires. Quartiles show the median earner (Q2) and the spread of the middle 50% (IQR). Reporting Q1, median, and Q3 gives a fairer picture than mean alone.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026