Find the 40th percentile of a data set: enter your numbers in any order to get the interpolated value, or get its position from the number of observations.
- All Statistics Calculators
- Salary Range Percentile Calculator
- GATE Percentile Calculator
- 95th Percentile Bandwidth Calculator
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Percentile value from data | Finds the value at the 40th percentile of a data set, interpolating between the two nearest sorted values | Requires the data values in any order, up to 10,000 numbers. The percentile is preset to 40% |
| 40th percentile index | Finds the position of the 40th percentile in a sorted list | Requires the number of observations |
| Observation count from the 40th index | Finds how many observations a data set has from its 40th percentile index | Requires the 40th percentile index |
| Index for another percentile | Finds the position of any percentile from 0% to 100% in a sorted list | Requires the number of observations and the percentile |
| Percentile from rank | Converts a rank in a sorted list to the percentile at that position | Requires the number of observations, at least 2, and the 1-based rank |
A percentile can be entered as a percent or as a proportion from 0 to 1. Data values are separated by spaces, commas or new lines, so a comma is never read as a thousands separator. Every result also shows the number of observations and the position in the sorted data.
40th Percentile Formulas
| I40 | 40th percentile index: the position in the data sorted from smallest to largest, where 1 is the smallest value |
| n | Number of observations |
| 0.40 | The 40th percentile as a proportion |
This is the inclusive method, the one used by Excel and by default in R [1][2]. It places the smallest value at 0% and the largest at 100%.
Percentile value from data
The data are sorted and the index is split into its whole part k and its decimal part d. xk is the k-th sorted value and xk+1 is the next one up. For the ten values 12, 15, 18, 20, 22, 25, 28, 30, 35 and 40, the index is 1 + 9 × 0.40 = 4.6, so the 40th percentile sits 60% of the way from the 4th value to the 5th: 20 + 0.6 × (22 − 20) = 21.2. When the index is a whole number, the result is that sorted value itself.
40th percentile index
The main formula applies directly. With 50 observations, I40 = 1 + 49 × 0.40 = 20.6, which is a position between the 20th and 21st sorted values, not a data value.
Observation count from the 40th index
This is the main formula solved for n. An index of 20.6 gives (20.6 − 1) ÷ 0.40 + 1 = 50 observations. An index that does not lead to a whole number of observations is rejected.
Index for another percentile
p is the percentile as a proportion, such as 0.90 for the 90th percentile. With 50 observations the 90th percentile index is 1 + 49 × 0.90 = 45.1.
Percentile from rank
r is the rank counted from the smallest value, starting at 1. The value ranked 21st of 50 is at (21 − 1) ÷ (50 − 1) = 0.4082, or the 40.82nd percentile. The rank cannot be larger than the number of observations.
What Does the 40th Percentile Mean?
The 40th percentile is the value that splits an ordered data set so that about 40% of the values fall below it and about 60% fall above it [1]. It sits below the median, which is the 50th percentile.
A percentile is a position among the other values, not a percent of a total. A test score at the 40th percentile is higher than about 40% of the scores in the group, whatever the number of marks. On an exam out of 960 marks, 40 percent is 384 marks, but the mark at the 40th percentile depends on how everyone else scored and cannot be found from the maximum alone.
Limits of This Estimate
- There is no single standard way to interpolate a percentile. Methods that use (n + 1) × p or n × p in place of 1 + (n − 1) × p give slightly different values for the same data, and the gap is largest for small data sets [1].
- An index is a position in the sorted list. The functions that work from the number of observations alone cannot give the percentile value, which needs the data.
- A percentile found from a small sample is only an estimate of the percentile of the wider population the sample came from [1].
Sources
- NIST/SEMATECH, e-Handbook of Statistical Methods, Section 7.2.6.2, Percentiles: definition of a percentile, the 1 + p(N − 1) method used by Excel and R, interpolation between sorted values and how other methods differ
- R Core Team, R Documentation, Sample Quantiles: the default method, type 7, which places the k-th sorted value at (k − 1) ÷ (n − 1)
