Percentile and Quartile Calculator

Enter a list of numbers to get the quartiles, the interquartile range and any percentile, using the inclusive (INC) or exclusive (EXC) method.

Separate numbers with a line break, a space, a semicolon, or a comma followed by a space. A comma with no space after it (such as 1,000) is an error, because it could be a thousands separator or a separator between two numbers. To enter one number, write it without a comma (1000). Use a period for decimals (1.5).
Method
%
If you enter one, that percentile is shown as the main result. If it is empty, the median (50th percentile) is shown.
Median (50th percentile) —
Results
First quartile (Q1; 25th percentile)—
Second quartile (Q2; median)—
Third quartile (Q3; 75th percentile)—
Interquartile range (Q3 − Q1)—
Minimum—
Maximum—
Count—

The value copied is the number shown above, without commas. The minimum and maximum are shown exactly to 6 decimal places (trailing zeros are not shown). Values are calculated exactly to 6 decimal places and rounded once, for display.

How the two methods work (INC and EXC)

Sort the data from smallest to largest. For a percentile p (from 0 to 1; 25% is 0.25), find its rank, meaning its position counted from the smallest. If the rank is not a whole number, the value is found by drawing a straight line between the two neighboring values (linear interpolation).

Quartiles are the 25th, 50th and 75th percentiles (Q1, Q2 and Q3). The interquartile range is Q3 − Q1. Q2 is the median, and it matches the median from the Mean and Median Calculator with both INC and EXC.

The rank formulas above are the ones this calculator uses. Microsoft's documentation, which was checked for this page, states when each function returns an error and that these functions interpolate; it does not print a rank formula, so the formulas here are not quoted from it.

When EXC cannot give a result

EXC works only when p is from 1/(n+1) to n/(n+1) (both ends included). Outside that range the result is "Not available". Microsoft's documentation says PERCENTILE.EXC and QUARTILE.EXC return #NUM! for a k at or below 0 or at or above 1, and when the percentile cannot be interpolated; this calculator does not claim that its range is identical in every case.

Examples

Notes

Sources and date checked

The behavior of INC and EXC was checked against Microsoft's support pages for PERCENTILE.INC, PERCENTILE.EXC and QUARTILE.EXC (checked October 31, 2026).

Frequently asked questions

Should I use INC or EXC?

Use the one that matches your software. If an Excel function name ends in INC or EXC, choose the same one, but check a result against Excel yourself, because this page has not done so. EXC leaves out 0% and 100%, so it may give no result when there are few values.

Why do different programs give different quartiles?

There is more than one definition for finding the rank. This calculator lets you choose INC or EXC and shows the formula for each.

When does EXC say "Not available"?

When p is below 1/(n+1) or above n/(n+1). With 2 values or fewer, Q1 and Q3 are not available.

Is the median the same as in the Mean and Median Calculator?

Yes. The 50th percentile equals the median with both INC and EXC.