Quartile Calculator

Calculate Q1, median, Q3, interquartile range, and the five-number summary for any numeric data set.

Quartile and IQR Calculator
Enter numbers separated by commas, spaces, or semicolons.

About quartiles and the interquartile range

Quartiles divide an ordered data set into four sections. The first quartile, Q1, marks the point below which roughly one quarter of observations lie. The second quartile, Q2, is the median and splits the data in half. The third quartile, Q3, marks the point below which roughly three quarters of observations lie. Together with the minimum and maximum, these values form the five-number summary used in box plots and exploratory statistics. This calculator first sorts every entered number from smallest to largest. It finds the median of the full list, then finds Q1 from the lower half and Q3 from the upper half. When the list contains an odd number of observations, the central median is excluded from both halves. When a half has an even number of values, its quartile is the average of the two central values. This median-of-halves convention is widely taught, although software packages can use other percentile interpolation rules. The interquartile range, or IQR, equals Q3 minus Q1. It measures the spread of the middle 50 percent of observations and is resistant to extreme values. That resistance makes the IQR useful for skewed distributions, income data, response times, and other measurements where one unusually large or small observation can distort the ordinary range or standard deviation. A small IQR indicates a tightly clustered middle half; a large IQR indicates greater dispersion. A common outlier screen uses fences at Q1 minus 1.5 times the IQR and Q3 plus 1.5 times the IQR. Values outside those fences deserve investigation, but they are not automatically mistakes. They may be valid rare observations, signs of a heavy-tailed distribution, or data-entry errors. The scientific and operational context should determine how they are handled. Quartiles are especially useful for comparing groups because they summarize location and spread without assuming a normal distribution. Report the method used whenever exact quartile values matter, since different conventions can disagree on small samples. This tool displays the sorted sequence so you can verify the ordering and understand exactly how the summary was formed. Decimal values and negative numbers are supported, and repeated observations remain in the calculation because frequency is part of the distribution.

Quartile calculator examples

Data setQuartiles and IQRExplanation
1, 3, 5, 7, 9Q1 = 2, Q2 = 5, Q3 = 8, IQR = 6The median is excluded before taking the medians of the two halves.
2, 4, 6, 8, 10, 12Q1 = 4, Q2 = 7, Q3 = 10, IQR = 6Each half contains three observations.
5, 5, 6, 7, 8, 9, 20Q1 = 5, Q2 = 7, Q3 = 9, IQR = 4The high value changes the maximum but not the middle-half spread.

How to calculate quartiles

  1. Enter the complete data set using commas, spaces, or semicolons.
  2. Select Calculate Quartiles to sort the values and split the distribution.
  3. Read Q1, the median, Q3, and IQR in the five-number summary.
  4. Check the displayed sorted data before interpreting spread or outliers.

Quartile calculator FAQ

How are Q1 and Q3 calculated?

The data are sorted and divided around the overall median. Q1 is the median of the lower half, and Q3 is the median of the upper half.

What is the interquartile range?

The IQR is Q3 minus Q1 and describes the spread of the middle half of a data set. It is less sensitive to extreme observations than the full range.

Why do calculators sometimes give different quartiles?

Several accepted percentile conventions interpolate positions differently, especially in small samples. This calculator uses the median-of-halves method and excludes an odd central median.

Can quartiles identify outliers?

A common rule flags values below Q1 − 1.5 × IQR or above Q3 + 1.5 × IQR. A flagged observation should be investigated rather than automatically deleted.

Do repeated values count?

Yes, every occurrence remains in the ordered data set. Repetition represents frequency and can legitimately affect the median and quartiles.