P-Value Calculator – Convert Test Statistics to P-Values
The p-value is the single most-quoted number in hypothesis testing, yet it comes from a different formula depending on which distribution your test statistic belongs to. This calculator is a general-purpose "distribution lookup" tool: give it a z, t, χ², or F statistic (plus degrees of freedom, where required), and it returns the exact p-value — no printed statistical table or interpolation needed. It also works in reverse, converting a target significance level α into the critical value you'd need to reject the null hypothesis.
Choosing the Right Distribution
The Normal (Z) distribution applies when the population standard deviation is known or the sample is large. The Student's t distribution is the more common real-world case: it's used whenever the standard deviation is estimated from the sample itself, with heavier tails that widen as degrees of freedom shrink. The Chi-Square (χ²) distribution shows up in variance tests and tests of independence between categorical variables, while the F distribution is the ratio of two variances — the basis of ANOVA and variance-comparison tests.
One-Tailed vs. Two-Tailed
A two-tailed test checks for a difference in either direction and splits α across both tails of the distribution; a one-tailed test checks a single direction and puts the full α in one tail, giving more power to detect an effect in that specific direction. Because Chi-Square and F statistics are always non-negative and conventionally interpreted as right-tailed, the tail selector is hidden for those two distributions — there is no ambiguous "other side" to test against.
Statistic → P-Value, or α → Critical Value
In Statistic → P-Value mode, enter your computed statistic and the calculator returns the exact probability of observing a value at least that extreme under the null hypothesis, along with a plain-language "significant" or "not significant" decision and a pass/fail check at the three most common thresholds: α = 0.01, 0.05, and 0.10. In α → Critical Value mode, enter only your significance level and degrees of freedom to get the threshold statistic needed to reject the null hypothesis — the same value you'd otherwise look up in a printed z, t, χ², or F table.
How the Calculation Works
Each distribution's cumulative probability comes from a numerically stable, from-scratch implementation: the normal CDF uses the error function Φ(z) = 0.5(1 + erf(z/√2)); the t and F CDFs use the regularized incomplete beta function; and the χ² CDF uses the regularized incomplete gamma function. Since none of these have a closed-form inverse, critical values in reverse-lookup mode are solved with bisection, converging to full display precision in well under a hundred iterations.
Common Use Cases
Students use this tool to check textbook and homework answers without flipping through printed tables; analysts convert a raw statistic reported by R, SPSS, or Excel into an interpretable p-value; and anyone preparing for a statistics exam can use the reverse lookup to drill critical values for any distribution, degrees of freedom, and significance level combination.