How to use the z-score calculator
- Enter a value, the mean and the standard deviation. If you have the raw data instead, paste it, and say whether it is a sample or the whole population: the mean and standard deviation fill in for you.
- Read the z-score, the percentile, the areas above and below, and the two-tailed p-value. The normal curve shades the area below your value.
- Use the other panels as a z-table: turn a z-score into every kind of area, turn an area into a z-score, or find the area between two z-scores.
What a z-score is
A z-score, also called a standard score, says how many standard deviations a value is from the mean. The formula is
z = (x − μ) / σ
where x is the value, μ the mean and σ the standard deviation. A positive z-score is above the mean and a negative one below it. Because it is measured in standard deviations, a z-score has no units, which lets you compare values measured on completely different scales.
A worked example from data
Four scores are 50, 53, 62 and 70. Their mean is 58.75, and treating them as the whole population, the standard deviation is √(246.75 / 4) = 7.8541. The z-score of 62 is (62 − 58.75) / 7.8541 = 0.4138. If the scores follow a normal distribution, 66.05% of them would fall below 62. Paste the four numbers into the calculator to see each step.
Comparing scores on different scales
Suppose you scored 85 on a test where the average was 70 with a standard deviation of 10, and 640 on another where the average was 500 with a standard deviation of 100. Which did you do better on? The z-scores answer it: (85 − 70) / 10 = 1.5 and (640 − 500) / 100 = 1.4. The first result is slightly further above average, beating about 93.32% of test takers against 91.92%.
From z-score to percentile
For data that follow the bell-shaped normal distribution, a z-score fixes the share of values below it, which is the area under the curve to its left, written Φ(z). The US National Institute of Standards and Technology calls the normal distribution “probably the most important distribution in statistics” in its e-Handbook of Statistical Methods (section 1.3.6.6.1), where its standard curve is f(x) = e^(−x²/2) / √(2π). The area has no simple formula, which is why printed z-tables exist. This calculator works it out directly, accurate to about 15 significant digits, even far into the tails, where most tables stop.
The 68-95-99.7 rule
In a normal distribution, 68.27% of values lie within 1 standard deviation of the mean, 95.45% within 2, and 99.73% within 3. So a z-score beyond ±2 is unusual, about 1 value in 20, and one beyond ±3 is rare: only 0.00135 of values, roughly 1 in 740, lie above z = 3.
Reading a z-table
Printed z-tables come in a few kinds, which is a common source of wrong answers. A cumulative table gives the area to the left of z, Φ(z), often split into one page for negative z and one for positive. Others give the area between the mean and z, or the area to the right of z. All are the same curve read differently: the area between the mean and 1.12, for example, is the area to the left of 1.12 minus one half. The “Z-score to probability” panel shows all of these at once, so you can match whichever kind your textbook or exam uses, and it goes to more decimal places and further into the tails than a printed table.
P-values and critical values
In a z-test, the z-score of a result becomes a p-value: the chance of a result at least that far from the mean if nothing unusual is going on. For a one-tailed test it is the area in one tail, and for a two-tailed test it is both tails together. Going the other way, critical values mark where the tails begin. For a two-tailed test, they are ±1.645 for 90% confidence, ±1.960 for 95% and ±2.576 for 99%. The one-tailed value for 95% is 1.645. The “Probability to z-score” panel finds these for any area.
Sample or population standard deviation
If your data are the entire group, such as every student in one class, use the population standard deviation, which divides by n. If they are a sample from a larger group, use the sample standard deviation, which divides by n − 1 and comes out a little larger, to allow for the extra uncertainty. For 50, 53, 62 and 70 that is √(246.75 / 3), about 9.0692, rather than 7.8541.
Negative z-scores and outliers
A negative z-score simply means the value is below the mean. A z-score of −1.5 is as far below the average as 1.5 is above it, and because the normal curve is symmetric, the share of values below −1.5 equals the share above 1.5: 6.68%. A common rule of thumb flags values with a z-score beyond ±3 as possible outliers, since in a normal distribution only 0.27% of values lie that far from the mean. Don’t delete such values automatically, though: check whether each one is a recording mistake or a real, if unusual, result. Quality control uses the same idea, with control limits at the mean plus or minus 3 standard deviations, and analysts use z-scores to say how unusual a day’s sales or a stock’s move was compared with its own history.
When percentiles from z-scores mislead
A z-score itself is just arithmetic and is always correct. But turning it into a percentile or a p-value assumes the data follow a normal distribution. Incomes, house prices and waiting times are usually skewed, with a long tail on one side, and for them the percentile from a z-score can be well off. With small samples, a t-distribution is usually used instead of the normal curve for tests.
Your data stays on your device
Everything is worked out in your browser. Nothing you type or paste is sent anywhere or stored.
Frequently asked questions
How do I calculate a z-score?
Subtract the mean from the value, then divide by the standard deviation: z = (x − μ) / σ. A test score of 85, where the mean is 70 and the standard deviation is 10, has z = (85 − 70) / 10 = 1.5.
What does a z-score tell you?
How many standard deviations a value is from the mean, and on which side. A z-score of 0 is exactly average, 1.5 is one and a half standard deviations above, and −2 is two below. For data that follow a normal distribution, it also gives the percentile: a z-score of 1.5 is higher than 93.32% of values.
What z-score is the 95th percentile?
About 1.645. That is the one-tailed value: 95% of a normal distribution lies below it. The two-tailed value for 95% confidence, with 2.5% in each tail, is 1.960.
Is a negative z-score bad?
No, it just means the value is below the mean. Whether that is good depends on what you measure: a negative z-score for a race time or a blood pressure reading may be a good thing.
Should I use the sample or the population standard deviation?
Use the population standard deviation, dividing by n, when your data are the whole group you care about. Use the sample one, dividing by n − 1, when your data are a sample from a bigger group. Choose which one when you paste your data.
Is anything I type saved or sent?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.