P-Value Calculator: From a Z-Score to a P-Value
By FindMySum · Last reviewed
A p-value calculator turns the test statistic from a hypothesis test into the probability of seeing a value at least that far from zero by chance alone. This one works from a z statistic, which is what you get from a test on a proportion, a mean with a known standard deviation, or any large-sample test. The smaller the p-value, the harder the data are to explain with the null hypothesis.
Worked example
Suppose a test gives z = 1.96 and you are testing in both directions (two-tailed). The p-value is the area under the standard normal curve beyond +1.96 plus the area below −1.96:
- the area to the right of 1.96 is 0.025 (more precisely 0.024998);
- doubling it for the two tails gives p ≈ 0.05 (0.049996).
That is no accident: 1.96 is the critical value of a two-sided test at the 5% level, so a statistic of exactly 1.96 sits right on the line. Switch the same z to a right-tailed test and p halves to 0.025; switch to left-tailed and p becomes 0.975, because almost all of the curve lies to the left of +1.96.
Reading the result
Compare p with the significance level you chose in advance. If p is below it, the result is called statistically significant and you reject the null hypothesis; if not, the data are consistent with it, which is not the same as proving it. A z of 2.576 gives a two-tailed p of 0.01, and a z of 1.645 gives 0.10, the other two thresholds you will see in tables.
Statistical significance says nothing about size. With a big enough sample a trivial difference produces a tiny p-value, so report an effect size or a confidence interval alongside it; the z-score calculator builds the interval, and the critical value calculator goes from a probability back to z. For small samples, use the t-test calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.