P-Value Calculator

Your values

Test statistic distribution

The t statistic from your t-test, for example 2.0 or −2.31.

Alternative hypothesis
Significance level (α)

The threshold for calling a result significant, chosen before you look at the data. 0.05 is the most common choice.

Result

P-value

p=P(∣T20∣≥2)≈0.05927p=P(|T_{20}|\ge 2)\approx0.05927

Not statistically significant at α = 0.05

The p-value is above α, so you fail to reject the null hypothesis at this level. This does not show that H₀ is true.

Student's t distributionShaded area: the p-value, 0.05927. Dashed lines: critical values at α = 0.05.
Left tail P(X ≤ t)
0.97037
Right tail P(X ≥ t)
0.02963
Critical value

The p-value assumes H₀ is true; it is not the probability that H₀ is true.

About this tool

A p-value is the probability of getting a test statistic at least as extreme as the one you observed, assuming the null hypothesis H₀ is true. A small p-value means the data would be unusual if H₀ were true, which counts as evidence against it.

This calculator converts a z, t, chi-square or F statistic into a one- or two-tailed p-value, so you do not need printed tables. It also gives the left and right tail areas, the critical values for your significance level and a shaded chart of the distribution.

How it works

Choose the distribution your test statistic follows: z (standard normal) for z-tests, Student's t for t-tests, chi-square for goodness-of-fit, independence and variance tests, or F for ANOVA and regression. Enter the statistic and its degrees of freedom.

Pick the tail that matches your alternative hypothesis: left-tailed for "less than", right-tailed for "greater than" and two-tailed for "not equal to". Chi-square and F tests are usually right-tailed. The calculator finds the area beyond your statistic, compares the p-value with the significance level α and shows the critical values for the same α.

p=2min⁡{P(X≤x0∣H0), P(X≥x0∣H0)}p=2\min\{P(X\le x_0\mid H_0),\ P(X\ge x_0\mid H_0)\}

Example

A two-sample t-test gives t=2.0t = 2.0 with 20 degrees of freedom and a two-sided alternative. The area to the right of 2.0 is about 0.0296, so the two-tailed p-value is p=2×0.0296≈0.0593p = 2 \times 0.0296 \approx 0.0593. Because 0.0593>0.050.0593 > 0.05, you fail to reject H₀ at the 5 % level, although the result would be significant at α of 0.10. The two-tailed critical values at α of 0.05 are ±2.086\pm 2.086.

For a chi-square test of independence with χ2=7.815\chi^2 = 7.815 and 3 degrees of freedom, the right-tailed p-value is p≈0.05p \approx 0.05, exactly on the 5 % critical value.

Assumptions and limits

The p-value is only as good as the test behind it: it assumes the statistic really follows the chosen distribution under H₀, which depends on independent observations, adequate sample sizes and the test's own conditions (such as normality for small-sample t-tests).

A p-value is not the probability that H₀ is true, and it does not measure the size or importance of an effect. A tiny effect can be highly significant in a large sample, and a non-significant result does not prove that there is no effect. Report effect sizes and confidence intervals alongside p-values, and choose α and the tail before looking at the data. For two-tailed chi-square and F tests the calculator doubles the smaller tail.

Frequently asked questions

What does a p-value of 0.05 mean?

If the null hypothesis were true, a test statistic at least as extreme as yours would turn up about 5 % of the time. At a significance level of 0.05 you would reject H₀. It does not mean there is a 5 % chance that H₀ is true.

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

Use a two-tailed test unless you decided before collecting data that only one direction matters and an effect in the other direction would be treated the same as no effect. For a symmetric distribution the two-tailed p-value is twice the one-tailed value.

How do I find the degrees of freedom?

For a one-sample t-test, df=n−1df = n - 1. For a pooled two-sample t-test, df=n1+n2−2df = n_1 + n_2 - 2. For a chi-square test of independence, df=(r−1)(c−1)df = (r - 1)(c - 1). For one-way ANOVA, the F statistic has k−1k - 1 and N−kN - k degrees of freedom. Fractional values, such as Welch's df, are accepted.

What is the difference between the p-value and α?

α is the threshold you choose in advance, the false-positive rate you are willing to accept. The p-value comes from your data. If p≤αp \le \alpha, you reject H₀ at that level; otherwise you fail to reject it.

Can a p-value be exactly 0?

No. It can be extremely small, and very small values are shown in scientific notation, such as 1.2E-9. Software that prints 0.000 or "p < 0.001" is rounding.

Link with your values

Add these parameters to this page’s address to open it with the values filled in, for example to share a calculation or to link to it from an AI assistant. The result is calculated in the browser: the page HTML shows an example for the default values, and the tool sets the data-url-params attribute once the link’s values are applied.

ParameterValueIf omitted
distributionTest statistic distributionone of: z, t, chi2, fdefault t
statisticTest statisticnumberrequired
dfDegrees of freedom (df)number; allowed > 0 – 10000000; used with distribution = t, chi2required
df1Numerator df (d₁)number; allowed > 0 – 10000000; used with distribution = frequired
df2Denominator df (d₂)number; allowed > 0 – 10000000; used with distribution = frequired
tailAlternative hypothesisone of: left, right, twodefault two
alphaSignificance level (α)number; allowed > 0 – < 1default 0.05

Examples

  • ?distribution=z&statistic=1.96
  • ?statistic=2.45&df=14&tail=right
  • ?distribution=chi2&statistic=7.81&df=3
  • ?statistic=3.2&df1=4&df2=30&alpha=0.025

Write decimals with a point. Encode a space as %20, + as %2B, # as %23 and & as %26.

Result elements: [data-result-block="p_value_calculator"]