Przejdź do treści
Liczbnik

Percentile and quartile calculator

Enter numbers separated by commas and choose a percentile (0–100). The calculator instantly returns the percentile value, quartiles Q1, Q2 (median), Q3 and the interquartile range IQR. Uses the linear interpolation method compatible with Excel PERCENTILE.INC (R-7).

Reviewed byRedakcja Liczbnik
Calculator
Percentile analysis resultsPercentile value5.5
Quartile Q1 (25th percentile)
3.25
Median Q2 (50th percentile)
5.5
Quartile Q3 (75th percentile)
7.75
Interquartile range (IQR = Q3 − Q1)
4.5
Number of observations
10

How we calculate percentiles

We sort the data in ascending order. We compute rank = p/100 × (n−1), where p is the chosen percentile and n is the number of elements. Result = x[lo] + frac × (x[lo+1] − x[lo]), where lo = floor(rank), frac = rank − lo. This method (R-7) is the default in Excel (PERCENTILE.INC) and R (type=7).

Example: dataset {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

For numbers 1–10: 25th percentile (Q1) = 3.25; median (Q2) = 5.5; 75th percentile (Q3) = 7.75; IQR = 4.5. The 90th percentile = 9.1, meaning 90% of observations fall below this value.

Frequently asked questions

What is a percentile?

A percentile is a statistical measure indicating the value below which a given percentage of observations fall. For example, the 90th percentile means that 90% of data points are lower than this value. Percentiles are widely used in test scoring, child growth charts, and data analysis.

What is a quartile and how does it relate to a percentile?

Quartiles are special cases of percentiles: Q1 is the 25th percentile, Q2 (the median) is the 50th percentile, and Q3 is the 75th percentile. They divide the dataset into four equal parts and are the basis for box plot visualizations.

Why is the median the 50th percentile?

The median is the middle value of a sorted dataset — exactly half the observations lie below it and half above. That makes it equivalent to the 50th percentile. Unlike the mean, the median is resistant to outliers, making it a better central tendency measure for skewed distributions.

What is IQR (Interquartile Range)?

IQR is the difference between the third quartile (Q3) and the first quartile (Q1): IQR = Q3 − Q1. It describes the range containing the middle 50% of the data. IQR is robust to outliers and is used to detect them: values below Q1 − 1.5×IQR or above Q3 + 1.5×IQR are typically flagged as outliers.

What methods exist for calculating percentiles?

Multiple methods exist (R-1 through R-9, as described by Hyndman and Fan). This calculator uses the R-7 linear interpolation method: rank = p/100 × (n−1); result = x[lo] + frac × (x[lo+1] − x[lo]). This is the default in Excel (PERCENTILE.INC) and R. Minor differences between software packages stem from different edge-case handling.

How are growth percentile charts used?

Growth charts show the distribution of physical measurements (e.g. height, weight) in a population by age and sex. A child at the 50th percentile has a measurement typical for half of peers. Charts published by pediatricians and the WHO are built from data collected on hundreds of thousands of children.

Indicative result

Results are for informational purposes. The calculator uses the linear interpolation method (R-7/PERCENTILE.INC). Other software may apply different calculation methods, which can lead to minor differences in results.
  • Mean, Median and Mode Calculator

    Calculate the mean, median, mode, range, sum and count for any set of numbers. Enter values separated by commas or spaces. Free, instant, no signup required.

    Statistics
  • Z-Score Calculator

    Calculate the z-score (standardized value) and its corresponding percentile in the normal distribution. Enter the value, mean and standard deviation — instant result.

    Statistics