P-Value Calculator

Turn a test statistic into a p-value for z, t, chi-square and F tests, and see at a glance whether it is significant.

Result

Two-tailed p-value
0.049996
  • At α = 0.10Significant (reject H₀)
  • At α = 0.05Significant (reject H₀)
  • At α = 0.01Not significant
  • Left-tail area P(X ≤ statistic)0.975002
  • Right-tail area P(X ≥ statistic)0.024998
  • z = 1.96, from the standard normal distribution.
  • Two-tailed p = 2 × the smaller tail area.
  • A small p-value means data this extreme would be unlikely if the null hypothesis were true. It is not the probability that the null hypothesis is true.

How to use the calculator

Pick the type of test statistic, then enter it:

  • Z score: from a z-test or a large-sample test of a proportion. Choose two-tailed, right-tailed or left-tailed.
  • t score: from a t-test, with its degrees of freedom. For a one-sample test, df = n − 1. Choose the tails.
  • Chi-square: from a goodness-of-fit or independence test, with its degrees of freedom.
  • F statistic: from ANOVA or a regression F-test, with the numerator and denominator degrees of freedom.

The result shows the p-value, whether it is significant at α = 0.10, 0.05 and 0.01, and both tail areas.

How the p-value is computed

Test Distribution Tail area used
z standard normal Φ(z) and 1 − Φ(z)
t Student t with df regularized incomplete beta I(df ÷ (df + t²); df/2, ½)
χ² chi-square with k df regularized incomplete gamma Q(k/2, χ²/2)
F F with (d₁, d₂) df I(d₂ ÷ (d₂ + d₁F); d₂/2, d₁/2)

A two-tailed p-value is twice the smaller tail. The incomplete beta and gamma functions are evaluated with continued fractions to roughly 14 significant digits. Each tail is computed directly, so very small p-values such as 10⁻²⁰ do not round to zero. The results match published tables, such as χ² = 3.841 with 1 df giving p = 0.05.

Worked example

The default is a z score of 1.96 with a two-tailed test.

  1. Right tail: 1 − Φ(1.96) = 0.024998.
  2. Left tail: Φ(1.96) = 0.975002.
  3. Two-tailed p-value: 2 × 0.024998 = 0.049996.
  4. Decision: 0.049996 is just below 0.05, so the result is significant at the 5% level but not at 1%.

The other tests have their own defaults, too. A t score of 2.5 with 15 df gives a two-tailed p of 0.0245. A chi-square of 7.5 with 2 df gives p = 0.0235. An F of 4.2 with (3, 20) df gives p = 0.0186.

Interpreting the result

Compare the p-value with the significance level α you chose before the test. If p < α, reject the null hypothesis. If not, the data is consistent with it, which is not the same as proving it true. The 0.05 level is a convention, not a law. A p of 0.051 and a p of 0.049 are almost equally strong evidence.

To turn a raw value into a z score first, use the standard deviation calculator to find the spread of your data.

Limitations

  • The p-value is only valid if the test’s assumptions hold, such as independent observations and, for t and F tests, roughly normal data.
  • Running many tests and reporting only the significant ones inflates false positives. Adjust α for multiple comparisons.
  • Degrees of freedom may be fractional, as in Welch’s t-test, and the calculator accepts them.

Frequently asked questions

What is a p-value?

It is the probability of getting a test statistic at least as extreme as yours if the null hypothesis were true. A small p-value means your data would be surprising under the null hypothesis, which counts as evidence against it.

Should I use a one-tailed or two-tailed test?

Use two-tailed unless you decided before seeing the data that only one direction matters. A one-tailed p-value is half the two-tailed one, so choosing it after the fact makes results look stronger than they are.

Why are chi-square and F tests right-tailed?

Both statistics grow as the data departs further from the null hypothesis, and they cannot be negative. Large values are the extreme ones, so the p-value is the area to the right. A left tail is offered for special cases, such as testing whether a fit is suspiciously good.

Does p < 0.05 mean my result is important?

No. Significance only says the effect is unlikely to be zero. A tiny, unimportant effect can be highly significant in a large sample. Report the size of the effect, ideally with a confidence interval, alongside the p-value.

Last reviewed: