P-Value Calculator
Enter a test statistic from a paper, software output or your own calculation to get its exact p-value: t with its degrees of freedom, z, chi-square, F with two degrees of freedom, or a correlation coefficient r with the number of pairs. Choose a two-tailed or one-tailed hypothesis and copy the result in APA style.
p-value (two-tailed)
t(28) = 2.10. The result is statistically significant at α = 0.05 (p < 0.05).
- Exact p-value
- 0.0449
- APA format
- p = .045
- One-tailed p (same direction)
- 0.0224
Report it like this
t(28) = 2.10, p = .045 (two-tailed).
How to use the calculator
- Pick the statistic your test produced: t, z, χ² (chi-square), F or r.
- Enter its value and degrees of freedom. For r, enter the number of pairs instead; the calculator converts r to t with n − 2 degrees of freedom. The table below lists the degrees of freedom for common tests.
- Choose the hypothesis. Two-tailed is the default and the usual choice. Chi-square and F tests are always right-tailed.
- Copy the APA sentence, or read the exact p-value from the grid.
| Test | Degrees of freedom |
|---|---|
| One-sample or paired t-test | n − 1 |
| Independent t-test (Student) | n₁ + n₂ − 2 |
| Independent t-test (Welch) | Welch–Satterthwaite df, usually not a whole number |
| Correlation r | n − 2 (enter n, the number of pairs) |
| Chi-square test of independence | (rows − 1) × (columns − 1) |
| Chi-square goodness of fit | categories − 1 |
| One-way ANOVA F | groups − 1 and N − groups |
| Regression F (simple linear) | 1 and n − 2 |
How the p-value is calculated
p = P(statistic at least as extreme as observed | H₀ true)
The p-value is the probability of a result at least as extreme as yours if the null hypothesis were true. It is the area in the tail (or both tails) of the statistic’s distribution beyond the observed value: the t distribution with its degrees of freedom, the standard normal for z, the chi-square distribution, or the F distribution with its two degrees of freedom.
A two-tailed p-value counts both directions, so for t and z it is twice the one-tailed area. A correlation r is tested by converting it to t = r√(n − 2) / √(1 − r²) with n − 2 degrees of freedom, the same test that SPSS, R’s cor.test and SciPy’s pearsonr use. The tail areas come from the incomplete beta function (t and F), the incomplete gamma function (chi-square) and the complementary normal distribution (z), computed directly in the tail so that very small p-values keep their digits instead of rounding to zero.
Worked examples
- t = 2.10 with 28 df (the default): two-tailed p = 0.0449, so the result is significant at 0.05. One-tailed in the observed direction, p = 0.0224.
- z = 1.96: two-tailed p = 0.0500, the familiar cut-off.
- χ² = 7.81 with 3 df: p = 0.0501, just above 0.05. 7.81 is the 0.05 critical value for 3 df rounded to two decimals.
- F(4, 25) = 3.45: p = 0.0224, for example from a one-way ANOVA comparing 5 groups of 6.
- r = 0.45 from 30 pairs: t = 2.666 with 28 df, two-tailed p = 0.0126.
How to interpret a p-value
A p-value below the significance level (usually 0.05) is called statistically significant: data this extreme would be unusual if there were no effect. It is not the probability that the null hypothesis is true, and it does not measure how large or important the effect is.
The American Statistical Association’s 2016 statement asks researchers not to base conclusions on whether p crosses 0.05 alone, and to report effect sizes with confidence intervals. A tiny effect can be significant in a very large study, and a large effect can miss significance in a small one. The effect size calculator gives Cohen’s d from the same t statistic, and the power analysis calculator shows how many participants a study needs to detect an effect reliably.
How to report a p-value
APA style gives the exact p-value to two or three decimals without a leading zero, and writes p < .001 for anything smaller. Report the statistic with its degrees of freedom:
Scores were higher after training, t(28) = 2.10, p = .045. The association was significant, χ²(3) = 9.12, p = .028.
Avoid “p = .000” (software rounding) and “p < .05” when the exact value is available. Medical journals often set their own rule, such as two decimals for p-values above 0.01 and three between 0.001 and 0.01, so check the author guidelines. If you start from raw data rather than a statistic, the t-test calculator and chi-square calculator run the whole test.
Questions
- How do I calculate a p-value from a t statistic?
- You need the t value and its degrees of freedom. The two-tailed p-value is twice the area of the t distribution beyond |t|. For t = 2.10 with 28 degrees of freedom, p = 0.045. In Excel, =T.DIST.2T(2.10, 28) gives the same value.
- How do I get a p-value from a z-score?
- Use the standard normal distribution: the two-tailed p-value is 2 × (1 − Φ(|z|)). z = 1.96 gives 0.050, z = 2.58 gives 0.010 and z = 3.29 gives 0.001. In Excel, =2*(1-NORM.S.DIST(ABS(z),TRUE)).
- What does p < 0.05 mean?
- It means that if there were truly no effect, a result at least as extreme as the one observed would occur less than 5% of the time. By convention this is called statistically significant. It does not mean there is a 95% chance the effect is real.
- Should I use a one-tailed or a two-tailed p-value?
- Use a two-tailed p-value unless you stated a one-directional hypothesis before collecting the data and an effect in the other direction would be treated the same as no effect. Most journals expect two-tailed tests, and switching to one-tailed after seeing the data is not acceptable.
- Why are chi-square and F tests one-tailed?
- Both statistics are always zero or positive, and larger values mean a bigger departure from the null hypothesis, so only the upper tail counts as evidence against it. The test can still detect differences in any direction between groups or categories.
- How do I report a p-value of 0.000?
- Statistical software shows 0.000 when the p-value rounds to zero at three decimals. The p-value is never exactly zero, so report it as p < .001, or give the exact value from this calculator if your journal asks for it.
Sources
- Wasserstein RL, Lazar NA. The ASA statement on p-values: context, process, and purpose. Am Stat 2016;70(2):129–133. doi:10.1080/00031305.2016.1154108
- Greenland S, Senn SJ, Rothman KJ, et al. Statistical tests, P values, confidence intervals, and power: a guide to misinterpretations. Eur J Epidemiol 2016;31(4):337–350. doi:10.1007/s10654-016-0149-3
- NIST/SEMATECH e-Handbook of Statistical Methods, section 1.3.6.7: Tables for probability distributions
- American Psychological Association. Numbers and statistics guide (APA Style, 7th edition)
Calculations run in your browser; nothing you enter is sent or stored. Results are checked against SciPy and statsmodels in our test suite. Last updated 29 November 2026.