How to use this calculator
- 1 Choose what to find: a z-score from a value, a value from a percentile, or the share between two z-scores.
- 2 Enter the value, or the percentile, or the two z-scores. For the first two options, also enter the mean and standard deviation.
- 3 Read the z-score, the percentile and the share of values above or below your result.
What is a z-score?
A z-score tells you how many standard deviations a value is from the mean. A z-score of 0 means the value is exactly the mean. A z-score of 2 means the value is two standard deviations above it, and −2 means two below.
Z-scores also put different measurements on one scale. A score of 85 on a test with a mean of 100 and a standard deviation of 15 has a z-score of −1. A height of 180 cm with a mean of 175 cm and a standard deviation of 7 cm has a z-score of about 0.71. The two numbers can then be compared directly.
The z-score is the basis for many statistical tests, including tests for a sample mean and for a difference between proportions.
The normal distribution and percentiles
A normal distribution is a bell-shaped curve that is symmetrical around the mean. Many natural measurements, such as heights and measurement errors, are roughly normal. The curve is fully described by its mean and standard deviation.
Also, the percentile is the share of values below a given point. Because the curve is symmetrical, a z-score of 0 is at the 50th percentile. A z-score of +1.645 is at about the 95th percentile, and −1.645 is at about the 5th.
Between z = −1 and z = 1, about 68.27% of values fall. Between −2 and 2, about 95.45% fall. These shares are why a z-score beyond ±3 is rare for normal data.
| Z-score | Percentile (below) | Share above |
|---|---|---|
| −2 | about 2.28% | about 97.72% |
| −1 | about 15.87% | about 84.13% |
| 0 | 50% | 50% |
| 1 | about 84.13% | about 15.87% |
| 1.645 | about 95% | about 5% |
| 2 | about 97.72% | about 2.28% |
When the z-score is useful
For example, use a z-score when you want to compare a value with its group. A runner may finish faster than most of the field in one race and slower than most in another. The z-score for each race shows where the runner stands within that race.
It is also used for quality control, so a factory can check parts. A factory checks whether a part measures within a set number of standard deviations of the target. For a related idea that estimates a range around a sample mean, see the confidence interval calculator.
However, the z-score only works well when the data is roughly normal. For skewed data, such as incomes, a percentile from the real data is often more accurate than a normal-curve estimate.
Tips for correct z-scores
Most z-score errors come from mixing up the mean and the standard deviation. Keep these points in mind:
- Check the standard deviation. It must be above zero, and it must use the same units as the value.
- Use the right mean. Use the mean of the group you compare with, not the mean of a different group.
- Read the sign. A negative z-score is below the mean, so the sign matters.
- Start with the standard deviation. If you are unsure of it, the standard deviation calculator can compute it from your data.
- Compare p-values with care. A z-score can feed a p-value calculator, but the test must match your question.
The formula
Z-score from a value
z = (x − μ) ÷ σ
- x
- the value you are checking
- μ
- the mean of the distribution
- σ
- the standard deviation
Value from a percentile
x = μ + z × σ, where z = Φ⁻¹(p)
- p
- the percentile as a share, such as 0.95 for the 95th percentile
- Φ⁻¹
- the inverse of the standard normal cumulative distribution
Share below a z-score
P(Z ≤ z) = Φ(z)
- Φ
- the cumulative distribution of the standard normal curve
Worked example
A value of 85 with mean 100 and standard deviation 15
- 1.z-score: (85 − 100) ÷ 15 = −1.
- 2.Percentile: Φ(−1) = 0.158655, which is 15.8655%.
- 3.Share above: P(X > 85) = 1 − 0.158655 = 84.1345%.
The z-score is −1. About 15.8655% of values fall below 85, and 84.1345% fall above it.
Frequently asked questions
How do I calculate a z-score?
Subtract the mean from the value, then divide by the standard deviation. For a value of 85 with mean 100 and standard deviation 15, the z-score is (85 − 100) ÷ 15 = −1.
What z-score is the 95th percentile?
About 1.645 for a one-sided 95% percentile. The value is 1.96 for a two-sided 95% range, which leaves 2.5% in each tail. Check which one your problem uses.
Is a z-score the same as a percentile?
No. The z-score is a distance in standard deviations. The percentile is the share of values below that point. For normal data, each z-score maps to one percentile, so you can convert between them.
Can I use a z-score for data that is not normal?
You can calculate the number, but the percentile from the normal curve may be wrong. For skewed or unusual data, look at the actual share of values, or use a method that does not assume a normal shape.
Sources
Last reviewed by the GridCalculators team.