Median and quartiles calculator
Find the median, quartiles and interquartile range.
Enter 2 to 30 values separated by semicolons. Spreadsheets may use other quartile conventions.
Calculation inputs
Median (Q2)
- First quartile (Q1)
- 2
- Third quartile (Q3)
- 7.5
- Interquartile range
- 5.5
- Minimum
- 1
- Maximum
- 8
QR code
How the calculation works
Sort the values. Q2 is the overall median, and Q1 and Q3 are the medians of the lower and upper halves. For an odd number of observations, leave the central value out of the halves. The interquartile range is Q3 − Q1.
Example
For 1, 3, 6, 7 and 8, the median is 6, Q1 is 2 and Q3 is 7.5.
Median and quartiles — OpenStaxMethod checked