P-value Calculator
Enter a test statistic (z, t or chi-square) and, where needed, the degrees of freedom, and get the p-value for a left-tailed, right-tailed or two-tailed test.
How it works
The p-value is the probability, if the null hypothesis is true, of getting a result at least as extreme as the one you observed. It is found from the cumulative distribution of the test statistic.
Right-tailed: p = 1 − F(x) · Left-tailed: p = F(x)
Φ = normal CDF, F = CDF of the t or chi-square distribution
Worked example
Using the default values: Distribution = Z (normal); Test statistic = 1.96; Degrees of freedom (t and chi-square) = 10; Tail = Two-tailed.
The calculator returns: p-value: 0.05; Significant at 0.05?: Yes (p < 0.05); Significant at 0.01?: No (p ≥ 0.01).
Limits and assumptions
- A p-value is not the probability that the null hypothesis is true.
- Chi-square tests are right-tailed by convention; the left tail is available but rarely used.
- Always decide the significance level (such as 0.05) before looking at the data.
Frequently asked questions about the P-value Calculator
What p-value is significant?
Many fields use 0.05 as a threshold, but the right level depends on the field and the cost of errors. Report the exact p-value as well.
What is the difference between one-tailed and two-tailed?
A two-tailed test looks for a difference in either direction; a one-tailed test looks in one direction only and must be decided in advance.
Where do I get the statistic?
From your own test: for example, a z-test, a t-test or a chi-square test statistic computed from your data.