Education
Z Score Calculator
Enter a raw score, the mean, and the standard deviation. We compute the z score using z = (x − μ) / σ, with a step-by-step breakdown and a plain-English reading of how far the value sits from the mean.
The data value or score you want to standardize. · e.g. 85
The mean of the population or data set the score belongs to. · e.g. 75
The standard deviation of the data set. Must be greater than zero, since the formula divides by σ. · e.g. 10
Formula
z = (x − μ) / σ
Subtract the mean from the raw score, then divide by the standard deviation. The z score reads as the number of standard deviations the raw score sits above (positive) or below (negative) the mean.
Z score
+1
The value is 1 standard deviation above the mean.
- 1. Subtract the mean from the raw score: 85 − 75 = +10
- 2. Divide by the standard deviation: +10 / 10 = +1
In plain English: The value is 1 standard deviation above the mean.
Examples
x 85, μ 75, σ 10
z = +1 (1 SD above)
x 60, μ 75, σ 10
z = −1.5 (1.5 SD below)
x 75, μ 75, σ 10
z = 0 (at the mean)
x 92, μ 80, σ 8
z = +1.5 (1.5 SD above)
How it works
A z score (also called a standard score) tells you how many standard deviations a value sits above or below the mean of its data set:
Z score · z = (x − μ) / σ
The numerator x − μ is the deviation of the raw score from the mean, in the original units of the data. Dividing by σ turns that deviation into a count of standard deviations, which is the unit-free quantity that makes z scores comparable across different data sets.
A positive z score means the value is above the mean; a negative z score means below; zero means equal to the mean. When the standard deviation is zero the formula divides by zero, so the calculator flags that case rather than printing a misleading number.
What is a z score?
A z score, also known as a standard score, expresses a raw value in units of standard deviations away from the mean. It puts every value on the same standardized scale, so a value from one data set can be compared cleanly with a value from another. Two students with raw test scores of 85 and 92 might look very different in their original scales, but if the first comes from a class with mean 75 and standard deviation 10 and the second from a class with mean 80 and standard deviation 8, both students are exactly one and a half standard deviations above their class mean. Both have a z score of +1.5.
How to calculate a z score
- 1. Subtract the mean from the raw score to get the deviation: x − μ.
- 2. Divide that deviation by the standard deviation: (x − μ) / σ.
For example, if the mean is 75, the standard deviation is 10, and the raw score is 85, the deviation is 85 − 75 = 10, and the z score is 10 / 10 = +1. The raw score sits exactly one standard deviation above the mean.
What a positive z score means
A positive z score means the raw score is above the mean. The size of the z score tells you how far above. A z score of +1 is one standard deviation above the mean; a z score of +2 is two standard deviations above. Under a normal distribution, roughly 68% of values land within one standard deviation of the mean (z scores between −1 and +1), and roughly 95% land within two standard deviations (z scores between −2 and +2). A z score of +3 or higher is unusually high under that assumption.
What a negative z score means
A negative z score means the raw score is below the mean. A z score of −1.5 means the value is one and a half standard deviations below the mean, and a z score of −2 means two standard deviations below. The sign just locates the value on the lower side of the mean; it does not by itself say the value is good or bad. In a context where lower is better (golf scores, error rates), a negative z score is the desirable side.
When to use a z score
Use a z score whenever you want to compare a value against the mean of its data set on a standardized scale. Common situations:
- Comparing test scores across classes, courses, or exams that use different scales.
- Looking up probabilities under a normal distribution from a z table or a statistics function.
- Identifying outliers in a data set: very large or very small z scores point at values that are unusual for the population.
- Standardizing data in machine learning preprocessing so features sit on a common scale.
- Reporting how far a measurement is from a reference value when the reference is the mean of repeated readings rather than a fixed accepted value (for that case, see the percent error calculator instead).
The standard deviation that goes into the z score formula has to come from somewhere. If you have a data set in front of you, compute it with the standard deviation calculator and then plug that result into this calculator along with the mean and the value you want to standardize.
Common mistakes
- Mixing up the mean and the raw score in the numerator. The deviation is x − μ, not μ − x. The first gives a positive z score for values above the mean; the second flips the sign.
- Dividing by the variance instead of the standard deviation. Variance is σ²; standard deviation is σ. See the Variance vs Standard Deviation guide if it helps to keep them straight.
- Using a sample standard deviation when a population standard deviation was needed, or the other way around. Pick the one that matches your context; the Standard Deviation Formula guide covers both versions.
- Trying to compute a z score with a standard deviation of zero. The formula is undefined in that case; this calculator flags it rather than printing a misleading number.
- Treating a large negative z score as automatically bad. The sign just locates the value below the mean; whether that is good, bad, or neutral depends on what is being measured.
Related calculators and guides
- Z Score Formula the long-form guide with worked positive and negative examples and a data-comparison case.
- Standard Deviation Calculator to compute σ from a list of values before plugging it in here.
- Standard Deviation Formula with sample versus population formulas explained.
- Variance vs Standard Deviation for the relationship between σ and σ².
- Percent Error Calculator when the reference is a fixed accepted value rather than the mean of a data set.
- Percent Error Formula the long-form guide for the percent error case.
- Percentage Increase Calculator for percent change between two values without a reference population.
Frequently asked questions
A z score is a standardized score that tells you how many standard deviations a value is from the mean. It is sometimes called a standard score. A z score of 0 means the value is exactly at the mean; a z score of +2 means the value is two standard deviations above the mean; a z score of −1 means it is one standard deviation below the mean.
The z score formula is z = (x − μ) / σ. Subtract the mean μ from the raw score x to get the deviation, then divide by the standard deviation σ. The result is the z score: a unitless number that locates the value on a standardized scale.
Two steps. First, subtract the mean from the raw score. Second, divide that difference by the standard deviation. The result is the z score, expressed as a number (often with a couple of decimal places) that says how many standard deviations the raw score sits from the mean and on which side.
A positive z score means the raw score is above the mean. The size of the z score tells you how far above. A z score of +1 is one standard deviation above the mean; a z score of +2 is two standard deviations above; a z score of +0.5 is half a standard deviation above. Larger positive z scores are rarer assuming the data follows a normal distribution.
A negative z score means the raw score is below the mean. A z score of −1 is one standard deviation below; −2 is two below; −0.5 is half a standard deviation below. Negative z scores are not bad on their own; they just mean the value sits on the lower side of the mean.
A z score of 0 means the raw score is exactly equal to the mean. The deviation in the numerator is zero, so the result of the formula is zero regardless of the standard deviation.
No. The z score formula divides by the standard deviation, so it is undefined when σ is zero. A standard deviation of zero would also mean every value in the data set is identical, in which case the concept of a z score does not really apply: there is no spread to measure against. The calculator flags σ = 0 rather than printing a misleading number.
No. The standard deviation is a property of a data set: the typical distance of values from the mean, in the original units. A z score is a property of one specific value: how many standard deviations that value sits from the mean. Standard deviation is computed once for the whole data set; z scores are computed value by value, using that standard deviation as the unit of measure.
Related calculators
Education
Final Grade Calculator
Calculate your final course grade from your current grade and your final exam score.
Education
Weighted Grade Calculator
Combine assignments, quizzes, and exams by weight to get a precise weighted course average.
Education
Final Exam Calculator
Find out exactly what you need to score on your final exam to hit your target course grade.