What is a z-score?
Last updated: 2026-11-24
A z-score is the number of standard deviations a value sits above or below the mean: subtract the mean from the value, then divide by the standard deviation. A z-score of 0 is exactly at the mean, a positive z-score is above it and a negative one is below it.
Start learning No account needed
The z-score has no units, so it lets you compare, with care, scores on different scales, most cleanly when both sets of scores are roughly bell-shaped. The definition and the formula below follow the OpenStax Introductory Statistics chapter on the standard normal distribution.
The formula is z = (x - mean) / SD, where x is the value you are looking at. If you already have the mean and the standard deviation, one subtraction and one division give you the answer.
A worked example: a 78 in math and a 74 in chemistry
Say you got a 78 on a math exam and a 74 on a chemistry exam. You want to know which score is the stronger one for its class. The numbers below are made up for this page, and the script that computes them is scripts/what-is-a-z-score-worked-example.py in the Professor Turing repository.
| Your score | Class mean | Standard deviation | |
|---|---|---|---|
| Math exam | 78 | 70 | 8 |
| Chemistry exam | 74 | 62 | 6 |
- Math. The gap from the mean is 78 - 70 = 8 points. One standard deviation is 8 points, so z = 8 / 8 = 1.00.
- Chemistry. The gap is 74 - 62 = 12 points. One standard deviation is 6 points, so z = 12 / 6 = 2.00.
- Compare. The chemistry score is 12 points above its mean and the math score is 8 points above its mean, so the raw gap already points the same way. The z-scores show how much further: 2 standard deviations above the mean against 1.
The chemistry gap is also bigger measured in standard deviations: 12 / 6 = 2 against 8 / 8 = 1. If you also assume each exam's scores follow a normal distribution, a z-score of 1.00 has about 84.1 percent of scores below it and a z-score of 2.00 has about 97.7 percent below it. That assumption is part of the answer, so check it before you quote a percentage. For comparing test-takers who sat different tests, the Wikipedia article on the standard score uses SAT and ACT scores as its example of putting two scales side by side.
Output from the script, run once on 2026-11-24:
math exam: x=78, mean=70, SD=8 z = (78-70)/8 = +1.00 (84.1% of a normal distribution below)
chemistry exam: x=74, mean=62, SD=6 z = (74-62)/6 = +2.00 (97.7% of a normal distribution below)
raw gaps above the mean: math 8 points, chemistry 12 points
sign flipped: (70-78)/8 = -1.00
variance used: (78-70)/64 = 0.125
std error used: (78-70)/(8/sqrt(25)) = 5.0
within 1, 2, 3 SD of the mean: 68.27%, 95.45%, 99.73%
self-test: q1 = +1.5, q2 = -1.5, q3 = 300
You can also run the formula backwards. A z-score of 1.00 on the math exam means x = 70 + (1.00)(8) = 78, which is the pattern OpenStax writes as x = mean + (z)(SD).
For a normal distribution, OpenStax gives the empirical rule: about 68 percent of values fall within 1 standard deviation of the mean, about 95 percent within 2 and about 99.7 percent within 3. So a z-score beyond +2 or -2 falls outside the middle 95 percent. Many courses treat values that far out as unusual.
Two mistakes students make
1. Getting the sign wrong
The mean comes off the value, not the other way round. Compute (70 - 78) / 8 on the math exam and you get -1.00, a score that reads as below average when you scored above average. Before you write the answer, look at the sign: if the value is bigger than the mean, the z-score must be positive.
A negative z-score is not a mistake by itself. A 58 on the math exam gives (58 - 70) / 8 = -1.5, which says the score is 1.5 standard deviations below the mean.
2. Dividing by the wrong spread
The denominator is the standard deviation, which is in the same units as your scores. Two substitutions to check for:
- The variance. The variance is the standard deviation squared, 64 on the math exam. Dividing 8 by 64 gives 0.125, which looks like a score very close to the mean when it is 1 standard deviation above.
- The standard error. The standard error is the standard deviation divided by the square root of the sample size, and it describes how much an average of n scores varies, not how much one score varies. With 25 students it is 8 / 5 = 1.6, and dividing 8 by 1.6 gives 5.0, far too large for one student's score. The Wikipedia article on the z-test uses the standard error for the z-score of a sample mean, so the standard error is correct there and wrong for a single value.
One more point about the spread. The formula as the Wikipedia standard score article states it uses the population mean and the population standard deviation. When you only know the sample's mean and standard deviation, that article says the analogous calculation gives a t-statistic, so check which one your course asks for.
Test yourself
Work each question on paper first. Open the answer after you have written yours.
Question 1. A quiz has a mean of 70 and a standard deviation of 10. You scored 85. What is your z-score?
Answer to question 1
z = (85 - 70) / 10 = 1.5. Your score is 1.5 standard deviations above the mean.
Question 2. A different quiz has a mean of 50 and a standard deviation of 6. You scored 41. What is your z-score, and what does the sign tell you?
Answer to question 2
z = (41 - 50) / 6 = -1.5. The negative sign says the score is below the mean, by 1.5 standard deviations.
Question 3. A test has a mean of 500 and a standard deviation of 100. A student has a z-score of -2. What was the student's score?
Answer to question 3
Run the formula backwards: x = 500 + (-2)(100) = 300. The score is 2 standard deviations below the mean, and it falls just outside the middle 95 percent if the scores are roughly normal.
Explain it back
After you finish the questions, close the page and explain a z-score out loud or on paper to someone who has not taken the course, using one of your own numbers. Say what the mean is doing, what the standard deviation is doing and why dividing by it removes the units. Where you stop or reach for a word you cannot define, that is the step to study next. A research review by Dunlosky and colleagues, who looked at ten study techniques, rated self-explanation as moderate in usefulness and said self-explanation has not been adequately evaluated in educational contexts. So treat explaining it back as a reasonable thing to try, not as a proven method. Source: Dunlosky et al., 2013, Psychological Science in the Public Interest, abstract read through the Europe PMC API on 2026-11-23.
How Professor Turing helps
Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start.
Bring the z-score problem you are stuck on. Its first reply asks about your attempt, such as what you tried with the mean and the standard deviation, before it teaches anything, and if you send an answer with no steps it asks how you got there. You must be 18 or older. Guest conversations are deleted 7 days after your last activity; with an account they are kept while the account is active.
FAQ
What does a z-score of 0 mean? The value equals the mean, so it sits at the center of the data.
Can a z-score be negative? Yes. A negative z-score means the value is below the mean.
Do I need a normal distribution to compute a z-score? The formula needs only a mean and a standard deviation, so it can be computed for any data that has them. The percentages, such as 84.1 percent below a z-score of 1, assume the data follow a normal distribution.
Start with what you're working on
Tell the tutor which z-score problem you are on and let it ask you the questions.
Start learning No account needed
See also: all study guides