Toolstia / Z-score calculator

Z-score calculator

A raw score on its own says little. Is 85 on a test good? It depends on how everyone else did. A z-score fixes this by restating the score as a number of standard deviations above or below the average. A z-score of 1.5 means "one and a half standard deviations above the mean", whatever the scale of the original measurement.

This calculator works in both directions. Give it a raw score, the mean and the standard deviation, and it returns the z-score, the percentile and the areas under the normal curve: to the left, to the right, the two-tailed p-value and the area between minus and plus z. Or choose the other mode, give it a z-score, and it finds the raw score that matches.

It runs in your browser and nothing is sent anywhere. The percentile and the areas assume that the data follow a normal (bell-shaped) distribution, which is worth checking before you rely on them.

Enter the mean and a standard deviation above zero, plus the score.

These areas assume the data follows a normal (bell curve) distribution. The percentile is the share of values expected to fall below the score.

How it works

  1. Choose whether you know the raw score or the z-score.
  2. Enter the value, the mean and the standard deviation.
  3. Read the z-score, percentile and areas.

The formula

z = (x − μ) ÷ σ, where x is the raw score, μ the mean and σ the standard deviation. A z-score of 0 is exactly average, +1 is one standard deviation above, and −2 is two below.

Percentile and areas

The area to the left of z under the standard normal curve is the share of values expected to fall below your score. The tool also gives the area to the right, the two-tailed p-value, and the area between −|z| and +|z|.

Precision

The normal distribution is computed directly with a series that is accurate to about 15 digits, so the tail areas are reliable even for large z-scores.

When it applies

The areas assume the data is roughly normal. For skewed data, z-scores still measure distance from the mean, but the percentiles will not be accurate.

Worked example: a test score

A test has a mean of 70 and a standard deviation of 10, and you scored 85. Enter 85, 70 and 10. The z-score is (85 - 70) / 10 = 1.5. The area to the left is 0.9331928, about 93.3193%, so the percentile reads 93.319: you did better than roughly 93% of people, if scores are normally distributed. The area to the right is 0.066807201, the two-tailed p-value is 0.1336144, and the area between -1.5 and +1.5 is 0.8663856.

A second example on a different scale: an IQ-style score of 130 with a mean of 100 and a standard deviation of 15 gives z = 2, a percentile of 97.725 and a two-tailed value of 0.0455. About 2.3% of the population is expected to score above that point, and about 95.45% falls between 70 and 130.

Going from z back to a raw score

Choose "The z-score (find the raw score)", enter the z-score, the mean and the standard deviation, and the tool computes x = z x standard deviation + mean. For example, if scores have a mean of 500 and a standard deviation of 100, a z of 1.645 corresponds to a raw score of 664.5. This is how you find a cut-off, such as "what score puts me in the top 5%". A z of 1.645 leaves about 5% in the right tail.

The result panel shows the raw score alongside the z-score and percentile so you can confirm it.

What each result means

The left area, P(Z < z), is the proportion of a normal population expected to fall below your value, and multiplied by 100 it is the percentile. The right area is one minus that. The two-tailed p-value is twice the smaller tail and is the figure used when testing whether a result is unusual in either direction. The between value is the proportion that lies within the same distance of the mean on both sides.

Three landmarks are worth remembering: about 68% of values lie within one standard deviation of the mean, about 95% within two (more exactly 1.96 for 95%) and about 99.7% within three.

Precision and very large z-scores

The standard normal area is computed directly with a series expansion, accurate to roughly 15 digits for the central part of the curve. Results are shown to 8 significant digits. In the far right tail the tool finds the right-hand area by subtracting the left area from one, so the number of correct digits drops as z grows. At z = 6 the right area appears as about 9.8659e-10, which is accurate to around seven digits. At z = 8 it shows about 6.66e-16 where the true value is close to 6.2e-16. For any |z| above 9 the tool returns exactly 0 and 1 for the tails. Treat such figures as "vanishingly small", not as exact probabilities.

Population, sample and averages of samples

The tool uses whichever standard deviation you enter and does not calculate one from a list of data. If your mean and standard deviation come from a sample, the z-score is a description of how far a value sits from that sample's mean. If you want to know how unusual a sample average is, use the standard error, the standard deviation divided by the square root of the sample size, as the standard deviation. For example, a sample mean of 52 from 36 people, where the population mean is 50 and the standard deviation is 6, uses 6 / 6 = 1 as the denominator, giving z = 2.

The standard deviation must be greater than zero. If it is zero or empty the tool asks you for a valid value.

When the normal curve is the wrong model

A z-score is always computable, but the percentile is only reliable when the data are roughly bell-shaped. Incomes, waiting times, house prices and counts with a hard lower limit are usually skewed, and a z-score of 3 in such data does not mean 99.9% of values are below it. If the sample is small and the true standard deviation is unknown, a t-score is the standard tool instead. For a range around a mean, use a confidence interval calculator.

Questions

What counts as an unusual z-score?

Beyond ±2 is uncommon (about 5% of values) and beyond ±3 is rare (about 0.3%).

Is the p-value one-tailed or two-tailed?

Both are shown: the left and right areas are one-tailed, and the two-tailed value is shown separately.

Is anything uploaded?

No. Your numbers stays in your browser and is never sent anywhere.

What is a good z-score?

There is no universally good value, because it depends on what you are measuring. A z of 0 is average, positive means above the mean and negative below it. For something where higher is better, like an exam, positive is good; for something like blood pressure, a high z might be a concern.

How do I find the z-score for the top 10%?

Use the raw score mode backwards: the top 10% starts at the 90th percentile, which is a z of about 1.2816. Enter that z with your mean and standard deviation to get the matching cut-off score.

Why is the percentile not the same as the percent score?

A score of 85% on a test is 85 out of 100 correct. A percentile of 85 means you did better than about 85% of the people who took it. The z-score tool gives the second kind.

Can z-scores be compared between different tests?

Yes, that is one of their main uses. A z of 1.2 on a maths test and 0.4 on a reading test says you were further above the average in maths, provided both distributions are reasonably normal and the groups being compared are similar.