MathsStatistics & Probability

Z-Score
calculator.

Turn a value into a z-score and percentile, or work back, with the area shaded.

How it's worked out

A z-score counts how many standard deviations a value sits from the mean. You subtract the mean, so the center becomes 0, and divide by the standard deviation, so the spread becomes 1.

z\displaystyle z=x−μσ\displaystyle {}= \frac{x - \mu}{\sigma}x\displaystyle x=μ+zσ\displaystyle {}= \mu + z\sigma

Here xx is your value, μ\mu (mu) is the mean of the group and σ\sigma (sigma) is its standard deviation. A positive z is above the mean and a negative z is below it. The second form runs the formula backwards, from a z-score to a value.

To turn z into a percentile, the tool finds the area under the standard normal curve to the left of z, written Φ(z)\Phi(z). That area is the share of values below yours, if the data follow a bell curve. For a percentile you already know, it runs the curve backwards with Φ−1\Phi^{-1} to find z, then converts to your scale.

The area to the right is 1−Φ(z)1 - \Phi(z). The two-tailed area doubles the smaller tail; it is the p-value of a two-sided z-test.

Worked examples

An exam score

Priya scores 85 on a test where the class mean is 75 and the standard deviation is 10. Her z-score is (85 − 75) ÷ 10 = 1, one standard deviation above the mean. The area to the left is 0.8413, so she scored higher than about 84.13% of the class. Only 1 in 6.3 students scored higher.

Open this example in the tool

Which score is better?

Priya also took a placement test and scored 620, where the mean is 500 and the standard deviation is 100. That is z = 1.2, at 88.49% of test takers. The raw scores cannot be compared, but the z-scores can: 620 is relatively stronger than 85, even though both are good. The compare card does this for any two scores.

Open this example in the tool

Adult heights in a range

Suppose adult heights in a group have mean 175 cm and standard deviation 7 cm. Heights of 168 and 182 cm are at z = −1 and z = 1. The share between them is 0.6827, the 68% of the 68-95-99.7 rule.

Open this example in the tool

The cut-off for the top 10%

A scholarship goes to the top 10% on a test with mean 1,050 and standard deviation 210. The 90th percentile is z = 1.2816, so the cut-off is 1,050 + 1.2816 × 210 = 1,319.13. A score of 1,320 clears it.

Open this example in the tool

Reading your result

For data shaped like a bell curve, about 68% of values have a z between −1 and 1, about 95% between −2 and 2 and about 99.7% between −3 and 3 (NIST e-Handbook, section 1.3.6.6.1). So a z beyond ±2 is unusual, roughly 1 value in 20, and a z beyond ±3 is rare. The NIST e-Handbook (section 1.3.5.17) describes |z| above 3 as a common first screen for outliers.

Whether a high z is good depends on what you measure. A z of 2 on a test is a strong result. A z of 2 on a blood test or a machine part may need a closer look. A student with a GPA of 2.3, where the mean is 3.1 and the standard deviation is 0.4, has z = −2: lower than about 97.7% of classmates.

These areas, read from the same curve as a printed z table, show where the most used values sit:

zArea belowArea aboveTwo-tailed
−20.02280.97720.0455
−10.15870.84130.3173
00.50.51
10.84130.15870.3173
1.6450.950.050.1
1.960.9750.0250.05
20.97720.02280.0455
30.99870.00130.0027

The percentiles assume a bell curve. If your data are skewed, such as incomes or waiting times, the z-score still tells you the distance from the mean, but the percentile can be well off.

Common mistakes

  • Dividing by the variance. The bottom of the fraction is the standard deviation. With a variance of 100, divide by 10, not by 100.
  • Losing the sign. A score below the mean has a negative z. Dropping the minus sign turns the 16th percentile into the 84th.
  • Using the left area for "above". The share above a value is the right tail. For Priya, the left area is 0.8413 but the share who scored higher is 0.1587.
  • Mixing groups. The mean and standard deviation must describe the group the value belongs to. A child's height needs the figures for that age, not for all children.
  • Trusting percentiles for small samples. If the mean and standard deviation come from a handful of values, the normal curve overstates how precisely you know them; a t distribution is the safer model.

Questions people ask

Find the area under the standard normal curve to the left of z. For example, z = 1 has about 84.13 percent of the distribution below it, so it is roughly the 84th percentile. The calculator shows this area directly and shades it on the curve.

Sources