P-Value Calculator
Enter a z or t test statistic to instantly calculate the one-tailed or two-tailed p-value and check statistical significance.
Calculator verified • Last updated: August 2026
The Tail Region, Visually
The shaded region is your p-value — the probability of seeing a result this extreme (or more) if there were truly no effect. A smaller shaded area means your result is less likely to be random chance.
How to Calculate a P-Value
A p-value is calculated from the cumulative distribution function (CDF) of the relevant distribution — normal for a z-statistic, Student's t for a t-statistic. For a two-tailed test, the p-value is twice the smaller of the two tail areas beyond your test statistic.
p (two-tailed): the resulting two-tailed p-value.
z: the test statistic computed from your sample.
P(Z ≤ z): the cumulative probability of observing a value at or below z.
P(Z > z): the probability of observing a value above z.
For example, a two-tailed z-test with a test statistic of 1.96 gives a p-value of about 0.05 — the classic threshold — because 1.96 standard deviations marks the boundary of the middle 95% of a normal distribution.
Interpreting the P-Value
The p-value is the probability of seeing a result at least as extreme as yours, if the null hypothesis (typically "no effect" or "no difference") were actually true. It is not the probability that the null hypothesis is true, and it is not the probability that your result happened by chance — both are common misinterpretations. A smaller p-value is stronger evidence against the null hypothesis, but "strong evidence" is not the same as "large effect."
Choosing a Significance Level
Before running a test, researchers typically pick a significance level (α) — commonly 0.05, sometimes 0.01 for stricter fields. If the p-value falls below α, the result is called "statistically significant." This threshold is a convention, not a law of nature, and results just above or below it should be interpreted with similar caution rather than as a hard pass/fail line.
One-Tailed vs. Two-Tailed Tests
A two-tailed test asks "is there any difference, in either direction?" and is the more conservative, more common default. A one-tailed test asks "is there a difference specifically in this direction?" and requires that direction to be specified before looking at the data — using a one-tailed test after seeing which direction the data went is a form of p-hacking and inflates the false-positive rate.
A Brief History of the P-Value
The p-value's modern usage traces largely to statistician Ronald Fisher, who popularized it as a tool for judging evidence against a null hypothesis in his influential 1925 book "Statistical Methods for Research Workers." Fisher originally proposed p-values as a flexible, continuous measure of evidence rather than a strict yes-or-no cutoff, but the now-ubiquitous 0.05 threshold — while suggested by Fisher as a convenient benchmark — hardened into a rigid convention over subsequent decades, partly through the influence of a separate, more formal hypothesis-testing framework developed by Jerzy Neyman and Egon Pearson in the late 1920s and 1930s. The blending of Fisher's evidential p-value with Neyman-Pearson's accept-or-reject decision framework, which weren't originally designed to work together, is widely considered by statisticians and historians of science to be a source of much of the confusion and misuse surrounding p-values in research today.
Common P-Value Mistakes
Treating the p-value as "the probability the null hypothesis is true" is the single most widespread misinterpretation — it's actually the probability of seeing data this extreme (or more extreme) if the null hypothesis were true, a subtly but importantly different statement. Equating "not statistically significant" with "no effect exists" is another common error; a p-value above the threshold might just as easily reflect an underpowered study (too small a sample) as a genuine absence of an effect. "P-hacking" — running many tests, or checking results partway through data collection, until something crosses the significance threshold by chance — is a serious and surprisingly common methodological problem, since it dramatically inflates the true false-positive rate beyond the nominal significance level.
P-Value Terms You Should Know
Null Hypothesis — the default assumption of "no effect" or "no difference" that a statistical test is designed to gather evidence against.
Alternative Hypothesis — the hypothesis that there is a real effect or difference, which the researcher is typically trying to find evidence for.
Significance Level (alpha) — the pre-chosen threshold (commonly 0.05) below which a p-value is considered statistically significant.
Statistical Power — the probability a test correctly detects a real effect when one exists; low power increases the risk of a false negative.
Frequently Asked Questions
What is a p-value?
A p-value is the probability of observing a test statistic at least as extreme as the one calculated, assuming the null hypothesis is true. A small p-value suggests the observed data would be unlikely if the null hypothesis were correct.
What does p < 0.05 mean?
p < 0.05 means the result would occur less than 5% of the time by chance alone if the null hypothesis were true. It's the most common threshold for calling a result "statistically significant," though it's an arbitrary convention rather than a universal rule.
What is the difference between a one-tailed and two-tailed test?
A two-tailed test checks for a difference in either direction and splits the significance level across both tails of the distribution. A one-tailed test checks for a difference in only one specific direction, which makes it easier to reach significance if you correctly predicted the direction in advance.
Does a small p-value prove the alternative hypothesis is true?
No. A p-value only measures how surprising the data would be under the null hypothesis — it doesn't tell you the probability the null (or alternative) hypothesis is true, and it says nothing about effect size or practical importance.