Skip to the calculator
Rule Calculator

Z-Score to P-Value Calculator

With z-score 1.96, z-score to p-value comes to 0.0499958 — p-value. It is reached in 5 steps, the last of which is 1 * (1 - erf(abs(1.96) / sqrt(2))) + 0 * (1 - 0.9750021) + 0 * 0.9750021, and each one is printed on the page with its numbers filled in. The formula is the one published by NIST/SEMATECH e-Handbook of Statistical Methods, not an approximation fitted to it.

Exact p-value from a z-score, one-tailed or two-tailed, with the percentile the score sits at.

Formula and sources checked · How we check

Z-score 1.96, Test Two-tailed — is it different?

0.0499958

P-value for the example below. Editing a field recomputes the calculator below; this figure holds the answer the page was loaded with.

It is written into the HTML rather than drawn by a script, so a search engine reading this page without running JavaScript still finds an answer.

P-value
0.0499958
Φ(z), area to the left
0.5 * (1 + erf(1.96 / sqrt(2)))0.975
Percentile
0.9750021 * 10097.5 %
P-value
1 * (1 - erf(abs(1.96) / sqrt(2))) + 0 * (1 - 0.9750021) + 0 * 0.97500210.05
Confidence level this clears
(1 - 0.0499958) * 10095 %
Odds against, 1 in
1 / 0.049995820.002

Ask about this in the chatZ-Score to P-Value Table

Worked example

A z of 1.96 gives a two-tailed p of 0.0499958, which is why 1.96 and not 2 is the number behind a 95% confidence interval. The exact 5% cut is z = 1.959964.

How to work it out yourself

  1. 1.Enter the z-score your test produced: the observation minus the mean, divided by the standard error.
  2. 2.Choose the test. Two-tailed asks whether the result differs from the null in either direction; one-tailed commits to a direction before seeing the data, and must be chosen for that reason rather than because it gives a smaller number.
  3. 3.The p-value is the area in the tail: the probability of a result at least this extreme if the null hypothesis were true.

Two-tailed p-value by z-score

00.20.31 Z-score: 0.31.5 Z-score: 0.11.645 Z-score: 0.11.96 Z-score: 02 Z-score: 02.33 Z-score: 02.576 Z-score: 03 Z-score: 03.291 Z-score: 04 Z-score: 05 Z-score: 015Z-score
Two-tailed p-value by z-score
Z-scoreP-valuePercentile
10.31731184.13 %
1.50.13361493.32 %
1.6450.099969895 %
1.960.049995897.5 %
20.045500397.72 %
2.330.019806299.01 %
2.5760.0099950699.5 %
30.002699899.87 %
3.2910.00099831999.95 %
46.33425e-5100 %
55.73303e-7100 %

The rows people actually look up: 1.645 is the 10% two-tailed cut, 1.96 the 5%, 2.576 the 1%, and 5 the "five sigma" of particle physics.

The formula

  1. Φ(z), area to the left0.5 * (1 + erf(1.96 / sqrt(2)))
  2. Percentile0.9750021 * 100
  3. P-value1 * (1 - erf(abs(1.96) / sqrt(2))) + 0 * (1 - 0.9750021) + 0 * 0.9750021
  4. Confidence level this clears(1 - 0.0499958) * 100
  5. Odds against, 1 in1 / 0.0499958

Source: NIST/SEMATECH e-Handbook of Statistical Methods — cumulative distribution function of the standard normal, American Statistical Association — statement on p-values

Questions people actually ask

Why is 1.96 the number, not 2?
Because the two-tailed p at z = 1.96 is 0.0499958, just under the 5% line, while z = 2 gives 0.0455. The exact cut is 1.959964. Tables rounded it to 1.96 in the 1920s and it stuck; 2 is the mental shortcut, 1.96 is the value.
What does the p-value actually mean?
The probability of seeing data at least this extreme if the null hypothesis were true. It is not the probability the null is true, not the probability your result is a fluke, and not a measure of effect size. The American Statistical Association issued a formal statement in 2016 specifically because those three misreadings are so common.
One-tailed or two-tailed?
Two-tailed unless you committed to a direction before collecting data and a result in the other direction would be treated as no effect at all. A one-tailed test halves the p-value, which is why switching to one after seeing the numbers is a well-known way to manufacture significance.
How far into the tail is this accurate?
To the digits shown, out past z = 6, where the two-tailed p is about 1.97 in a billion. The two-tailed branch is computed as 1 − erf(|z|/√2) instead of 2(1 − Φ(|z|)) precisely so the tail does not lose its significant digits to cancellation. Beyond z = 8 report the result as a bound, not a figure.
What is "five sigma"?
z = 5, a two-tailed p of about 5.7 in ten million, the evidence threshold particle physics adopted for claiming a discovery. It is roughly a million times stricter than the 0.05 used across most of the social and life sciences.

Related

Where this one stops

Put this calculator on your site

Free, no attribution required beyond the link.

<iframe src="https://rulecalculators.com/embed/z-score-to-p-value" width="100%" height="420" style="border:1px solid #e7e4de;border-radius:12px" title="Z-Score to P-Value Calculator"></iframe>
Did this answer your question?