A candidate scores 78 on one aptitude test and 85 on another. Which is the better result? The raw numbers cannot tell you, because the tests have different averages and different spreads. A z-score puts both results on the same scale by asking one question: how many standard deviations above or below the average is this value?
This guide explains what a z-score is, how to calculate it and reverse it, and how to turn it into a percentile, a tail probability or a p-value using the normal distribution. You will also see the assumptions behind those conversions, which are easy to forget and matter a lot.
The z-score formula
For a value x from a group with mean μ and standard deviation σ:
z = (x − μ) ÷ σ
- z = 0 means the value is exactly average.
- z = 1.5 means 1.5 standard deviations above average.
- z = −0.8 means 0.8 standard deviations below average.
The sign tells you the direction and the size tells you how unusual the value is. Because z has no units, you can compare values measured on completely different scales. If you need the standard deviation first, the Standard Deviation Calculator will give it to you from raw data.
Comparing two results
Back to the two tests:
| Score | Mean | SD | z | |
|---|---|---|---|---|
| Test 1 | 78 | 70 | 5 | (78 − 70) ÷ 5 = 1.6 |
| Test 2 | 85 | 75 | 8 | (85 − 75) ÷ 8 = 1.25 |
The 78 is the stronger performance relative to the group, even though the raw number is lower.
Reversing the formula
To find the raw score that corresponds to a given z:
x = μ + z × σ
If a test has mean 500 and standard deviation 100, a score 1.2816 standard deviations above the mean is 500 + 1.2816 × 100 ≈ 628. As you will see below, that is the cutoff for the top 10%.
From z-score to percentile
A z-score becomes a probability only when the data follow (or approximately follow) a normal distribution, the symmetric bell curve. In that case, the area under the curve to the left of z is the proportion of values below it. That area is written Φ(z), the standard normal cumulative distribution function.
For a raw score of 85 with mean 70 and standard deviation 10, z = 1.5 and Φ(1.5) ≈ 0.9332. The score is at roughly the 93rd percentile: about 93.3% of values are lower.
For a score of 62 with the same mean and SD, z = −0.8 and Φ(−0.8) ≈ 0.2119, around the 21st percentile.
The 68-95-99.7 rule
Three areas are worth memorising:
| Range | Share of values |
|---|---|
| Within ±1 SD | about 68.27% |
| Within ±2 SD | about 95.45% |
| Within ±3 SD | about 99.73% |
So in normal data, a z-score beyond ±2 happens less than 5% of the time, and beyond ±3 only about 0.27% of the time.
Tail areas and p-values
The same curve answers four kinds of question:
- Left tail, P(Z < z): the percentile.
- Right tail, P(Z > z) = 1 − Φ(z): the share above a value.
- Between two z-scores: Φ(z₂) − Φ(z₁). For example, between −0.5 and 1.5 is 0.9332 − 0.3085 ≈ 0.6247.
- Both tails, P(|Z| > |z|) = 2 × (1 − Φ(|z|)): the two-tailed p-value.
In hypothesis testing, a test statistic of z = 2.1 gives a one-tailed p-value of about 0.0179 and a two-tailed p-value of about 0.0357. With the common 0.05 threshold, both are "significant", but which one you report depends on whether your hypothesis predicted a direction before you saw the data.
From probability back to z (critical values)
Sometimes you know the area and need the z-score. This is the inverse normal, Φ⁻¹(p):
| Area to the left | z |
|---|---|
| 0.90 | 1.2816 |
| 0.95 | 1.6449 |
| 0.975 | 1.9600 |
The familiar 1.96 comes from wanting 95% of the area in the middle, which leaves 2.5% in each tail, so you look up 0.975. That value is the critical value behind 95% confidence intervals, covered in Confidence Intervals Explained.
How to use the calculator
The Z-Score Calculator has four tabs.
- z from x: enter the Raw score (x), Mean (μ) and Standard deviation (σ). You get z, the percentile, left and right tail probabilities, the two-tailed p-value and a plain-language interpretation such as "1.5 standard deviations above the mean".
- x from z: enter a z-score with the mean and SD to get the raw score and its percentile.
- Probability from z: enter z and pick the Area: left tail, right tail, between two values (leave the second z empty for the symmetric area between −|z| and |z|) or both tails.
- z from probability: enter an Area to the left such as 0.95, 95% or 0.025. The result gives z with that area to the left, the matching right-tail value, and the two-sided critical value for a central area.
Each result draws a bell curve with the relevant area shaded, which is a quick visual check that you asked for the tail you meant.
Other ways to get the numbers
- Printed z-tables list Φ(z) to four decimal places for z in steps of 0.01. They work, but reading the wrong row or table (some give the area from 0 to z instead of from −∞) is a common error.
- Spreadsheets:
=STANDARDIZE(x, mean, sd)gives z,=NORM.S.DIST(z, TRUE)gives the left-tail area, and=NORM.S.INV(p)goes back from probability to z. For many rows at once, a spreadsheet is the most efficient choice. - Statistical software such as R (
pnorm,qnorm) or Python's SciPy (norm.cdf,norm.ppf) gives the same results.
Pitfalls and assumptions
The data must be roughly normal
The percentile conversion is only as good as the normal assumption. For skewed data such as incomes, delivery times or website sessions, a z-score still measures distance from the mean, but the percentile from the bell curve can be badly wrong. Use actual ranks, or quartiles from the Mean, Median, Mode Calculator, instead.
Population vs sample standard deviation
If μ and σ come from a small sample, the true values are uncertain. For testing a sample mean with an estimated σ, the t-distribution is more appropriate than z.
One tail or two?
A two-tailed p-value is double the one-tailed value. Mixing them up halves or doubles your evidence.
Outliers inflate σ
A few extreme values increase the standard deviation, which shrinks every other z-score. The outlier itself may not even look extreme. The IQR method is more robust for spotting outliers in messy data.
Frequently asked questions
Can a z-score be negative?
Yes. A negative z-score means the value is below the mean; −2 means two standard deviations below.
What is a good z-score?
It depends on the context. For test scores, anything above 0 is above average and above 2 is exceptional; for defect rates or error times, a low or negative z-score is the good one.
How do I convert a z-score to a percentile?
Find the area to the left of z under the standard normal curve, Φ(z), and multiply by 100. For example, z = 1.5 gives about 93.3%, the 93rd percentile.
What z-score corresponds to the top 5%?
About 1.645, because 95% of the area lies to its left. For the top 2.5% it is 1.96.
Is a z-score the same as a standard score?
Yes. "Standard score" and "standardised value" are other names for a z-score.