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.

Your figures

Example result — edit the figures to make it yours

0.05

p-value as a percentage4.999579%
ReadingThe p-value is the probability, under the null model, of a result at least as extreme as the statistic entered.

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

Two-sided (z, t): 2·P(X ≥ |stat|); right: P(X ≥ stat); left: P(X ≤ stat); chi-square and F are right-tailed by construction

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

Quick reference — varying test statistic
Test statisticResult
0.980.3271
1.5680.1169
1.960.0500
2.450.0143
2.940.0033
3.920.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.