What a Z-Score Tells You

A z-score measures how far a single data point sits from the average of your dataset, measured in standard deviations. If you have a test score of 85 and the class average is 75 with a standard deviation of 5, your z-score is +2—meaning your score is 2 standard deviations above the mean. A z-score of 0 means you are exactly at the average. Negative z-scores mean your data point is below the average.

Z-scores let you compare things that use different scales. You can compare a student's math score to their reading score, or compare one person's height to another person's weight, because z-scores strip away the units and show only distance from the center. They also tell you how unusual a data point is: a z-score above 3 or below −3 is rare in most real-world datasets.

Key Takeaways

  • The z-score formula is (data point − mean) ÷ standard deviation, and you need all three numbers before you start.
  • Calculate the mean by adding all values and dividing by how many values you have.
  • Calculate the standard deviation by finding how far each point is from the mean, squaring those distances, averaging them, and taking the square root.
  • A positive z-score means the data point is above average; a negative z-score means it is below average.
  • Most calculators and spreadsheets have built-in functions that compute z-scores in one step once you enter the data.

Step 1: Gather Your Data and Find the Mean

Start by writing down all the values in your dataset. For example, if you are finding the z-score for a single test score in a class, list every student's score. Let's say the scores are: 72, 85, 88, 76, 92, 81, 79, 90.

Add all the values together: 72 + 85 + 88 + 76 + 92 + 81 + 79 + 90 = 663. Then divide by the number of values. You have 8 scores, so 663 ÷ 8 = 82.875. This is your mean (the average). Round to a reasonable number of decimal places—82.88 or 82.9 works fine for most purposes.

Step 2: Calculate the Standard Deviation

Standard deviation measures how spread out your data is. Subtract the mean from each individual value, then square the result. Using the test scores above with a mean of 82.88:

  • 72 − 82.88 = −10.88; squared = 118.37
  • 85 − 82.88 = 2.12; squared = 4.49
  • 88 − 82.88 = 5.12; squared = 26.21
  • 76 − 82.88 = −6.88; squared = 47.33
  • 92 − 82.88 = 9.12; squared = 83.17
  • 81 − 82.88 = −1.88; squared = 3.53
  • 79 − 82.88 = −3.88; squared = 15.05
  • 90 − 82.88 = 7.12; squared = 50.69

Add all the squared differences: 118.37 + 4.49 + 26.21 + 47.33 + 83.17 + 3.53 + 15.05 + 50.69 = 348.84. Divide by the number of values (8): 348.84 ÷ 8 = 43.605. Take the square root: √43.605 = 6.60. This is your standard deviation.

Note: If you are working with a sample rather than an entire population, divide by (n − 1) instead of n in the second step. In this example, you would divide by 7 instead of 8. The difference matters more with small datasets.

Step 3: explore the Z-Score Formula

Now use the formula: z = (x − mean) ÷ standard deviation, where x is the single data point you want to convert. Say you want the z-score for a student who scored 88.

z = (88 − 82.88) ÷ 6.60 = 5.12 ÷ 6.60 = 0.775. Round to two decimal places: z = 0.78. This student's score is 0.78 standard deviations above the class average. A student who scored 72 would have z = (72 − 82.88) ÷ 6.60 = −10.88 ÷ 6.60 = −1.65, meaning 1.65 standard deviations below the mean.

Using a Calculator or Spreadsheet

Most scientific calculators have a statistics mode that computes mean and standard deviation automatically. Enter your dataset into the calculator's statistics function, then use the formula bar to calculate (x − mean) ÷ standard deviation for each point. Check your calculator's manual for the exact button sequence, as it varies by brand.

In a spreadsheet like Excel or Google Sheets, use the AVERAGE() and STDEV() functions. In a cell, type =AVERAGE(A1:A8) to find the mean of cells A1 through A8, and =STDEV(A1:A8) to find the standard deviation. Then in another cell, type =(A1−AVERAGE($A$1:$A$8))/STDEV($A$1:$A$8) to calculate the z-score for the value in A1. The dollar signs lock the range so you can copy the formula down to other cells. Some spreadsheets also have a STANDARDIZE() function that does this in one step: =STANDARDIZE(A1, AVERAGE($A$1:$A$8), STDEV($A$1:$A$8)).

Common Mistakes to Avoid

The most frequent error is forgetting to square the differences before averaging them. If you skip the squaring step, you will get zero or near-zero (because negative and positive differences cancel out), and your standard deviation will be wrong. Always square first, then average, then take the square root.

Another mistake is using the wrong divisor for standard deviation. If your data is the entire population you care about (like all students in one class), divide by n. If your data is a sample from a larger population (like 8 students chosen from a school of 500), divide by n − 1. Most spreadsheet functions default to n − 1, so check the documentation if you are unsure.

Rounding too early can also throw off your answer. Keep at least two decimal places through each step, then round your final z-score. Rounding the mean or standard deviation before using them in the formula introduces small errors that add up.

Interpreting Your Z-Score

A z-score between −2 and +2 is typical for most datasets. About 95 percent of data in a normal distribution falls within this range. A z-score above 3 or below −3 is unusual and may indicate an outlier—a value that does not fit the pattern of the rest of your data.

Z-scores also let you compare across different scales. If one student scored 88 on a math test (z = 0.78) and 91 on a reading test (z = 1.2), the reading score is further above average relative to the class, even though the raw numbers are closer together. This is why z-scores are useful in research, quality control, and any field where you need to compare measurements that use different units or ranges.

Frequently Asked Questions

What is the difference between population and sample standard deviation?

Population standard deviation divides by n (the total number of values) and describes the spread of an entire group. Sample standard deviation divides by n − 1 and is used when your data is a subset of a larger population. The n − 1 version gives a slightly larger result and is more conservative—it accounts for the fact that a sample may not perfectly represent the whole population.

Can a z-score be zero?

Yes. A z-score of zero means the data point is exactly equal to the mean. This is rare in real datasets but possible. It straightforward means that value is right at the center of your distribution.

What does a negative z-score mean?

A negative z-score means the data point is below the mean. The more negative the z-score, the further below average it is. For example, z = −2 means the value is 2 standard deviations below the mean, while z = −0.5 means it is only half a standard deviation below.

Do I need to memorize the z-score formula?

For homework or exams, yes—your instructor will likely require it. For real-world work, no. Spreadsheets and statistical software calculate z-scores automatically. Understanding what the formula does (measuring distance from the mean in units of standard deviation) matters more than memorizing the symbols.

Why would I use a z-score instead of just comparing raw numbers?

Z-scores let you compare things on different scales. A test score of 85 out of 100 is not directly comparable to a height of 5 feet 10 inches, but their z-scores are. Z-scores also show you how unusual a value is relative to the rest of your data, which raw numbers alone do not reveal.