P-Value Calculator (z, t, Chi-Square, F)

Turn a z, t, chi-square or F test statistic into a p-value: left-tailed, right-tailed or two-tailed, with the degrees of freedom you choose.

Chi-square and F statistics cannot be negative.
%

Results

p-value (two-tailed)
0.048618
Compared with α = 5%
p ≤ α: the result is statistically significant at the 5% level
Left tail: P(statistic ≤ value)
0.975691
Right tail: P(statistic ≥ value)
0.024309
Two-tailed p-value
0.048618
Statistic
t = 2.1 with 20 degrees of freedom

How it’s calculated

A p-value is the probability, assuming the null hypothesis is true, of getting a test statistic at least as extreme as the one you observed. Pick the type of statistic your test produced, enter its value and degrees of freedom, and choose the tail that matches your alternative hypothesis.

right-tailed: p = P(statistic ≥ observed) left-tailed: p = P(statistic ≤ observed) two-tailed (z and t, symmetric): p = 2 × P(statistic ≥ |observed|) two-tailed (χ² and F, not symmetric): p = 2 × the smaller of the two tails (capped at 1)

Example (OpenStax Introductory Statistics 2e, Example 13.3): an ANOVA gave F = 2.2303 with 3 and 16 degrees of freedom. The p-value is the right tail, P(F > 2.2303) = 0.1241. At α = 0.01 or 0.05 that is not significant. A second check: t = 2.228 with 10 degrees of freedom has a two-tailed p-value of about 0.05, matching the 97.5% entry of the NIST t table.

A small p-value says the data would be unusual if the null hypothesis were true. It is not the probability that the null hypothesis is true, and it says nothing about the size or importance of an effect.

Frequently asked questions

Which tail should I choose?

Use two-tailed when the alternative says “different from”, right-tailed for “greater than”, and left-tailed for “less than”. Decide before you look at the data. Chi-square tests of fit and independence, and ANOVA F-tests, are normally right-tailed.

How do I get a two-tailed p-value for chi-square or F?

Those distributions are not symmetric, so there is no single rule. This calculator doubles the smaller tail (capped at 1), which is the usual convention. The F-test calculator uses the same rule.

Is a p-value below 0.05 “proof”?

No. 0.05 is a convention. A small p-value is evidence against the null hypothesis under the test’s assumptions, not proof, and a large one is not proof of no effect.

Why is a very small p-value shown in scientific notation?

Values below one in a million would otherwise round to 0. For example 2.1 × 10⁻⁷ means 0.00000021.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator