Quartile Calculator screenshot

Quartile Calculator

Q1, Q2, Q3, the interquartile range, Tukey fences and the whisker ends of a pasted column.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

What this page computes

Paste one number per line. Quartiles are type 7 quantiles: h = (n − 1)p on the ascending order statistics, interpolated between neighbours, at p = 0.25, 0.5 and 0.75. The page prints Q1, Q2, Q3, the IQR = Q3 − Q1, Tukey's fences at Q1 − 1.5·IQR and Q3 + 1.5·IQR, and the whisker ends: the furthest observed values still inside the fences. Values outside are listed with their line numbers. Figures print to six significant figures.

Different software labels quartiles differently, so the rule is named above and not left to taste. The page does not draw a box plot and does not remove outliers; it only reports which values fall outside the fence. A single value is refused, because the sample variance it also needs divides by n − 1.

Everything is computed from the pasted text in this tab, so the same column gives the same quartiles on every reload.

The page computes Q1, Q2 and Q3 at the type 7 rule, the IQR, Tukey’s fences at Q1 − 1.5·IQR and Q3 + 1.5·IQR, and the whisker ends that a box plot would use. For 2, 4, 4, 4, 5, 5, 7, 9 the quartiles are 4, 4.5 and 5.5 with an IQR of 1.5, the fences fall at 1.75 and 7.75, and the 9 is listed outside them by line number. It refuses a single value, because the sample variance it also needs divides by n − 1.

Get the quartiles, the IQR, the Tukey fences and the whisker ends, with values outside the fences listed by line.

How to use it

Paste your data with one value per line; a comma inside a line is refused because this page reads a column. Each value outside the fences is listed with the line it came from, so a flagged value can be found in the paste rather than searched for.

The quartile rule, the fences and the whiskers

Quartiles are type 7 quantiles — h = (n − 1)p interpolated on the ascending order statistics — because different software labels quartiles differently and the rule would otherwise be left to taste. The fences are Tukey’s 1.5·IQR rule and the whiskers are the furthest observed values still inside them, so a whisker is a data value and never the fence itself. The page does not draw the box plot and does not remove anything; the drawing is on the boxplot page.

What to Expect

Best for

  • Quoting quartiles whose rule is stated

What this tool keeps

  • Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.

Sample input

2 4 4 4 5 5 7 9

Sample output

Q1 = 4, Q2 (median) = 4.5, Q3 = 5.5 IQR = 1.5 (Q3 − Q1) fences: below 1.75 or above 7.75 (Q1 − 1.5·IQR, Q3 + 1.5·IQR) whiskers: 2 to 7, n = 8 outside the fences: 9 (line 8)

Frequently asked questions

Which quartile rule is used?

Type 7: h = (n − 1)p interpolated between order statistics, at p = 0.25, 0.5 and 0.75. It is named on the page because other tools label quartiles differently.

Are the whiskers the same as the fences?

No. The fence is the threshold Q1 − 1.5·IQR or Q3 + 1.5·IQR; the whisker stops at the furthest observed value still inside that threshold. A value beyond a fence is listed separately by line number.

Is my data uploaded?

No. The quartiles, fences and whiskers are computed in this page from the pasted column, and nothing is posted or stored.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.