P-Value Calculator
The p-value is the probability, assuming the null hypothesis is true, of a test statistic at least as extreme as the one you observed. For a z statistic of 1.96 the two-tailed p-value is 0.0500; for a right-tailed test it is 0.0250. Choose the test (z, t or chi-square), enter the statistic and, for t and chi-square, the degrees of freedom, and the calculator returns the p-value and the decision at α = 0.10, 0.05 and 0.01.
p-value
0.0500
At α = 0.1
Reject H₀
At α = 0.05
Reject H₀
At α = 0.01
Fail to reject
Working
- Standard normal: area to the right of 1.96 = 0.024998, to the left = 0.975002
- Two-tailed p-value = 2 × 0.024998 = 0.049996
Example: z = 1.96, two-tailed
- Standard normal: area to the right of 1.96 = 0.024998, to the left = 0.975002
- Two-tailed p-value = 2 × 0.024998 = 0.049996
Which tail to use
A right-tailed p-value is the area to the right of the statistic and is used when the alternative hypothesis says "greater than". A left-tailed p-value is the area to the left and goes with "less than". A two-tailed p-value, used for "not equal", is twice the smaller of the two tail areas. For the symmetric z and t distributions, that is twice the area beyond |statistic|. Choose the direction from your alternative hypothesis before looking at the data.
Chi-square tests for goodness of fit and independence always use the right tail, because large gaps between observed and expected counts make the statistic large. A chi-square statistic cannot be negative, and the calculator rejects that input.
Reading the result
If the p-value is below your significance level α, reject the null hypothesis; otherwise fail to reject it. A p-value of 0.03 means that, if the null were true, you would see a result this extreme or more about 3% of the time. It is not the probability that the null hypothesis is true, and it does not measure how large or important an effect is.
A p-value from z uses the standard normal distribution, which suits large samples or a known population standard deviation. When the standard deviation is estimated from a small sample, use a t test with n − 1 degrees of freedom: the same statistic gives a larger p-value under t than under z because t has heavier tails. At 10 degrees of freedom, t = 2.228 gives a two-tailed p of 0.05, whereas z = 2.228 would give about 0.026.
Frequently asked questions
- How do I get a p-value from a z-score?
- Find the area in the tail beyond z. For a right-tailed test it is 1 − Φ(z); for a two-tailed test, double the area beyond |z|. z = 1.96 gives 0.0500 two-tailed.
- Is a smaller p-value better?
- A smaller p-value is stronger evidence against the null hypothesis. It says nothing about the size or practical importance of an effect.
- One-tailed or two-tailed?
- Use one tail only when the alternative hypothesis names a direction before you see the data. Otherwise use two tails.
- What does p < 0.05 mean?
- It means the result would be unusual if the null hypothesis were true, so you reject the null at the 5% significance level.
Sources and references
- NIST/SEMATECH e-Handbook, 1.3.6.7.2: Critical values of the Student’s t distribution: published t critical values used to test the t table.
- NIST/SEMATECH e-Handbook, 1.3.6.7.4: Critical values of the chi-square distribution: published chi-square critical values used to test the chi-square table.
- OpenStax Introductory Statistics 2e: A Single Population Mean using the Student t Distribution: when to use t instead of z.