Percentile Calculator

Find an interpolated percentile of a numerical data set.

Percentile value
20
Number of values
5

How the calculation works

h = (N−1) × p/100; i = ⌊h⌋; j = ⌈h⌉; Q = x[i] × (1−h+i) + x[j] × (h−i)

Uses linear interpolation (R type 7). Other percentile conventions may differ. Separate values with whitespace or semicolons and use a decimal point.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

h = (N−1) × p/100; i = ⌊h⌋; j = ⌈h⌉; Q = x[i] × (1−h+i) + x[j] × (h−i)

What assumptions apply?

Uses linear interpolation (R type 7). Other percentile conventions may differ. Separate values with whitespace or semicolons and use a decimal point.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Values (spaces or semicolons; decimal point) = 1 2 3 4 5
Percentile (0–100) = 50
Percentile value: 3
Number of values: 5
2
Values (spaces or semicolons; decimal point) = 15 20 35 40 50
Percentile (0–100) = 40
Percentile value: 29
Number of values: 5
3
Values (spaces or semicolons; decimal point) = 7 3 9 1 5 11
Percentile (0–100) = 90
Percentile value: 10
Number of values: 6

How we test our calculators →

Also try:

Back to category →