Enter a z, t, chi-square, or F statistic with its degrees of freedom and read the exact tail probability, not a number rounded off a printed table that stops at df 30 and alpha 0.05.
A p-value only means what it claims to mean when it comes from the right curve.
Feed a chi-square statistic through a routine built for the bell curve and the number that comes back is not a rounding error. It answers a different question than the one you asked. Each row below produces its statistic from a different piece of arithmetic, and the panel above needs to know which one made yours.
| Distribution | Built from | Typical test | Tails |
|---|---|---|---|
| Z | (estimate minus hypothesized value) divided by a known standard error | One proportion, a large-sample mean, two proportions compared | Two, left, or right |
| T | Same shape as Z, standard error estimated from the sample itself | One-sample mean, paired differences, two independent means | Two, left, or right |
| Chi-square | Sum of (observed minus expected) squared, divided by expected | Independence between two categorical variables, goodness of fit | Upper only |
| F | One variance or mean square divided by another | ANOVA across three or more groups, regression comparisons | Upper only |
Pick the row that matches how your software produced the number, not the test you remember best from a course.
Two versions of a marketing email went to 150,000 recipients each. The first opened at 20.0 percent, the second at 20.4 percent. Run the two-proportion z-test on that gap and the statistic comes out at 2.73, two-tailed p = 0.0063, comfortably under any threshold in the table above.
Nobody would rebuild a template over four tenths of a percentage point.
A p-value answers one question: how surprising is data at least this extreme, assuming the null hypothesis is exactly true. It carries no opinion on whether four tenths of a point pays for the redesign, and it says nothing about the odds that the null hypothesis itself is correct. Both of those questions need the effect size and a business case sitting next to the number, not folded inside it.
The reverse mistake happens just as often. A pilot on 24 patients can miss a real, useful effect and return p = 0.31 purely because the sample was too small to see it. A p-value above the threshold is not proof that nothing is happening. It can just as easily be a sample too small to notice.
None of the four numbers above come from a lookup table. Each distribution has a cumulative distribution function, a closed piece of mathematics that returns the exact probability of landing at or beyond a given value, and this calculator evaluates it directly for whatever statistic and degrees of freedom you enter.
P = 2 × (1 − Φ(|z|)) for a two-tailed reading, where Φ is built from the Gauss error function.Ix(df/2, 1/2), solved with a continued fraction that reaches machine precision in under twenty terms.P(df/2, x/2), switching between a series and a continued fraction depending on how far x sits from df.Ix(df1/2, df2/2), with x rescaled from the F statistic and both degrees of freedom.The payoff of solving these directly instead of interpolating a printed table is precision at any degrees of freedom. 37, 214, or 1,860 all return an answer without rounding to the nearest row a textbook happened to print.
Every one of those functions runs client-side, inside the script attached to this page.
A dashboard built from twenty independent metrics at a 0.05 threshold does not carry a 5 percent false-positive rate. It carries something closer to 64 percent, the chance that at least one metric clears the bar by accident alone. Panels built from dozens of KPIs throw false alarms on a schedule, not as a rare event.
None of that arithmetic lives on this page. Build the statistic on the t-test calculator or the chi-square calculator first, then bring the result here to read the exact tail probability. Setting the threshold and the minimum sample before a single row gets collected is what the sample size calculator is for.
Where the tail choice, the degrees of freedom, and the threshold come from.
Nothing in the mathematics draws that line. 0.05 is common because a generation of journals adopted it, not because it separates real effects from noise. Fields that test many hypotheses at once, genome-wide studies among them, run thresholds nearer 0.00000005. Pick a threshold before looking at the data, and this calculator honors whatever alpha you enter.
Both statistics get squared or summed before you ever see them, so they can only come out positive, and a larger value always means more disagreement with the null. There is no direction left to test against, only a size.
Yes. Left-tailed and right-tailed read the sign directly, a right-tailed test on a negative t returns a p-value close to 1, and two-tailed folds the sign away by testing the absolute value. Type the number exactly as your software printed it, minus sign included.
n1 + n2 minus 2 when the variances were pooled, or the Welch-Satterthwaite value your software already printed when they were not. The two formulas can land several degrees of freedom apart on uneven sample sizes, and using the wrong one shifts the resulting p-value more than most people expect.
Not fully. The chi-square approximation weakens once any expected cell count drops under 5. Below that line, Fisher's exact test replaces it, and this calculator does not compute that separately.
No. It means the data would be rarer under the null hypothesis, not that the underlying effect runs larger. A tiny, unremarkable difference measured on a huge sample produces a tiny p-value just as reliably as a large effect does. Sample size drives the number as much as the effect itself.
No. Every calculation runs in your browser, and nothing is logged, stored, or uploaded.