P-Value Calculator

In short: a p-value is the probability of seeing a result at least this extreme if nothing were really going on. Enter the statistic your test produced — z, t, chi-square or F — and this page returns the p-value and the verdict at the usual 0.05 and 0.01 levels. The classic check: z = 1.96 gives p = 0.0500 two-tailed, the boundary generations of students have memorised.

What a p-value actually says

A p-value answers a deliberately narrow question: assuming the null hypothesis is true — no effect, no difference, no association — how often would random variation alone produce a test statistic at least as extreme as the one you observed? A small p-value says the data would be surprising if nothing were going on, which is evidence (not proof) that something is. A large p-value says the data look ordinary under the null; it does not prove the null true, only that this test, with this sample size, could not distinguish the result from noise. The calculator returns the number; the interpretation above it is yours, and the FAQ below covers the misreadings that matter.

The four distributions on this page cover the standard tests. The z statistic comes from large-sample tests on means and proportions. The t statistic is its small-sample cousin, with degrees of freedom set by the sample size, and heavier tails that forgive less. Chi-square handles counts: goodness-of-fit and contingency tables, where the statistic sums (observed - expected) squared over expected across the cells. F compares variances, and is the statistic behind ANOVA and regression significance. Chi-square and F are one-sided by construction — only large values count against the null — while z and t can be one- or two-tailed depending on whether your hypothesis named a direction before the data arrived.

One tail or two?

A two-tailed test counts extremes in both directions: a z of -1.96 is as surprising as +1.96, so the p-value doubles the single tail. A one-tailed test counts only the direction your hypothesis predicted in advance. The choice must be made before looking at the results — picking the one-tailed version afterwards because it halves the p-value is one of the oldest ways to manufacture significance, and reviewers know it. If you did not predict a direction, use two tails. The difference is not small: z = 1.65 is significant one-tailed (p = 0.0495) and not two-tailed (p = 0.0989), which is exactly why the rule exists.

A word on the thresholds themselves. The 0.05 line is a convention from R. A. Fisher's 1925 textbook, not a law of nature, and a p of 0.049 is not meaningfully stronger evidence than 0.051. Report the actual p-value, as this calculator gives it, rather than just "significant" or "not significant", and remember that statistical significance is not practical importance: with a million observations, a trivially small effect is highly significant, and with twelve observations a large real effect may not be. Effect size and a confidence interval tell the rest of the story — the companion calculator on this site computes the interval.

A worked example

A class of students scores a mean of 74 on a test where the national mean is 70 with a standard error of 2, giving z = (74 - 70) / 2 = 2.0. Two-tailed, p = 0.0455 — significant at the 0.05 level, so the class result would be unusual if the class were truly average. The same data as a t statistic with 9 degrees of freedom gives p = 0.0766: not significant, because the t distribution's heavier tails honestly price the small sample. And the reference points this calculator was verified against: chi-square 3.841 with 1 degree of freedom returns exactly 0.05; chi-square 16.919 with 9 df returns 0.05; F = 3.098 with (3, 20) df returns 0.05. If your statistic lands near a textbook critical value, the p-value should land near the matching level — a quick way to sanity-check any result.

Frequently asked questions

What does a p-value of 0.05 mean?

It means that if the null hypothesis were true, results at least as extreme as yours would occur 5 percent of the time by chance alone. It does not mean there is a 95 percent chance your effect is real, and it does not mean the null hypothesis has a 5 percent chance of being true. The p-value is a probability about the data given the null, not a probability about the hypothesis given the data — the most common misreading in all of applied statistics.

Why is my p-value different one-tailed and two-tailed?

Because the two tests count different events. A two-tailed test counts extremes in both directions, so its p-value is exactly double the one-tailed value for a symmetric distribution like z or t. Use one tail only when your hypothesis predicted the direction before the data were collected; otherwise the honest figure is the two-tailed one. Chi-square and F tests are always effectively one-tailed: only large values of those statistics argue against the null.

What degrees of freedom do I use?

For a one-sample or paired t test, df = n - 1. For a two-sample t test with pooled variance, df = n1 + n2 - 2. For a chi-square contingency table, df = (rows - 1) x (columns - 1); for goodness of fit, df = categories - 1 (minus any estimated parameters). For an F test you need both: numerator df from the number of groups or model terms, denominator df from the residual. Your test output almost always reports the df next to the statistic.

Can a p-value be exactly 0?

No — it can only be extremely small. A p-value is a probability over a continuous distribution, so it approaches zero as the statistic grows but never reaches it. Software sometimes prints 0.000 or p = 0 through rounding or floating-point limits; report such results as p < 0.001. This calculator does the same: anything below 0.0001 is shown in scientific form rather than as a misleading zero.

Is p = 0.06 proof there is no effect?

No. It is a failure to reach an arbitrary line, which can mean no effect, or a real effect with too little data to separate it from noise. The honest reading combines the p-value with the effect size and its confidence interval: an interval that runs from slightly negative to usefully positive says "probably something, get more data"; an interval tightly hugging zero says "nothing here worth chasing". Absence of evidence is not evidence of absence.

Related tools

Distribution functions checked on 24 November 2026 against textbook critical values. Everything is calculated in your browser — nothing you type is sent anywhere.