CalcDepo

Quartiles and IQR Calculator

Find Q1, Q3, interquartile range and outlier fences.

Inputs

Results

Minimum1
Q15.5
Median10
Q314.75
Maximum40
IQR9.25
Lower fence-8.375
Upper fence28.625

Chart

Not what you need? Search by intent

Describe what you want to find โ€” โ€œbox plotโ€ โ€” and jump to the right calculator.

How to use the quartiles and iqr calculator

Find Q1, Q3, interquartile range and outlier fences. Enter data values in the field above; the minimum, q1, median, q3, maximum, iqr, lower fence, upper fence are computed instantly and plotted on the chart so you can see how the answer changes.

Formula

Minimum = lo(d)
Q1 = quant(d,0.25)
Median = med(d)
Q3 = quant(d,0.75)
Maximum = hi(d)
IQR = [Q3]-[Q1]
Lower fence = [Q1]-1.5 ร— [IQR]
Upper fence = [Q3]+1.5 ร— [IQR]

Variables

  • d โ€” Data values

Worked example

With data values = 1,3,5,7,9,11,14,15,18,40, the calculator gives minimum โ‰ˆ 1; q1 โ‰ˆ 5.5; median โ‰ˆ 10; q3 โ‰ˆ 14.75; maximum โ‰ˆ 40; iqr โ‰ˆ 9.25; lower fence โ‰ˆ -8.375; upper fence โ‰ˆ 28.625.

Frequently asked questions

What is the formula for the quartiles and iqr calculation?

Minimum = lo(d). Q1 = quant(d,0.25). Median = med(d). Q3 = quant(d,0.75). Maximum = hi(d). IQR = [Q3]-[Q1]. Lower fence = [Q1]-1.5 ร— [IQR]. Upper fence = [Q3]+1.5 ร— [IQR]. Here d is data values.

What inputs do I need for the quartiles and iqr calculator?

You need data values. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.

How do I use this calculator?

Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.

Is the result exact?

Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.

Related calculators

More in Statistics & Probability: Mean, Median and Mode ยท Standard Deviation ยท Percentile ยท Z-Score ยท Normal Distribution Probability ยท Inverse Normal ยท Binomial Probability ยท Cumulative Binomial Probability