P-Value Calculator
Find the p-value from a z, t, chi-square or F test statistic — left, right or two-tailed.
Calculate the p-value for a hypothesis test from a z-score, t-statistic, chi-square or F statistic with its degrees of freedom, choose a left-tailed, right-tailed or two-tailed test, and see whether the result is significant at your chosen level.
How to find a p-value
A p-value comes from comparing your test statistic with the distribution it would follow if the null hypothesis were true. Which distribution depends on the test:
- Z (standard normal) — z-tests for means or proportions when the population standard deviation is known or the sample is large.
- t — t-tests for means when the standard deviation is estimated from the sample. Needs degrees of freedom (usually sample size − 1 for a one-sample test).
- Chi-square (χ²) — goodness-of-fit and independence tests on counts. Needs degrees of freedom.
- F — ANOVA and comparing two variances. Needs numerator and denominator degrees of freedom.
The tail sets which extreme results count: a left-tailed p-value is the area below your statistic, a right-tailed p-value is the area above it, and a two-tailed p-value counts both directions — twice the smaller tail.
Worked examples
- Z = 2.1, two-tailed: the area beyond 2.1 in each tail is 0.0179, so p = 0.0357. That's below 0.05, so the result is significant at α = 0.05.
- Z = −1.75, left-tailed: p = 0.0401.
- t = 2.5 with 15 degrees of freedom, two-tailed: p = 0.0245.
- χ² = 9.2 with 3 degrees of freedom, right-tailed: p = 0.0267.
- F = 3.5 with (3, 20) degrees of freedom, right-tailed: p = 0.0345.
Interpreting the result
Compare the p-value with your significance level α. If p ≤ α, the result is statistically significant: the data would be unlikely under the null hypothesis, so you reject it. If p > α, you fail to reject the null hypothesis — which is not the same as proving it true. Report the exact p-value alongside the test statistic and degrees of freedom, for example "t(15) = 2.50, p = 0.025".
Frequently asked questions
What does a p-value mean?
A p-value is the probability of getting a test statistic at least as extreme as the one you observed, assuming the null hypothesis is true. A small p-value means your data would be unusual if the null hypothesis were correct.
What p-value is significant?
The most common threshold (the significance level, α) is 0.05: if p is below 0.05, the result is called statistically significant and you reject the null hypothesis. Some fields use 0.01 or 0.10. Choose α before running the test, not after seeing the result.
Should I use a one-tailed or two-tailed test?
Use a two-tailed test when you are looking for a difference in either direction (for example, "the means are different"). Use a one-tailed test only when your hypothesis predicts a specific direction ("the mean is greater"). For the same statistic, a two-tailed p-value is twice the one-tailed value for z and t tests.
When do I use z vs. t?
Use a z-test when the population standard deviation is known or the sample is large. Use a t-test when you estimate the standard deviation from your sample, especially with small samples; the t-distribution accounts for the extra uncertainty using degrees of freedom.
Does a small p-value prove my hypothesis?
No. A p-value only measures how compatible the data are with the null hypothesis. It does not tell you the size or practical importance of an effect, and it is not the probability that the null hypothesis is true.