P-value Calculator

Find the two-tailed probability for a standard-normal z statistic.

Reset

Understanding the p-value

A p-value is a probability, and like every probability it answers a precisely worded question — not the question people wish it answered. The question is this: if the null hypothesis were true, and nothing interesting were going on at all, how likely would a result at least as extreme as this one be? A p-value of 0.05 says such a result would appear about one time in twenty by chance alone.

Formula and method

p = 2 × [1 − Φ(|z|)]

Two-tailed p-value (from a z statistic): z — the z statistic, the number of standard deviations the observed result sits from the null value; it can be positive or negative. |z| — the absolute value of z, because a two-tailed test counts extremes in both directions. Φ — the cumulative distribution function of the standard normal curve: Φ(x) is the area under the bell curve up to x, a number between 0 and 1. 1 − Φ(|z|) — the area in one tail beyond |z|; doubling it counts both tails. p — the two-tailed p-value, a probability between 0 and 1. Why the formula doubles one tail. The standard normal curve is symmetric around zero. The area beyond z = 1.96 on the right is about 0.025, and the area beyond z = −1.96 on the left is also about 0.025, because the curve is a mirror image. A two-tailed test asks for a result at least as extreme in either direction, so it adds the two tails: 0.025 + 0.025 = 0.05. A one-tailed test would count only one side and give half the answer — 0.025 for the same z — so knowing which tail count a question wants is essential before the number means anything. How the tool evaluates Φ. There is no closed-form expression for the normal cumulative function, so the tool uses a numerical approximation to it, as the live page's method states. The approximation is accurate to many decimal places, but its last digits can differ in the seventh decimal place from the exact value: for z = 1.96 the tool's stored result is 0.04999565, while the exact standard-normal value is 0.04999579. The difference is about one part in ten million and changes no decision; both round to 0.05000 at four decimal places.

Worked example

Example 1 — z = 1.96 (the live-page example) A z statistic of 1.96. Φ(1.96) = 0.97500210 (the area under the curve up to 1.96) One tail beyond 1.96: 1 − 0.97500210 = 0.02499790 Two tails: 2 × 0.02499790 = 0.04999580, and the tool's stored result is 0.04999565 Result: 0.04999565 (two-tailed normal p-value) This is the stored example on the live page, and the headline figure above is the stored result. The tiny gap between the stored 0.04999565 and the exact 0.04999579 comes from the numerical approximation the tool uses for the normal curve, and it is far too small to matter: both figures are 0.05 to any rounding a report would use.