What a p-value actually measures
A p-value is the probability of seeing a result at least this extreme if the null hypothesis were true. A z-statistic of 1.96 gives a two-tailed p-value of 0.05. That means, if there were really no effect at all, you would still see a result this far from zero about 5 times in 100, by chance alone. It is a statement about the data under an assumption — not the probability that the assumption is true.
That last point is where almost everyone goes wrong. A p-value of 0.05 does not mean there is a 5% chance the null hypothesis is true, and a p-value of 0.01 does not mean there is a 99% chance your idea is right. The p-value assumes the null is true and asks how surprising the data would be. It says nothing directly about how likely your theory is.
This calculator takes a z-statistic and a choice of tails, and returns the p-value plus a yes-or-no verdict at the 0.05 level. It runs entirely in your browser, so nothing is uploaded and nothing is stored.
How the p-value is worked out from a z-statistic
The z-statistic tells you how many standard errors your result sits from zero. To turn it into a p-value, you use the normal curve: the p-value is the area under the curve beyond your z, on one side for a one-tailed test and on both sides for a two-tailed test. A z of 1.96 leaves 2.5% of the area in each tail, so the two-tailed p-value is 0.05 and the one-tailed p-value is 0.025.
The calculator works out that area with the Abramowitz and Stegun approximation for the error function, a formula accurate to about one part in ten million — far tighter than any p-value needs. The steps are: take the absolute z, compute the error function, turn it into the normal cumulative probability, and subtract from one for the tail area. Double it for two tails, keep it single for one tail.
The usual cut-off is 0.05. If the p-value is below 0.05, the result is called statistically significant: surprising enough, under the null, that researchers treat it as evidence of a real effect. At exactly 0.05 the result sits on the line. The calculator marks it significant only when the p-value is strictly below 0.05, which is the standard rule.
One-tailed or two-tailed: the choice that changes the answer
This is the input people get wrong most often, and it can halve or double your p-value. A two-tailed test asks whether the result differs from zero in either direction — higher or lower. A one-tailed test asks only about one direction, because you decided before seeing the data that only that direction counts. A z of 1.96 gives a two-tailed p-value of 0.05 and a one-tailed p-value of 0.02, so the same data can look significant or not depending on the choice.
The rule is to decide before you collect the data, and to have a real reason. A one-tailed test is right when the other direction is impossible or meaningless — a new drug cannot make patients worse in a way you would act on, or a machine cannot produce negative output. If you pick one-tailed after seeing which way the result went, you are halving your p-value by hand, and that is not statistics, it is wishful thinking.
Two-tailed is the safe default, and it is what journals and examiners expect unless you justify otherwise. When in doubt, use two-tailed: it is the stricter test, it matches the way confidence intervals are built, and nobody will accuse you of shopping for a smaller p-value. The calculator defaults to two-tailed for exactly that reason.
A worked example: z = 1.96 and z = 1.0
Take the default on this page: a z-statistic of 1.96, two-tailed. The normal curve leaves 0.0250 in the upper tail beyond 1.96 and the same in the lower tail, so the two-tailed p-value is 0.05. That sits right on the usual cut-off, and the calculator calls it significant, since the exact value is 0.04996, just below 0.05. It is the borderline case every textbook uses, and it shows why 1.96 is the magic number for 95% confidence.
Now try z = 1.0, two-tailed. The tail area beyond 1.0 is 0.1587 on each side, so the two-tailed p-value is 0.32. That is not significant: a result one standard error from zero happens about a third of the time by chance alone. Nobody would claim a discovery on p = 0.32, and the calculator says No.
A third case shows a clear result. With z = 2.58, two-tailed, each tail holds 0.0049, so the p-value is 0.01 — significant with room to spare. A result two and a half standard errors out is rare under the null, happening about once in a hundred trials. The three cases together — 0.32, 0.05, 0.01 — give you a feel for the scale: most z values below 1.5 are noise, and most above 2.5 are worth a second look.
Where p-values do real work
In clinical trials, the p-value is the gatekeeper. A drug that lowers blood pressure by 5 points with p = 0.01 is treated as a real effect; the same 5 points with p = 0.32 is treated as noise, because a trial that size would produce a 5-point difference a third of the time even if the drug did nothing. Regulators, doctors and journals all read the p-value before they read anything else.
In A/B testing, product teams use the p-value to decide whether a new page really converts better. A lift from 4.0% to 4.4% with p = 0.03 ships; the same lift with p = 0.40 waits for more traffic. The p-value stops teams from shipping changes that only looked good because of a lucky week.
In student projects, the p-value is usually the number the examiner checks first. It turns a z-statistic — which means little on its own — into a plain probability anyone can read. A probability calculator handles the everyday chances; the p-value handles the specific question of whether your result could be chance.
P-value vs significance vs effect size
These three ideas are constantly confused, and keeping them apart is the whole skill. The p-value is a probability about the data under the null. Significance is a yes-or-no verdict made by comparing the p-value with a cut-off, usually 0.05. Effect size is how big the difference actually is, in real units — and the p-value says nothing about it at all.
A tiny effect can be highly significant with a huge sample. A drug that lowers blood pressure by 0.2 points with 100,000 patients can have p = 0.001, and still be useless in a clinic. A large effect can be non-significant with a tiny sample: a 10-point drop with 8 patients might give p = 0.20, and still be worth studying further. The p-value measures surprise, not importance.
That is why good reports quote all three: the effect in real units, the interval around it, and the p-value. A average calculator gives you the effect in plain numbers, and a standard deviation calculator shows the spread it sits against. If a report gives you only a p-value, ask for the effect size before you believe anything.
Common p-value mistakes
The first mistake is the classic one: reading p = 0.05 as a 5% chance the null is true. It is not. The p-value assumes the null is true and measures how surprising the data is under that assumption. The probability that the null is true is a different question, and it needs a different method entirely. This misreading is so common that it has its own name in textbooks, and it is still the most damaging error in applied statistics.
The second mistake is treating 0.05 as a cliff. A result with p = 0.049 is not a discovery and a result with p = 0.051 is not a failure — they are nearly identical evidence. The cut-off is a convention, not a law of nature, and a p-value just above the line deserves the same careful look as one just below it. Report the number, not just the verdict.
The third mistake is p-hacking: testing twenty things, finding one with p = 0.04, and reporting only that one. With twenty tests, one false positive is expected by chance alone at the 0.05 level. If you test many things, say so, and adjust the cut-off or report all the tests. A single small p-value from a fishing trip is not evidence.
The fourth mistake is picking one-tailed after seeing the data. A one-tailed test halves the p-value, so choosing it after the result is known is a free halving. Decide the tails before the data arrives, write the reason down, and stick to it. The calculator lets you switch, but the honest switch happens before the experiment, not after.
How to use this p-value calculator
Type your z-statistic into the first box — it can be positive or negative, and the calculator uses its size, not its sign, for a two-tailed test. Then pick the tails: two-tailed is the default and the right choice for most work; one-tailed only when you decided the direction before collecting data.
The results update live. The headline number is the p-value, and below it the calculator says Yes or No for significance at the 0.05 level. A p-value of 0.05 sits on the line; below it is significant, above it is not. Use the number itself in your report, not just the verdict, so readers can judge the strength of the evidence.
Everything runs in your browser. No account, no upload, no data sent anywhere. Pair it with the percentage calculator when your results are shares rather than means, and remember the fine print: this calculator uses the normal curve, so it fits z-tests and large samples. For small samples, use a t-test instead.