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 α.
Example
A two-sample t-test gives 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 . Because , 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 .
For a chi-square test of independence with and 3 degrees of freedom, the right-tailed p-value is , 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, . For a pooled two-sample t-test, . For a chi-square test of independence, . For one-way ANOVA, the F statistic has and 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 , 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.
| Parameter | Value | If omitted |
|---|---|---|
distributionTest statistic distribution | one of: z, t, chi2, f | default t |
statisticTest statistic | number | required |
dfDegrees of freedom (df) | number; allowed > 0 – 10000000; used with distribution = t, chi2 | required |
df1Numerator df (d₁) | number; allowed > 0 – 10000000; used with distribution = f | required |
df2Denominator df (d₂) | number; allowed > 0 – 10000000; used with distribution = f | required |
tailAlternative hypothesis | one of: left, right, two | default two |
alphaSignificance level (α) | number; allowed > 0 – < 1 | default 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"]