Home · Statistics · Inference & Tests · p-value Calculator
p-value Calculator
The p-value of a test statistic under the z, t, chi-square or F distribution, for a two-sided, right-tailed or left-tailed alternative.
What this calculator does
The p-value of a test statistic under the z, t, chi-square or F distribution, for a two-sided, right-tailed or left-tailed alternative. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
The p-value is the probability, computed under the null distribution, of a statistic at least as extreme as the one observed, in the direction(s) the tail choice specifies.
t uses df 1; chi-square uses df 1; F uses df 1 and df 2. For chi-square and F the meaningful tail is the right tail.
Default: z = 1.96, two-sided — p ≈ 0.05.
Worked example
With the example inputs this page opens with (test statistic 1.96, degrees of freedom 1 10, degrees of freedom 2 (f only) 20), the result is 0.0500. Change any figure and the result updates with the same formula.
Quick reference
| Test statistic | Result |
|---|---|
| 0.98 | 0.3271 |
| 1.568 | 0.1169 |
| 1.96 | 0.0500 |
| 2.45 | 0.0143 |
| 2.94 | 0.0033 |
| 3.92 | 0.0001 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Is the p-value the probability that the null hypothesis is true?
No. It is the probability of data at least this extreme assuming the null is true — P(data | null), not P(null | data). Confusing the two is the most common misreading in applied statistics.
Why does z = 1.96 give p = 0.05 and not exactly 0.0500?
1.96 is a rounding of the exact 97.5th percentile, 1.959964. Feeding the rounded statistic back returns p = 0.049996, a hair under 0.05.
How does the p-value Calculator work?
The p-value of a test statistic under the z, t, chi-square or F distribution, for a two-sided, right-tailed or left-tailed alternative. Test statistic · Distribution · df 1 · df 2 · Tail → p-value. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the p-value Calculator need?
Test statistic · Distribution · df 1 · df 2 · Tail → p-value. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.