Z-Score Calculator
Find a z-score from a value or a data set, convert z to a percentile and probability, or a percentile back to z.
Z-score
1.5
z = (85 − 70) ÷ 10 = 1.5
This value is at or above roughly 93.32% of the distribution (percentile 93.32).
Left area P(Z ≤ z)
0.93319
93.32%
Right area P(Z > z)
0.06681
6.68%
Two-tailed P(|Z| ≥ |z|)
0.13361
13.36%
Between P(−|z| ≤ Z ≤ |z|)
0.86639
86.64%
This tool is for information only and is not a substitute for professional statistical advice. Probability and percentile results assume normally distributed data.
What is a z-score?
A z-score (standard score) tells you how many standard deviations a value lies from the mean. A positive z is above the mean, a negative z is below it and z = 0 is exactly the mean. On a test with a mean of 70 and a standard deviation of 10, a score of 85 has a z-score of 1.5, so it sits 1.5 standard deviations above the mean.
Z-scores let you compare values measured on different scales. Scores from two tests with different means and spreads become directly comparable once they are converted to z-scores.
z = (x − μ) / σx = μ + z × σWorked example: for x = 85, μ = 70, σ = 10, z = (85 − 70) / 10 = 1.5. The standard normal area at or below z = 1.5 is 0.93319, so the value is higher than about 93.3% of the distribution and the remaining 6.7% lies above it.
How to calculate z-scores from a data set
If you do not have the mean and standard deviation yet, compute them from the data first. Use the sample standard deviation (divide by n − 1) when the data is part of a larger group, and the population standard deviation (divide by n) when it covers the whole group. Then apply z = (x − x̄) / s to each value.
x̄ = Σxᵢ / ns = √[ Σ(xᵢ − x̄)² / (n − 1) ]z = (x − x̄) / sWorked example: for the data 62, 70, 74, 78, 86, 90 the mean is 76.67 and the sample standard deviation is 10.33. The z-score of 86 is (86 − 76.67) / 10.33 = 0.9.
From z-score to probability and percentile
If the data is normally distributed, the standard normal cumulative distribution function Φ(z) turns a z-score into a probability. Φ(z) is the area at or below z, and 100 times that area is the percentile. The right-tail area is 1 − Φ(z) and the two-tailed area is 2 × (1 − Φ(|z|)). In NIST's z table example the left area for z = 1.53 is 0.93699; this calculator returns 0.93699.
The calculator uses Hart's double-precision rational approximation for Φ(z), and Acklam's algorithm followed by one Halley refinement step for the inverse (percentile to z). Apart from the odd rounding difference in the fifth decimal, the results agree with the NIST table, for example 0.84134 for z = 1 and 0.97500 for z = 1.96.
Left area = Φ(z)Right area = 1 − Φ(z)Two-tailed = 2 × [1 − Φ(|z|)]| z | Left area Φ(z) | Right area | Two-tailed |
|---|---|---|---|
| -3 | 0.00135 | 0.99865 | 0.00270 |
| -2 | 0.02275 | 0.97725 | 0.04550 |
| -1 | 0.15866 | 0.84134 | 0.31731 |
| 0 | 0.50000 | 0.50000 | 1.00000 |
| 1 | 0.84134 | 0.15866 | 0.31731 |
| 1.5 | 0.93319 | 0.06681 | 0.13361 |
| 1.645 | 0.95002 | 0.04998 | 0.09997 |
| 1.96 | 0.97500 | 0.02500 | 0.05000 |
| 2 | 0.97725 | 0.02275 | 0.04550 |
| 2.576 | 0.99500 | 0.00500 | 0.01000 |
| 3 | 0.99865 | 0.00135 | 0.00270 |
The 68-95-99.7 rule
In a normal distribution most values cluster near the mean. The shares below are computed from the standard normal distribution and help you judge quickly how unusual a z-score is.
| Range | Inside | Outside |
|---|---|---|
| ±1 | 68.27% | 31.73% |
| ±2 | 95.45% | 4.55% |
| ±3 | 99.73% | 0.27% |
Confidence levels and critical z values
Critical values for confidence intervals and hypothesis tests come from the inverse conversion, percentile to z. The two-sided value sets the central area equal to the given percent, and the one-sided value sets the left area. The values NIST's z table lists for significance tests agree: 1.960 for a probability of 0.975 and 2.576 for 0.995 (95% and 99% two-sided).
| Confidence level | Two-sided z | One-sided z |
|---|---|---|
| 80% | ±1.282 | 0.842 |
| 90% | ±1.645 | 1.282 |
| 95% | ±1.960 | 1.645 |
| 98% | ±2.326 | 2.054 |
| 99% | ±2.576 | 2.326 |
| 99.9% | ±3.291 | 3.090 |
Frequently Asked Questions
Related Calculators
Standard Deviation Calculator
Standard deviation and variance of a data set
Calculate →Mean, Median, Mode Calculator
Statistical measures of central tendency
Calculate →A/B Test Calculator
Statistical significance and conversion rate analysis
Calculate →Percentage Calculator
Percentage increase, decrease, ratio and discount
Calculate →