A test score of 85 sounds good, but is it? It depends on how everyone else did. If the class average was 60, you did very well. If the average was 90, not so much. A z-score puts that idea into a single number: it tells you how many standard deviations a value sits above or below the average. This guide explains what a z-score is, how to calculate it, how to read it and where it is used.

What a Z-Score Means

A z-score, also called a standard score, measures the distance between a value and the mean of its group, counted in standard deviations:

  • A z-score of 0 means the value equals the mean.
  • A positive z-score means the value is above the mean.
  • A negative z-score means the value is below the mean.
  • A z-score of 1.5 means the value is one and a half standard deviations above the mean.

Because z-scores use standard deviations instead of raw units, you can compare things that are measured on different scales, such as exam marks, heights and delivery times.

The Z-Score Formula

z = (x − μ) / σ

  • x is the value you are checking
  • μ (mu) is the mean of the data
  • σ (sigma) is the standard deviation

When you work with a sample instead of a full population, you use the sample mean (x̄) and the sample standard deviation (s). The formula keeps the same shape.

Step-by-Step Example

Five students scored 62, 70, 74, 78 and 86 on a test.

  1. Find the mean. (62 + 70 + 74 + 78 + 86) / 5 = 370 / 5 = 74.
  2. Find the deviations. −12, −4, 0, 4 and 12.
  3. Square them and add. 144 + 16 + 0 + 16 + 144 = 320.
  4. Divide by 5 for the population variance: 320 / 5 = 64. The standard deviation is the square root, 8.
  5. Compute each z-score. For 86: (86 − 74) / 8 = 1.5. For 62: (62 − 74) / 8 = −1.5. For 78: 4 / 8 = 0.5.

If these five students are only a sample of a larger group, you would divide by 4 instead of 5, which gives a sample standard deviation of about 8.94 and a slightly smaller z-score for the same mark. Which version to use depends on whether your data is the whole group or a sample from it.

How to Read a Z-Score

If your data follows a roughly bell-shaped (normal) distribution, z-scores connect directly to percentages. The well-known empirical rule says:

  • About 68 percent of values fall within 1 standard deviation of the mean (z between −1 and 1).
  • About 95 percent fall within 2 standard deviations.
  • About 99.7 percent fall within 3 standard deviations.

Normal distribution bell curve showing 68, 95 and 99.7 percent of values within 1, 2 and 3 standard deviations

You can also turn a z-score into a percentile with a standard normal table or a calculator. A few reference points:

Z-score Share of values below
−1 about 15.9%
0 50%
1 about 84.1%
1.5 about 93.3%
2 about 97.7%

So the student with a z-score of 1.5 scored higher than about 93 percent of the group, assuming a roughly normal spread. These percentages only hold when the data is close to normal. For heavily skewed data, the z-score is still correct as a distance, but the percentile reading can be misleading.

Comparing Different Scales With Z-Scores

Suppose a student got 78 in maths and 84 in English. The English mark looks better, but the classes were different:

  • Maths: class mean 65, standard deviation 8. z = (78 − 65) / 8 = 1.63
  • English: class mean 75, standard deviation 12. z = (84 − 75) / 12 = 0.75

Relative to their classmates, the student did noticeably better in maths, even though the raw mark was lower. This is the main reason z-scores exist: they make unlike things comparable.

Comparison of a maths mark of 78 and an English mark of 84 on the standard scale with z-scores 1.63 and 0.75

Working Backwards: Finding a Value From a Z-Score

You can also rearrange the formula to get the original value: x = μ + z × σ. Suppose a test is scored with a mean of 100 and a standard deviation of 15. A z-score of 2 corresponds to 100 + 2 × 15 = 130, and a z-score of −1 corresponds to 100 − 15 = 85. This is how cutoffs are set, for example "the top 2.5 percent" or "more than one standard deviation below average".

Where Z-Scores Are Used

  • Education: comparing results across tests or schools, and standardised test reporting.
  • Medicine: growth charts and bone density reports often express results as z-scores compared with a reference group.
  • Quality control: flagging parts or batches that sit far from the process average.
  • Finance and data analysis: spotting unusual returns, prices or sensor readings.
  • Statistics: testing hypotheses and building confidence intervals.

Z-Scores and Outliers

A common rule of thumb treats values with a z-score above 3 or below −3 as potential outliers, since they sit very far from the mean in a normal distribution. Some analysts use 2.5 or 2 as the cutoff, depending on the field. A high z-score does not prove an error. It only marks a value that deserves a closer look, because a real but rare event can look exactly the same.

Common Mistakes

  1. Mixing population and sample formulas. Using the wrong standard deviation shifts every z-score a little.
  2. Applying percentile rules to skewed data. The 68-95-99.7 rule assumes a roughly normal shape.
  3. Using the wrong mean. Compare a value only with the group it belongs to.
  4. Ignoring tiny samples. With very few data points, the mean and standard deviation are unstable, so z-scores are less reliable.

Calculate It Online

Skip the arithmetic with our z-score calculator. If you need the building blocks first, use the standard deviation calculator and the average calculator. To turn a result into a share of the group, the percentage calculator helps.

Frequently Asked Questions

Can a z-score be negative?

Yes. A negative z-score means the value is below the mean.

What is a good z-score?

It depends on context. For exam marks, higher is better. For something like blood pressure or defect rates, a z-score near zero is usually preferable.

What is the difference between a z-score and a standard deviation?

The standard deviation measures how spread out the whole data set is. A z-score uses that spread to say where one particular value sits.

Does the data have to be normal?

You can calculate a z-score for any data. To read it as a percentile, the data should be roughly bell-shaped.