P-value calculator (z, t, chi-square, F)

Give your test statistic, its distribution and its degrees of freedom: the page computes the p-value.

P-value calculator (z, t, chi-square, F)

Distribution of the statistic
For F: the numerator ones.
Type of test

Result

0.021234P-value

If the null hypothesis were true, a result at least this extreme would happen about 2.1234% of the time.
Left area P(X ≤ statistic)
0.989383
Right area P(X ≥ statistic)
0.010617
The p-value does not say whether the hypothesis is true or whether the effect matters. Pick the threshold (often 5%) before the test.

P-value calculator (z, t, chi-square, F)

Inputs

Distribution of the statistic
Student t
Value of the statistic
2.5
Degrees of freedom
20
Type of test
Two-tailed

How it is calculated

Left = cumulative distribution F(x); right = 1 − F(x), each computed directly to stay accurate.

Result

P-value

0.021234
Left area P(X ≤ statistic)
0.989383
Right area P(X ≥ statistic)
0.010617

How it is calculated

  1. Left = cumulative distribution F(x); right = 1 − F(x), each computed directly to stay accurate.
  2. Two-tailed = 2 × the smaller of the two areas (at most 1).
  3. t and F through the regularized incomplete beta function, z and chi-square through the regularized incomplete gamma function.

Example

t = 2.5 with 20 degrees of freedom, two-tailed: p ≈ 0.021234 (right area ≈ 0.010617).

Good to know

  • No automatic decision: a p-value proves nothing on its own.
  • Chi-square and F tests are almost always right-tailed; “two-tailed” simply doubles the smaller area.
  • The result is only right if the statistic truly follows the chosen distribution (test conditions).

When to use it

  • Turn a test statistic from a statistics course or a software output into a p-value.
  • Check a p-value given in an article from the statistic and degrees of freedom it reports.
  • For an interval around a mean or a proportion instead, use the Confidence interval calculator (mean or proportion).

Frequently asked questions

What does p = 0.02 mean?

If there were really no effect, a result at least this extreme would happen about 2 times in 100. It is not the probability that the hypothesis is true.

Is 0.05 a strict rule?

No. It is a common convention, not a law. Many fields use other thresholds, and a p-value just above or below 0.05 tells almost the same story.

When should I use a one-tailed test?

Only when the direction of the effect was decided before looking at the data. Choosing one after seeing the result halves the p-value unfairly.

Updated October 10, 2026

Indicative result. For an important decision, check with a professional.