Maths & numbers

Percentile calculator

Find an interpolated percentile in a set of numbers.

Percentile calculator
Esc to restore

Your inputs

Results update as you type. Larger files run when you press Update result.

Your result

Your result will appear here.

More actions

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Sorts values and uses inclusive linear interpolation at index (n−1)×p/100 (Hyndman–Fan type 7). Endpoints are the minimum and maximum. Other percentile conventions can give different results, especially for small samples.

How this is checked

4 reference checks passed These 4 cases were run when this page was built, on 3 December 2026, and all reproduce within the stated tolerance. The same cases are part of the automated tests that run on every change to Toolmoz. Engine version 1.

See the checks and where each expected answer comes from
  1. Case 1

    Inputs
    Numbers, separated by spaces or commas 2, 4, 4, 4, 5, 5, 7, 9Percentile (0–100) 75
    Expected, and what Toolmoz gave
    Percentile value expected 5.5, Toolmoz 5.5Count expected 8, Toolmoz 8
    Where the expected answer comes from
    Sorted values; position (n − 1) × p = 7 × 0.75 = 5.25 (0-based), so interpolate a quarter of the way from the value at 5 (5) to the value at 6 (7): 5 + 0.25 × 2 = 5.5
    Allowed difference
    ±1e-12 relative
  2. Case 2

    Inputs
    Numbers, separated by spaces or commas 2, 4, 4, 4, 5, 5, 7, 9Percentile (0–100) 50
    Expected, and what Toolmoz gave
    Percentile value expected 4.5, Toolmoz 4.5
    Where the expected answer comes from
    Position 7 × 0.5 = 3.5 lies halfway between the values at 3 (4) and 4 (5): 4.5, the median
    Allowed difference
    ±1e-12 relative
  3. Case 3

    Inputs
    Numbers, separated by spaces or commas 2, 4, 4, 4, 5, 5, 7, 9Percentile (0–100) 90
    Expected, and what Toolmoz gave
    Percentile value expected 7.6, Toolmoz 7.6
    Where the expected answer comes from
    Position 7 × 0.9 = 6.3: 7 + 0.3 × (9 − 7) = 7.6
    Allowed difference
    ±1e-12 relative
  4. Case 4

    Inputs
    Numbers, separated by spaces or commas 1, 2, 3, 4, 5, 6, 7, 8, 9, 10Percentile (0–100) 25
    Expected, and what Toolmoz gave
    Percentile value expected 3.25, Toolmoz 3.25
    Where the expected answer comes from
    Position 9 × 0.25 = 2.25: the value at 2 is 3, at 3 is 4, so 3 + 0.25 × 1 = 3.25
    Allowed difference
    ±1e-12 relative

What this shows: the engine reproduces independently worked values for these cases. It does not prove every possible input is right. To test an answer you were given, see how to check a number; to see what is and is not checked across Toolmoz, see the accuracy ledger.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

Numbers, separated by spaces or commas
2, 4, 4, 4, 5, 5, 7, 9
Percentile (0–100)
75

Example result

Percentile value
5.5
Count
8
Convention
Inclusive linear interpolation (type 7)