About this calculator
A z-score (standard score) says how many standard deviations a value lies above or below the mean. It puts different measurements on one scale: a z-score of 2 is equally unusual whether it is a shaft diameter, a test score or a cycle time. If the data are normally distributed, the z-score also gives the percentile — the share of values below it.
To find probabilities between two values, or the value for a given probability, use the Normal Distribution calculator.
Formula
Value → z-score
z = (x − μ) ÷ σ
Percentile = Φ(z) upper tail = 1 − Φ(z) two-tailed = 2 × (1 − Φ(|z|))
Φ is the standard normal cumulative distribution function.
z-score → value
x = μ + z × σ
Percentile = Φ(z)
Worked example
Mean 70, standard deviation 10, value 85:
- z = (85 − 70) ÷ 10 = 1.5
- Φ(1.5) = 0.93319 → the value is at the 93.32nd percentile; upper tail 0.066807; two-tailed 0.13361.
- Back again: x = 70 + 1.5 × 10 = 85.
Assumptions and limitations
- The z-score itself needs only the mean and standard deviation. The percentile and tail probabilities assume a normal distribution.
- Φ is computed with a series near the centre and a continued fraction in the tails; it agrees with SciPy within 2.3 parts in 10¹³ (worst case from z = −38 to 8), also for very small tail probabilities.
- Use the population mean and standard deviation if known; with sample estimates from few data the probabilities are approximate.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.6.6.1 (normal distribution).
- Abramowitz, M. & Stegun, I. A. Handbook of Mathematical Functions, chapter 26.
