Statistics Tool
P-Value Calculator
Convert a test statistic into a p-value for Z, t, chi-square, or F tests. Results update live as you type or drag.
Inputs
Result
p-value
–How this is calculated
A p-value is the probability of obtaining a test statistic at least as extreme as the one you observed, assuming the null hypothesis is true. It does not tell you the probability that your hypothesis is correct, and it is not the size of an effect. It is simply a measure of how surprising your data would be if there were no real effect at all. A small p-value means your result would be unlikely under the null hypothesis, which is why researchers treat it as evidence against that hypothesis.
This P-Value Calculator converts a test statistic into a p-value for the four distributions you meet most often in hypothesis testing: the standard normal (Z), Student’s t, chi-square, and F. You supply the statistic, the degrees of freedom where they apply, and whether your test is one-tailed or two-tailed. The calculator returns the exact p-value and compares it against your chosen significance level so you can see the decision at a glance.
To use it, first pick the test that matches your analysis. Choose Z when you are working with a known population standard deviation or a large sample, and t when you are estimating the standard deviation from a smaller sample. Use chi-square for goodness-of-fit and tests of independence in contingency tables, and F when you are comparing variances or reading the output of an ANOVA. Enter your test statistic, then set the degrees of freedom. For a t-test and a chi-square test you need a single df value; for an F-test you need both the numerator and denominator degrees of freedom from your model.
The choice between a one-tailed and a two-tailed test matters and should be made before you see your data. A two-tailed test asks whether the effect differs from zero in either direction and is the safer default for most research. A one-tailed test concentrates all of your significance level in a single direction and should only be used when your hypothesis genuinely predicts the direction of the effect in advance. Chi-square and F tests are inherently one-sided in the upper tail, so the calculator reports the upper-tail probability for those automatically.
Once you have a p-value, compare it to your significance level, usually denoted alpha. A common threshold is 0.05, though fields vary and some disciplines use 0.01 or stricter. If the p-value is below alpha, the result is described as statistically significant and you reject the null hypothesis. If it is at or above alpha, you fail to reject the null hypothesis, which is not the same as proving the null is true. The calculator shows this comparison directly and explains the decision rule with your own numbers.
It helps to remember what a p-value cannot do. It cannot confirm that an effect is large or important, because even a tiny, meaningless difference can produce a small p-value in a large enough sample. It cannot rescue a poorly designed study, and it should never be the only number you report. Sound practice is to report the p-value alongside the effect size and a confidence interval, so readers can judge both whether an effect exists and how big it is likely to be.
The mathematics behind the tool uses the cumulative distribution functions for each test. For a Z-test the p-value comes from the standard normal CDF; for a t-test and an F-test it comes from the regularized incomplete beta function; and for a chi-square test it comes from the regularized upper incomplete gamma function. These are the same functions used by professional statistical software, which is why the results here match standard reference tables and statistical packages. You can open the “How this is calculated” section under the tool to see the exact formula with your values inserted.
Whether you are checking a homework answer, writing up a results section, or sanity-checking software output, this P-Value Calculator gives you a fast, accurate p-value and a plain-language interpretation so you can move from a raw test statistic to a defensible conclusion.
