A little context. A clearer answer.
When this calculator is useful
Paste your observations and select a quartile method. Review Q1, median, Q3, IQR, fences, actual whiskers and flagged observations. All processing stays in your browser. For a related calculation, try Variance, Standard Deviation & MAD Calculator.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Observations | Separate values with semicolons, spaces or line breaks. Use a dot for decimals; replace decimal commas before pasting. Scientific notation such as 1e3 is accepted. | 1;2;3;4;5;6;7;8;13 |
| Quartile method | Default: R type 7 with linear interpolation. The alternative takes the median of each half, excluding the central observation when the count is odd. | R type 7 · linear interpolation |
How the calculation works
- Sort the observations. Type 7 uses h = (n − 1)p and interpolates between adjacent values, counting positions from zero.
- Calculate Q1 at p = 0.25, the median at 0.5 and Q3 at 0.75; IQR = Q3 − Q1.
- Fences are Q1 − 1.5 × IQR and Q3 + 1.5 × IQR. Flag only observations strictly outside them.
IQR = Q3 − Q1; L = Q1 − 1.5 × IQR; U = Q3 + 1.5 × IQRA worked example
Interquartile range IQR · 7 − 3 = 4 · 7 + 1.5 × 4 = 13 · 14 > 13
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
For 2–1000 unweighted observations, not grouped or frequency data. Quartile definitions can give different answers, especially for small samples. Duplicates and negative values are valid. Zero IQR collapses the fences; flags are descriptive and do not justify deleting data.
Frequently asked questions
Why do quartile methods disagree?
There is more than one accepted definition. Type 7 interpolates; the halves method uses two medians. Always report the chosen method.
Are flagged observations mistakes?
Not necessarily. A flag calls for context, not automatic removal. A value equal to a fence is not flagged.
Are the whiskers the fences?
No. Whiskers end at actual observations inside the fences. When IQR is zero, observations differing from the common quartile can be flagged.