Percentile Calculator
Find any percentile of a data set along with the quartiles, interquartile range and outlier boundaries.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Percentile Calculator does
The percentile calculator on this page will find any percentile of a data set along with the quartiles, interquartile range and outlier boundaries. Fill in all 2 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for finding a percentile rank in a data set. If you want to cross-check the result, there is another percentile calculator on FreeToolsWorld.org.
How to use it
- Paste your data, separated by commas, spaces or new lines.
- Enter the percentile you want.
- Read the quartiles, the IQR and any values outside the outlier fences.
How it works
There is no single correct way to compute a percentile from a sample, and that is a genuine source of disagreement between tools. There are at least nine published methods; this one uses linear interpolation on the sorted data, which is the default in NumPy and matches Excel's PERCENTILE.INC. Excel's PERCENTILE.EXC and several statistical packages use different rules and will give different answers on the same data.
The interquartile range is a robust measure of spread: unlike the standard deviation, it is barely affected by extreme values, because it only looks at the middle half of the data. For skewed distributions it is the more informative figure.
The 1.5 × IQR fence is Tukey's convention for flagging outliers in a boxplot. It is a rule of thumb for drawing attention to points, not a test of whether a value is wrong — a genuine observation can fall outside the fence, and removing data because it did is how analyses go astray.
When to use it
- Finding a percentile rank in a data set.
- Working out quartiles and the IQR for a boxplot.
- Identifying candidate outliers.
- Summarising a skewed distribution robustly.
Common mistakes to avoid
- Expecting every tool to agree on a percentile. There are several legitimate definitions.
- Deleting values flagged as outliers without investigating why they are extreme.
- Using the mean and standard deviation on a strongly skewed distribution where the median and IQR are more informative.
Frequently asked questions
How is a percentile calculated?
By interpolating on the sorted data. For the 90th percentile of n values, the position is 0.9 × (n−1), and the value is interpolated between the two neighbouring observations.
Why do different tools give different percentiles?
Because there are at least nine published definitions. Excel's PERCENTILE.INC and NumPy's default agree; PERCENTILE.EXC and some statistical packages do not.
What is the interquartile range?
Q3 minus Q1, the range of the middle half of the data. It is a robust measure of spread, largely unaffected by extreme values.