P-value from test statistic calculator

Enter a test statistic and its degrees of freedom to get the exact p-value, the critical value at your significance level and a ready-to-paste result such as t(28) = 2.10, p = .045.

No accountInstant resultst, z, F, χ² and r

Enter the statistic

Use the value and degrees of freedom exactly as reported, for example t(28) = 2.10.

TEST STATISTIC

LIVE RESULT

INSTANT

p-value

The p-value is only as good as the test behind it: it assumes the test's own conditions, such as normality or independent observations, hold. A small p-value does not show that an effect is large or important.

How the p-value is calculated

A p-value is the probability of a test statistic at least as extreme as the one observed, if the null hypothesis were true. Each test statistic has a known distribution under the null hypothesis: the standard normal for z, Student's t for t, the F distribution for analysis of variance and the chi-square distribution for chi-square tests. The calculator evaluates the tail area of that distribution beyond your value.

Two-tailed: p = 2 × P(T ≥ |t|)
One-tailed, upper: p = P(T ≥ t); lower: p = P(T ≤ t)
F and χ²: p = P(F ≥ f), P(χ² ≥ x)
Correlation: t = r √(n − 2) ÷ √(1 − r²), with df = n − 2

The tail areas use the regularized incomplete beta function for t and F and the incomplete gamma function for chi-square and z, so very small p-values such as 10⁻¹⁵ are still exact rather than rounded to zero. Results match SciPy to at least nine significant digits.

Worked examples

  • t test. A paper reports t(28) = 2.10. The two-tailed p-value is 0.0449 (t(28) = 2.10, p = .045), below α = .05. A one-tailed test in the predicted direction gives p = 0.0224.
  • ANOVA. For F(2, 57) = 4.20 the p-value is 0.0199; the critical F at α = .05 is 3.159.
  • Correlation. r = .30 with 50 participants gives t(48) = 2.179 and a two-tailed p of 0.0343. With 48 degrees of freedom, any |r| above 0.279 is significant at .05.

Critical values of t

The |t| needed for significance
dfTwo-tailed α = .05Two-tailed α = .01One-tailed α = .05
52.5714.0322.015
102.2283.1691.812
202.0862.8451.725
302.0422.7501.697
602.0002.6601.671
1201.9802.6171.658
∞ (z)1.9602.5761.645

With few degrees of freedom the t distribution has heavier tails than the normal, so a larger statistic is needed. By about 120 df the difference from z = 1.96 is small.

One-tailed or two-tailed?

A one-tailed test halves the p-value when the result falls in the predicted direction, and can never be significant in the other direction. Use it only when the direction was fixed before seeing the data, ideally in a preregistration. F and chi-square tests are already one-sided in the sense that only large values count as evidence against the null hypothesis, so their p-value is the upper tail; the calculator warns if you choose another tail for them.

Checking reported results

Recomputing p from the reported statistic is a quick consistency check when reading or reviewing a paper. Allow for rounding: t(28) = 2.1 could be anything from 2.05 to 2.15, which gives p between 0.040 and 0.050. A recomputed p that differs by more than rounding can explain usually signals a typing error in the statistic, the degrees of freedom or the p-value.

Reporting

  • APA style gives exact p-values to two or three decimals without a leading zero (p = .045) and writes p < .001 for anything smaller. The result panel gives a ready-to-paste line.
  • Report the effect size and its confidence interval alongside the p-value. The effect size from t or F calculator turns the same statistic into Cohen's d or partial eta squared with an interval.
  • p is not the probability that the null hypothesis is true, and p > .05 does not show that there is no effect, only that the data are compatible with no effect at this sample size.