Formula
z = (x − μ) ÷ σPercentile = Φ(z) × 100Two-tailed p = 2 × min(Φ(z), 1 − Φ(z))
- Φ
- cumulative distribution function of the standard normal distribution
How it works
A z-score says how many standard deviations a value sits above or below the mean. Once you have z, the standard normal curve gives the share of values below it: Φ(z). That share is the percentile, and one minus it is the right-tail probability used in one-sided tests.
Φ is computed from the error function with high-precision decimal arithmetic rather than a printed z-table, so values between table rows (such as z = 1.2345) are exact to the displayed digits. The percentile-to-z direction solves Φ(z) = p numerically.
Worked examples
Test score of 84, class mean 70
z = 1.4, which is about the 91.92nd percentile.
- Value (x)
- 84
- Mean (μ)
- 70
- Standard deviation (σ)
- 10
- Z-score
- 1.4
The 95% two-tailed cutoff
Φ(1.96) = 0.975, so 95% of a normal distribution lies within ±1.96 standard deviations.
- Z-score
- 1.96
- Percentile
- 97.5%
Top 5%
The 95th percentile is z = 1.6449; a value must be about 1.645 SD above the mean.
- Percentile
- 95 %
- Z-score
- 1.6449
Common z-scores
- z = 1.0 → 84.13th percentile
- z = 1.282 → 90th
- z = 1.645 → 95th
- z = 1.96 → 97.5th
- z = 2.326 → 99th
- z = 2.576 → 99.5th
When percentiles from z are misleading
The percentile assumes the data follow a normal (bell-shaped) distribution. Incomes, wait times, and many test score distributions are skewed, and for those the z-score still describes distance from the mean but the percentile is only approximate. If you have the full data set, the rank of the value within it is the real percentile.
Related calculators
- Standard Deviation CalculatorPaste a list of numbers to get the sample or population standard deviation, variance, and mean, with a deviation table for every value.
- Average CalculatorPaste a list of numbers to get the mean, median, mode, and range in one step.
- Percentage CalculatorFind a percentage of a number, work out what percent one number is of another, or recover the original total from a percentage.
Last reviewed: