Statistics guide · 7 min read

How to Calculate a Z-Score (Formula and Z-Table)

A z-score tells you how many standard deviations a value sits above or below the mean. It lets you compare values from different data sets and find probabilities with a z-table. This guide covers the formula, reading the table, percentiles, and working backward, with worked examples.

The Z-Score Formula

z=x−μσz = \frac{x - \mu}{\sigma}
  • xx is the value you are looking at.
  • μ\mu is the mean of the population.
  • σ\sigma is the standard deviation of the population.

For a sample, the same idea uses the sample mean and sample standard deviation: z=x−xˉsz = \frac{x - \bar{x}}{s}.

How to read the sign:

  • z>0z > 0: the value is above the mean.
  • z<0z < 0: the value is below the mean.
  • z=0z = 0: the value equals the mean.

A z-score of 2 means "2 standard deviations above the mean," no matter what the original units were.

Calculating a Z-Score Step by Step

Example 1: A brand of phone battery lasts a mean of 20 hours with a standard deviation of 4 hours. Find the z-score for a battery that lasts 26 hours.

  1. Subtract the mean: 26−20=626 - 20 = 6.
  2. Divide by the standard deviation: 64=1.5\frac{6}{4} = 1.5.
  3. Answer: z=1.5z = 1.5. This battery lasted 1.5 standard deviations longer than average.

Example 2: Same batteries. Find the z-score for 17 hours.

  1. 17−20=−317 - 20 = -3.
  2. −34=−0.75\frac{-3}{4} = -0.75.
  3. Answer: z=−0.75z = -0.75, three quarters of a standard deviation below the mean.

Working backward. To turn a z-score into a raw value, solve the formula for xx:

x=μ+zσx = \mu + z\sigma

Example 3: What battery life has a z-score of −1.5-1.5? x=20+(−1.5)(4)=20−6=14x = 20 + (-1.5)(4) = 20 - 6 = 14 hours.

Comparing Values From Different Groups

Z-scores put different scales on the same footing.

Example: Maya is 70 inches tall. In her group, heights have a mean of 64 inches and a standard deviation of 2.5 inches. Leo is 74 inches tall, in a group with a mean of 69 inches and a standard deviation of 3 inches. Who is taller relative to their own group?

  1. Maya: z=70−642.5=62.5=2.4z = \frac{70 - 64}{2.5} = \frac{6}{2.5} = 2.4.
  2. Leo: z=74−693=53≈1.67z = \frac{74 - 69}{3} = \frac{5}{3} \approx 1.67.
  3. Maya's z-score is higher, so she is taller relative to her group, even though Leo is taller in inches.

How to Read a Z-Table

If the data follow a normal distribution, a standard normal table (z-table) tells you the area to the left of a z-score. That area is the proportion of values below it.

Reading the table for z=1.25z = 1.25:

  1. Find the row for the first two digits: 1.2.
  2. Find the column for the second decimal place: 0.05.
  3. Where they meet, the table shows 0.8944.

So about 89.44% of values fall below z=1.25z = 1.25.

Some values you will see often:

zArea to the left
−1.00-1.000.1587
−0.50-0.500.3085
0.000.000.5000
1.001.000.8413
1.251.250.8944
1.281.280.8997
1.501.500.9332
2.002.000.9772

Finding Probabilities With the Table

Use the battery example again: normally distributed with μ=20\mu = 20 hours and σ=4\sigma = 4 hours. There are three kinds of questions.

Less than: P(X<25)P(X < 25).

  1. z=25−204=1.25z = \frac{25 - 20}{4} = 1.25.
  2. Table: 0.8944. So P(X<25)=0.8944P(X < 25) = 0.8944.

Greater than: P(X>25)P(X > 25).

  1. The table gives area to the left, so subtract from 1.
  2. P(X>25)=1−0.8944=0.1056P(X > 25) = 1 - 0.8944 = 0.1056.

Between: P(18<X<26)P(18 < X < 26).

  1. Convert both ends: z=18−204=−0.5z = \frac{18 - 20}{4} = -0.5 and z=26−204=1.5z = \frac{26 - 20}{4} = 1.5.
  2. Look up both: 0.3085 and 0.9332.
  3. Subtract the smaller area from the larger: 0.9332−0.3085=0.62470.9332 - 0.3085 = 0.6247.

About 62.5% of batteries last between 18 and 26 hours.

Z-Scores and Percentiles

A percentile is the percent of values below a given value. Since the z-table already gives area to the left, just multiply by 100.

  • z=1.25z = 1.25: area 0.8944, so about the 89th percentile.
  • z=−1z = -1: area 0.1587, so about the 16th percentile.
  • z=0z = 0: area 0.5000, exactly the 50th percentile (the median of a normal distribution).

Working backward from a percentile: What battery life marks the 90th percentile?

  1. Search the inside of the table for the area closest to 0.9000. That is 0.8997, at z=1.28z = 1.28.
  2. Convert to a raw value: x=20+1.28(4)=20+5.12=25.12x = 20 + 1.28(4) = 20 + 5.12 = 25.12 hours.

Quick check with the empirical rule. In a normal distribution, about 68% of values have zz between −1-1 and 11, about 95% are between −2-2 and 22, and about 99.7% are between −3-3 and 33. Values with a z-score beyond ±2\pm 2 are often called unusual.

Paste a problem into the VeilGPT solver to check your z-scores and table lookups.

Common mistakes

  • Subtracting in the wrong order, mean minus value, which flips the sign of the z-score.
  • Dividing by the variance instead of the standard deviation. If you are given the variance, take its square root first.
  • Reading the z-table as area to the right. A standard table gives area to the left, so greater than questions need 1 minus the table value.
  • Using the z-table for data that are not roughly normal, where the table's probabilities do not apply.

Try one yourself

Heights in a group are normally distributed with mean 64 inches and standard deviation 2.5 inches. Find the z-score for 67 inches and the percent of the group shorter than that.

Work it out, then check every step with the VeilGPT statistics solver.

Check it with VeilGPT

Questions about this topic

Can a z-score be negative?

Yes. A negative z-score means the value is below the mean. For example, z = -2 means the value is 2 standard deviations below average.

What is a good z-score?

It depends on what you are measuring. A high z-score is good for battery life but not for a delivery time. In general, values beyond plus or minus 2 are considered unusual.

Do I use the population or sample formula?

Use the mean and standard deviation you are given. If they describe the whole population, use mu and sigma. If they come from a sample, use x-bar and s. The calculation steps are the same.

More study guides