P-Value Calculator
Turn any Z, T, Chi-Square or F test statistic into an exact p-value — with a shaded distribution diagram, a plain-language interpretation, and a significance verdict at your chosen α.
P-value explained, step by step
A p-value is the probability of a test statistic at least as extreme as the one observed, assuming H₀ is true. Each card walks through one piece of what this calculator computes.
1. What a p-value actually is
The p-value is the probability of a test statistic at least as extreme as the observed one, given H₀ is true. It is P(data | H₀), not P(H₀ | data). Small p ⇒ the data would be surprising under H₀ — evidence against H₀.
2. One-tailed vs two-tailed
Two-tailed asks 'different from H₀' in either direction. One-tailed asks a strictly directional question. For symmetric Z and t distributions, two-tailed p = 2 × one-tailed p. Choose one-tailed only when the direction is fixed before seeing the data.
3. Four distributions in one place
The page computes exact CDFs for Z (via erf), t and F (regularised incomplete beta), and χ² (regularised lower incomplete gamma). χ² and F tests are naturally right-tailed because both statistics are always non-negative — larger values mean more disagreement with H₀.
4. Comparing p to α — decision rule
Fix α in advance based on the cost of a false positive. If p ≤ α, reject H₀; otherwise fail to reject. 'Fail to reject' is not proof of H₀ — it means this sample lacked evidence to rule it out. Always report an effect size alongside p.
Features of this calculator
- Four distributions on one page — Z, T, χ², F — with the same clean UI.
- Exact p-values from the CDFs (normal via erf, t and F via the regularised incomplete beta, χ² via the regularised lower incomplete gamma). No table lookups.
- One-, two- and left-tailed p-values all supported.
- A shaded distribution diagram showing exactly which area equals your p-value.
- Automatic significance verdict at your chosen α, with a plain-language interpretation sentence.
- Full step-by-step working — CDF, tail conversion and α comparison — visible with one click.
- Copy the result panel as text or download it as a PNG.
Frequently asked questions
+Is p = 0.05 a magic number?
+Can I say H₀ is 'accepted' when p > 0.05?
+Why do chi-square and F tests only use the right tail?
+How do I choose the significance level α?
+What is a critical value and how does it relate to the p-value?
+Can I compute a p-value without knowing the exact distribution?
Related calculators
Need to compute a specific test statistic first? Run a t-test or look up a Z-score and paste the resulting statistic here.