P Value Calculator From z, t or Chi-Square
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free p value calculator. Enter a z score, t statistic or chi-square value with its degrees of freedom to get the one-tailed or two-tailed p-value.
- At α = 0.05
- 0
- At α = 0.01
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the p value calculator
- Choose the type of test statistic: a z score (from the normal distribution), a t statistic or a chi-square statistic.
- Enter the statistic from your test.
- Enter the degrees of freedom for t and chi-square tests.
- Choose one-tailed or two-tailed for z and t tests. Chi-square tests are always right-tailed.
The p value calculator shows the p-value and whether the result is significant at the 0.05 and 0.01 levels.
What is a p-value?
A p-value is the probability of getting a result at least as extreme as the one you observed, if the null hypothesis were true. The null hypothesis is the "nothing is going on" assumption: no difference between groups, no effect of a treatment, no relationship between variables.
A small p-value means your result would be unusual if the null hypothesis were true, which counts as evidence against it. A large p-value means your result is quite consistent with the null hypothesis.
For example, a two-tailed p-value of 0.03 means that if there were truly no effect, you'd see a result at least this extreme only about 3% of the time.
How the p value calculator works
The p value calculator finds the area in the tail (or tails) of the relevant probability distribution beyond your test statistic:
- z test: uses the standard normal distribution. A two-tailed p-value is 2 × (1 − Φ(|z|)), where Φ is the normal cumulative distribution function.
- t test: uses Student's t distribution with your degrees of freedom. With few degrees of freedom, the t distribution has heavier tails than the normal, so the same statistic gives a larger p-value.
- Chi-square test: uses the chi-square distribution with your degrees of freedom, and takes the area to the right of your statistic.
Some reference values:
- z = 1.96, two-tailed: p ≈ 0.050.
- z = 1.645, right-tailed: p ≈ 0.050.
- t = 2.0 with 10 degrees of freedom, two-tailed: p ≈ 0.073.
- t = 2.5 with 28 degrees of freedom, two-tailed: p ≈ 0.019.
- χ² = 3.841 with 1 degree of freedom: p ≈ 0.050.
- χ² = 11.07 with 5 degrees of freedom: p ≈ 0.050.
One-tailed versus two-tailed tests
A two-tailed test checks for a difference in either direction: is the new version better or worse? A one-tailed test checks only one direction: is the new version better? For the same statistic, a one-tailed p-value is half the two-tailed one when the result is in the predicted direction.
Choose the type of test before you look at the data, based on your question. Switching to a one-tailed test after seeing the result, just to get a smaller p-value, is a form of p-hacking. Most published research uses two-tailed tests unless there's a strong reason to expect only one direction.
What counts as significant?
By convention, many fields call a result statistically significant if p < 0.05, and highly significant if p < 0.01. The threshold is called the significance level, written α. The p value calculator shows whether your result passes both common thresholds.
The 0.05 threshold is a convention, not a law of nature. Some fields use stricter thresholds, such as particle physics, which uses a "five sigma" standard of about 3 in 10 million, and genetics studies, which use very small thresholds because they test many things at once.
What a p-value doesn't tell you
P-values are widely misunderstood. The American Statistical Association published a statement in 2016 to clarify what they do and don't mean:
- A p-value is not the probability that the null hypothesis is true.
- A p-value doesn't measure the size or importance of an effect. With a huge sample, a tiny, meaningless difference can have a very small p-value.
- A result with p = 0.06 is not fundamentally different from one with p = 0.04. Treating 0.05 as a bright line can be misleading.
- A p-value alone isn't a good measure of evidence. Look at effect sizes, confidence intervals and the design of the study too.
Degrees of freedom
Degrees of freedom describe how much independent information goes into a statistic. Common values:
- One-sample t-test: n − 1, where n is the sample size.
- Two-sample t-test with equal variances: n₁ + n₂ − 2. Welch's test uses an adjusted value, often not a whole number.
- Paired t-test: number of pairs − 1.
- Chi-square test of independence: (rows − 1) × (columns − 1).
- Chi-square goodness of fit: number of categories − 1.
If you have your raw data, the t-test calculator and chi-square calculator work out the statistic, degrees of freedom and p-value together.
A worked example
A website tests whether a new design changes the time visitors spend on a page. A two-sample t-test gives t = 2.5 with 28 degrees of freedom.
- Choose t statistic, enter 2.5 and 28 degrees of freedom.
- Choose two-tailed, because the design could increase or decrease time on page.
- Read the result: p ≈ 0.019.
The result is significant at 0.05 but not at 0.01. If there were truly no difference, a result this extreme would happen about 1.9% of the time. Before acting on it, the team should look at how big the difference is in seconds and whether it matters for the business.
Who uses a p value calculator
Students use it to check statistics homework and exam answers. Researchers use it to get exact p-values from statistics reported in papers. Analysts and marketers use it for A/B tests; the A/B test calculator is built specifically for comparing conversion rates. Quality engineers use it to check whether a process change made a real difference.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. That is the whole job of DeepRit: a PPC-only agency that sets up and runs Google Ads accounts so every click is accounted for. You keep full ownership of your account, get a written report every week, and can stop at any time. See our pricing or ask for a free audit.
How to report a p-value
Good practice is to report the exact p-value, the test statistic and the degrees of freedom, along with an effect size or confidence interval. For example: "Time on page was longer with the new design (mean difference 12 seconds, 95% CI 2 to 22 seconds), t(28) = 2.5, p = .019." Very small p-values are often reported as p < .001 rather than with many zeros. The p value calculator shows tiny values in scientific notation so you can see exactly how small they are.
Multiple testing
If you run many tests, some will come out significant by chance. With 20 independent tests at α = 0.05, you'd expect about one false positive even if nothing is really going on. Corrections like the Bonferroni method, which divides α by the number of tests, reduce this risk. If you test many variations or many outcomes, plan your analysis in advance and adjust for the number of comparisons.
Common mistakes
- Using the wrong degrees of freedom.
- Choosing one-tailed after seeing the data.
- Treating p > 0.05 as proof of no effect. It may mean the study was too small to detect one.
- Confusing statistical significance with practical importance.
P-values and confidence intervals
P-values and confidence intervals are closely linked. For a two-tailed test at the 5% level, the result is significant exactly when the 95% confidence interval for the effect doesn't include zero (or whatever value the null hypothesis states). Confidence intervals are often more informative, because they show the range of plausible effect sizes as well as whether the result is significant. A narrow interval far from zero suggests a clear, reliable effect; a wide interval that only just excludes zero suggests the effect could be tiny or large. The confidence interval calculator works these out.
Statistical power
Power is the probability that a test will detect an effect if one really exists. A study with low power often produces large p-values even when the effect is real, simply because the sample is too small. Planning the sample size before collecting data, using the sample size calculator, helps make sure a study has a good chance of finding an effect of the size you care about. When a result comes out non-significant, the first question to ask is whether the study had enough power to detect a meaningful effect.
Why use a p value calculator instead of tables
Printed statistical tables only list critical values for a few significance levels, such as 0.10, 0.05 and 0.01, and for selected degrees of freedom. With a table, you can only say that p is between two values. A p value calculator gives the exact figure for any statistic and any degrees of freedom, which is what modern reporting guidelines recommend. It also avoids errors from reading the wrong row or column.
Sources and further reading
- P-value on Wikipedia: definition, calculation and common misinterpretations.
- American Statistical Association: Statement on statistical significance and p-values, six principles for using p-values.
- NIST/SEMATECH: e-Handbook of Statistical Methods, reference tables and explanations for the normal, t and chi-square distributions.
Frequently asked questions
How do I calculate a p-value from a z score?
For a two-tailed test, p = 2 × (1 − Φ(|z|)). The p value calculator does this for you; z = 1.96 gives p ≈ 0.05.
How do I get a p-value from a t statistic?
Enter the t statistic and degrees of freedom, and choose one or two tails.
What does p < 0.05 mean?
If the null hypothesis were true, a result this extreme would happen less than 5% of the time.
Should I use a one-tailed or two-tailed test?
Usually two-tailed, unless you had a strong reason before collecting the data to test only one direction.
Is a smaller p-value a bigger effect?
No. P-values depend on both effect size and sample size. Look at the effect size separately.
Is the p value calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.