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

Monitor with a bell curve and a shaded area right of the mean, a printed z-table, a graded test paper and a calculator

To calculate a z score, subtract the mean from your value and divide the result by the standard deviation: z = (x − μ) ÷ σ. The answer tells you how many standard deviations the value sits above the mean (positive z) or below it (negative z). A score of 82 on a test with mean 70 and standard deviation 8 has z = 1.5.

That single number does two jobs. It puts results from different scales on a common footing, so you can compare a chemistry mark with a history mark or a child’s height with their weight. And when the data follow a roughly normal (bell-shaped) distribution, the z-score converts straight into a percentile: z = 1.5 means you beat about 93% of the group.

This guide covers the formula, how to read a z-table, negative z-scores, the version for a sample mean, and when you should switch to a t-score instead. Our z-score calculator does all of this in one step and also returns the percentile and p-values.

The z-score formula

For a single value from a population with a known mean and standard deviation:

z = (x − μ) ÷ σ

  • x is the value you are looking at (a test score, a height, a weight).
  • μ (mu) is the mean of the population.
  • σ (sigma) is the population standard deviation.

If you only have sample statistics, the same formula works with the sample mean x̄ and sample standard deviation s in their place: z = (x − x̄) ÷ s. The top of the fraction, x − μ, is the raw distance from the mean in the original units. Dividing by σ rescales that distance into “standard deviation units”, which is why a z-score has no units at all.

If you do not yet have the mean and standard deviation, work those out first. Our guides to finding the mean, median and mode and to standard deviation show both by hand, or you can use the standard deviation calculator.

How to calculate a z score step by step

Here is the method with a test result. The class mean is 70, the standard deviation is 8, and you scored 82.

  1. Subtract the mean from your value: 82 − 70 = 12. You scored 12 points above average.
  2. Divide by the standard deviation: 12 ÷ 8 = 1.5.
  3. Read the sign: positive, so the score is above the mean.

Your z-score is 1.5. Now compare it with a friend who took a different exam, scoring 640 where the mean was 500 and the standard deviation was 100. Their z-score is (640 − 500) ÷ 100 = 1.4. The raw scores look wildly different, but once standardized your result is slightly further above its group’s average than your friend’s.

A second example: height

Suppose adult women’s heights in a population have a mean of 64 inches (162.6 cm) and a standard deviation of 2.8 inches (7.1 cm). A woman who is 70 inches (177.8 cm) tall has:

z = (70 − 64) ÷ 2.8 = 6 ÷ 2.8 = 2.14

She is a little over two standard deviations above average. Work it in centimeters and you get the same answer, (177.8 − 162.6) ÷ 7.1 = 2.14, because the units cancel. Pediatric growth charts from the CDC rely on exactly this idea: a child’s measurement is converted to a z-score (or percentile) against children of the same age and sex.

Turning a z-score into a percentile with a z-table

A standard normal table (z-table) lists the area under the bell curve to the left of each z value. That area is the proportion of the population below your value, which is the percentile.

To read a typical table for z = 1.50, find the row for 1.5 and the column for 0.00. The entry is 0.9332, so 93.32% of values fall below a z of 1.5. Your test score of 82 sits at about the 93rd percentile. For the height example, z = 2.14 gives 0.9838, so she is taller than roughly 98% of women in that population.

These are the values you will use most often:

z-scoreArea to the left (percentile)Area to the right
−3.00.13%99.87%
−2.02.28%97.72%
−1.56.68%93.32%
−1.015.87%84.13%
−0.530.85%69.15%
050.00%50.00%
0.569.15%30.85%
1.084.13%15.87%
1.2889.97%10.03%
1.593.32%6.68%
1.64595.00%5.00%
1.9697.50%2.50%
2.097.72%2.28%
3.099.87%0.13%

To find the area to the right (the share of values above yours), subtract from 1: for z = 1.5, 1 − 0.9332 = 0.0668, so 6.68% of students scored higher. To find the share between two z-scores, subtract the smaller area from the larger. Between z = −1 and z = 1 you get 0.8413 − 0.1587 = 0.6826, the familiar 68% from the 68–95–99.7 rule.

Some printed tables list the area between 0 and z instead of the area to the left. Check the diagram at the top of the table: if 0 gives 0.0000 rather than 0.5000, add 0.5 for positive z. The normal distribution calculator skips the table entirely and works for any mean and standard deviation.

Negative z-scores

A negative z-score means the value is below the mean. There is nothing wrong with it. If you scored 58 on the test with mean 70 and standard deviation 8:

z = (58 − 70) ÷ 8 = −12 ÷ 8 = −1.5

From the table, the area to the left of −1.5 is 0.0668, so a 58 is at roughly the 7th percentile. Notice the symmetry: the area below −1.5 equals the area above +1.5. That symmetry is handy when your table only shows positive z values. Look up 1.5, get 0.9332, and subtract from 1 to get 0.0668.

The size of z tells you how unusual a value is, whatever its sign. A z of −2.5 is just as far out as +2.5. Many fields flag anything beyond about ±2 as unusual and anything beyond ±3 as a possible outlier, since under a normal curve only about 0.27% of values fall that far from the mean.

Going backwards: from z-score to raw score

Sometimes you know the percentile and want the value. Rearrange the formula:

x = μ + z × σ

Say a scholarship goes to students in the top 10% of the class. You need the value with 90% below it. The z-score for the 90th percentile is about 1.28 (from the table, 0.8997 is the nearest entry). The cut-off score is 70 + 1.28 × 8 = 80.24, so you need roughly 81 or better. For exact inverse lookups, the inverse normal calculator gives z = 1.2816 for the 90th percentile, and the raw score calculator converts it back into test points.

Z-score for a sample mean

The formulas above describe a single value. If you want to know how unusual the average of a sample is, the spread you divide by changes. Sample means vary less than individual values, and their standard deviation is the standard error, σ ÷ √n:

z = (x̄ − μ) ÷ (σ ÷ √n)

Here is a worked example. A cereal filler is set to 500 g per box, and the process has a known standard deviation of 6 g. An inspector weighs 36 boxes and finds an average of 498 g.

  1. Standard error: 6 ÷ √36 = 6 ÷ 6 = 1 g.
  2. z = (498 − 500) ÷ 1 = −2.0.
  3. Area to the left of −2.0 is 0.0228, so a sample average this low or lower would happen only about 2.3% of the time if the machine were really centered on 500 g.

Compare that with a single box at 498 g: z = (498 − 500) ÷ 6 = −0.33, which is completely ordinary. The same 2 g shortfall is unremarkable for one box but a warning sign for the average of 36. This is the logic behind the one-sample z-test, which our z-test calculator runs with p-values. The sample size guide uses the same standard error to plan surveys.

When to use a t-score instead

The z formula assumes you know the population standard deviation σ. In real research you usually do not. You estimate it from the sample with s, and that extra uncertainty matters when the sample is small. In that case you calculate a t-statistic, which has the same shape of formula:

t = (x̄ − μ) ÷ (s ÷ √n)

The difference is the distribution you compare it with. The t distribution has heavier tails than the normal curve, so you need a bigger value to call something unusual. For a two-sided 95% test, the cut-off is 1.96 for z, but 2.262 for t with 9 degrees of freedom (n = 10), 2.045 with 29 degrees of freedom, and 1.984 with 99. As the sample grows, t and z converge.

Rerun the cereal check with only 10 boxes, a sample mean of 498 g and a sample standard deviation of 6 g. The standard error is 6 ÷ √10 = 1.897, so t = −2 ÷ 1.897 = −1.05. The two-sided p-value from the t distribution is about 0.32, nowhere near significant. A practical rule: use z when σ is genuinely known or the sample is large (a common guide is n above 30), and use t otherwise. The t-test calculator handles that version. OpenStax Introductory Statistics, a free textbook from Rice University, covers both distributions in more depth.

Common mistakes

  • Subtracting in the wrong order. It is value minus mean, not mean minus value. Reversing it flips the sign and puts you on the wrong side of the curve.
  • Dividing by the variance instead of the standard deviation. If you were given a variance of 64, the standard deviation is √64 = 8.
  • Using σ for a sample mean. When the question is about an average of n values, divide by σ ÷ √n.
  • Reading the wrong kind of z-table. Check whether the table gives the area to the left of z or the area between 0 and z.
  • Treating percentiles as exact for skewed data. The z-to-percentile conversion only holds if the data are roughly normal. Incomes, reaction times and waiting times often are not.
  • Rounding z too early. Two decimal places is standard for table lookups, but keep more digits if you will reuse the number.

Frequently asked questions

What does a z-score of 0 mean?

The value equals the mean exactly. Under a normal curve it sits at the 50th percentile, with half of all values below it.

Is a z-score of 2 good or bad?

It depends on what you are measuring. A z of 2 on a test is excellent (about the 98th percentile), while a z of 2 on blood pressure or defect rate would be a warning sign. The z-score only says how unusual a value is, not whether that is desirable.

Can a z-score be greater than 3?

Yes. There is no upper or lower limit. Under a normal distribution values beyond ±3 are rare (about 0.27%), so they are worth checking for errors or genuine outliers.

What is the difference between a z-score and a percentile?

A z-score measures distance from the mean in standard deviations. A percentile is the share of values below a point. For normal data you can convert one to the other with a z-table.

Do I use the sample or population standard deviation?

Use the population value σ if it is known. If you only have a sample, use the sample standard deviation s, and for a small sample mean compare the result with the t distribution rather than the normal curve.

Once the formula clicks, a z-score becomes a fast way to put any measurement in context: subtract the mean, divide by the standard deviation, and check the table. For a value below the mean expect a negative number, for an average of several values divide by the standard error, and when the population standard deviation is unknown and the sample is small, reach for t. The z-score calculator and the percentile rank calculator will confirm your hand calculations.