Quartiles, IQR and Percentiles

Paste a list of numbers to get the five-number summary, the interquartile range, the outlier fences and P10 to P99. Choose the method so the answers match Excel, R or SPSS.

How it works

The numbers are sorted. Each percentile is then found at a rank in that sorted list. When the rank falls between two values, the answer is taken that fraction of the way between them.

The inclusive method, used by Excel PERCENTILE.INC, Google Sheets, R and NumPy, puts the rank at p × (n − 1), counted from the first value. P0 is the smallest value and P100 the largest. The exclusive method, used by Excel PERCENTILE.EXC, Minitab and SPSS, puts it at p × (n + 1), counted from 1, so a short list has no answer for the extreme percentiles.

The interquartile range is Q3 minus Q1. The fences sit 1.5 times the IQR below Q1 and above Q3, and any value outside them is listed as an outlier. Everything runs on this page.

How to use it

  1. 1 Type or paste your numbers. They do not need to be sorted.
  2. 2 Choose Inclusive or Exclusive to match the program you are checking against.
  3. 3 Read the five-number summary, the IQR, the fences and the outliers.
  4. 4 Type any other percentile, such as 37.5 or 99.9, in the optional box to get that one too.

Good to know

  • If your answer differs from a textbook or another program, switch the method. Small lists give different answers under each one.
  • For response times and other latency figures, P95 and P99 say more about slow cases than the mean does.
  • An outlier is a value worth a second look, not proof of an error. Check it before you remove it.
  • A list with only a few numbers may show None under the exclusive method. Add more numbers or switch to inclusive.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Percentiles, quartiles and why two programs disagree

A percentile answers a simple question: below which value does a given share of the data fall? If the 90th percentile of page load times is 250 milliseconds, then 90 out of 100 loads took 250 milliseconds or less. Quartiles are three of the percentiles with their own names. Q1 is the 25th percentile, the median is the 50th and Q3 is the 75th. With the smallest and largest values they make the five-number summary, which describes a whole list in five figures.

Finding a percentile means finding a position in the sorted list, and here the definitions part ways. Take the list 1, 2, 3, 4. Is Q1 equal to 1.75 or to 1.25? Both answers are correct under a published definition. The inclusive method treats the smallest value as P0 and the largest as P100, and places Q1 a quarter of the way along, at 1.75. The exclusive method places the rank at p × (n + 1), which here gives 1.25. Excel offers both, as PERCENTILE.INC and PERCENTILE.EXC, and QUARTILE.INC and QUARTILE.EXC. When a textbook answer differs from yours, the method is almost always the reason.

The example list in the tool shows how quartiles help with odd values. It holds eleven page load times: 120, 135, 142, 150, 160, 175, 180, 210, 230, 250 and 900 milliseconds. With the inclusive method, Q1 is 146 and Q3 is 220, so the interquartile range is 74. The upper fence is Q3 plus 1.5 times 74, which is 331. The 900 millisecond load sits far beyond it, so it is listed as an outlier. The mean of the list is about 241, pulled up by that one slow load. The median, 175, is a fairer picture of a normal visit.

High percentiles are the standard way to report performance for this reason. A service with a mean response time of 100 milliseconds can still make one user in twenty wait two seconds, and the mean hides that. P95 and P99 show it directly. The tool lists P10 to P99 for any list, and the optional box gives any other percentile you name, such as P99.9. Keep in mind that P99 of a short list is mostly a guess, because there is little data near the top. With the exclusive method, the tool says so by showing None.

A few limits apply. The tool reads plain numbers separated by commas, spaces, semicolons or line breaks, and takes up to 1 MB of text. It does not weight values, so for grouped data, such as counts per bucket, expand each bucket first. The outlier rule is a screening rule, not a test. A value outside the fences is unusual for this list, but it may be perfectly real, so check it before you delete it.

Frequently asked questions

Why do different programs give different quartiles for the same data?

There are at least nine published ways to define a percentile. They agree on large datasets but differ on small ones. This tool offers Excel's two, inclusive and exclusive, because those are the numbers most people check against. Inclusive also matches Google Sheets, R and NumPy by default. Exclusive matches Minitab and SPSS.

What is the interquartile range used for?

The IQR, Q3 minus Q1, is the width of the middle half of the data. Unlike the range, it ignores the extremes, so one odd value does not change it. It is also the basis of the box plot and of the usual rule for outliers.

How are outliers found?

With Tukey's rule. The lower fence is Q1 minus 1.5 times the IQR, and the upper fence is Q3 plus 1.5 times the IQR. Any value below the lower fence or above the upper one is listed. A box plot draws its whiskers to the same fences.

Why does a percentile show None?

Under the exclusive method, the rank p × (n + 1) must lie between 1 and n. For a short list, the extreme percentiles fall outside that, and Excel returns #NUM! for them. The tool says None instead. The inclusive method always has an answer.

Is my data uploaded?

No. Sorting and every calculation happen in this page.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.