Z-Score Calculator
A z-score tells you how many standard deviations a value lies from the mean: z = (x − μ) ÷ σ. A test score of 85 in a class with mean 70 and standard deviation 10 gives z = (85 − 70) ÷ 10 = 1.5, which is higher than about 93.32% of the group if scores are roughly normal. Enter your value, mean and standard deviation above to get z, the percentile, the right-tail area and the two-tailed p-value.
z-score
1.5
Percentile (area left)
93.32%
Area to the right
0.0668
Two-tailed p-value
0.1336
Working
- z = (x − μ) ÷ σ = (85 − 70) ÷ 10 = 15 ÷ 10 = 1.5
- Area to the left of z (percentile) = Φ(1.5) = 0.9332, which is the 93.32th percentile
- Area to the right of z = 1 − 0.9332 = 0.0668
- Two-tailed p-value = 2 × 0.0668 = 0.1336
Example: a score of 85 (mean 70, standard deviation 10)
- z = (x − μ) ÷ σ = (85 − 70) ÷ 10 = 15 ÷ 10 = 1.5
- Area to the left of z (percentile) = Φ(1.5) = 0.9332, which is the 93.32th percentile
- Area to the right of z = 1 − 0.9332 = 0.0668
- Two-tailed p-value = 2 × 0.0668 = 0.1336
What the results mean
A positive z means the value is above the mean and a negative z means it is below. The size matters as much as the sign: values within ±1 are common, beyond ±2 uncommon and beyond ±3 rare, because about 68%, 95% and 99.7% of a normal distribution lie within one, two and three standard deviations of the mean.
The percentile is the area to the left of z under the standard normal curve, the same number a z table gives. The right-tail area is 1 minus that. The two-tailed p-value is twice the area beyond |z|, the probability of a value at least this far from the mean in either direction; for z = 1.96 it is 0.05.
Population, sample and sample means
Use the population mean and standard deviation when you know them. If you are standardizing a single observation from a sample, plug in the sample mean and sample standard deviation, which gives a z-score of that observation within the sample. If instead x is a sample mean, replace σ with the standard error σ ÷ √n; the guide on the z-score formula shows both cases with examples.
A z-score only converts to a percentile accurately when the data are approximately normal. For skewed data, the z-score is still a valid distance measure, but the percentile from the normal curve can be misleading.
Frequently asked questions
- How do I convert a z-score to a percentile?
- Look up the area to the left of z and multiply by 100. z = 1.5 has a left area of 0.9332, which is the 93rd percentile.
- What is a good z-score?
- It depends on the direction you want. A z of +1 is better than about 84% of values, and a z of −1 is lower than about 84%. Beyond ±2 is unusual.
- Can a z-score be negative?
- Yes. A negative z-score means the value is below the mean. A z-score of 0 means the value equals the mean.
- What if my standard deviation is 0?
- The z-score is undefined, because every value equals the mean and there is nothing to divide by. The calculator asks for a standard deviation above 0.
Sources and references
- OpenStax Introductory Statistics 2e: The Standard Normal Distribution: z-scores and the standard normal distribution.
- Marsaglia (2004), Journal of Statistical Software 11(4): Evaluating the Normal Distribution: the series used for the standard normal cdf.