A p-value tells you how surprising your result would be if there were really no effect. It is the standard way to decide whether a difference in an experiment, survey or A/B test is likely to be real or just chance. Our p-value calculator converts a test statistic from a z, t, chi-square or F test into p-values and tells you whether the result is significant. This guide explains how to read the output and avoid the common misunderstandings.
How to use the calculator
- Statistic type: z, t, χ² (chi-square) or F.
- Statistic value: the number your test produced.
- Degrees of freedom: needed for t and χ² (df) and F (df₁ and df₂).
- Significance level α: usually 0.05.
With the defaults, a t statistic of 2.1 with 15 degrees of freedom at α = 0.05:
- Two-tailed p-value: 0.0531
- Left-tailed: 0.9735
- Right-tailed: 0.0265
- Significant at α = 0.05? No, fail to reject H₀ (two-tailed)
What a p-value means
Every test starts with a null hypothesis (H₀), usually "there is no effect" or "there is no difference". The p-value is:
A small p-value means your data would be unusual under H₀, which is evidence against it.
- p < α: reject H₀. The result is statistically significant.
- p ≥ α: fail to reject H₀. The data is consistent with no effect.
One-tailed or two-tailed?
- Two-tailed: you are testing for a difference in either direction, such as "the new design changes conversion". This is the usual default.
- Right-tailed: you only care about an increase, such as "the new design raises conversion".
- Left-tailed: you only care about a decrease.
The default example shows why this matters. With t = 2.1, the right-tailed p-value of 0.0265 is significant at 0.05, but the two-tailed 0.0531 is not. Decide which you need before looking at the data.
The four statistics
| Statistic | Typical test | Degrees of freedom |
|---|---|---|
| z | Large-sample means and proportions | None |
| t | Small-sample means, comparing two groups | n − 1 for one sample |
| χ² | Goodness of fit, independence in tables | (rows − 1) × (columns − 1) |
| F | ANOVA, comparing variances | Between-groups and within-groups |
Benchmarks:
- z = 1.96 gives a two-tailed p of 0.05.
- χ² = 3.84 with 1 df gives a p of about 0.05.
- F = 4.1 with 2 and 20 df gives a p of about 0.032.
Chi-square and F tests are almost always right-tailed, because larger values mean a bigger departure from H₀.
Worked example: A/B test
A website tests two button colours. The z statistic comparing conversion rates is 2.4. The two-tailed p-value is about 0.016. At α = 0.05, the difference is significant: if the colour truly made no difference, a gap this large would happen only about 1.6% of the time by chance.
To find a z statistic from a single value, use the z-score calculator.
What p-values do not tell you
- Not the probability that H₀ is true. A p of 0.03 does not mean a 3% chance of no effect.
- Not the size of the effect. With a huge sample, a tiny, unimportant difference can be highly significant. Report the effect size and a confidence interval too.
- Not proof. "Fail to reject" is not the same as proving there is no effect; the sample may just be too small. The sample size calculator helps plan studies with enough data.
- 0.05 is a convention, not a law. p = 0.049 and p = 0.051 are practically the same evidence.
Choosing α
- 0.05: the common default.
- 0.01: when false positives are costly, such as in medicine.
- 0.10: in exploratory work where missing an effect is the bigger worry.
If you run many tests at once, some will be significant by chance. A simple fix is the Bonferroni correction: divide α by the number of tests.
Frequently asked questions
What is a good p-value?
There is no good or bad p-value. Below your chosen α (often 0.05) is called significant, but always consider the effect size and context too.
Why are chi-square p-values only right-tailed?
Chi-square statistics are always positive, and only large values indicate a poor fit or an association, so only the right tail is tested.
What are degrees of freedom?
The number of values free to vary once certain totals are fixed. They shape the t, chi-square and F distributions and come from your sample sizes or table size.
Can a p-value be exactly zero?
Not in theory, but it can be so small that it rounds to zero. Report it as p < 0.001 rather than p = 0.
Try it yourself
Run your own numbers with our free tool: P-value calculator. No sign-up, and it works on any device.