Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

P-value calculator

Turn a test statistic into a p-value for a z, t, chi-square or F test, and compare it with your significance level.

Private: calculated on your device. Nothing you type is sent anywhere.

Next: Report the effect size too: the confidence interval calculator shows the plausible range. Planning the next study? Use the sample size calculator.

How the p-value is calculated

The p-value is the probability, assuming the null hypothesis H₀ is true, of getting a test statistic at least as extreme as yours. "Extreme" depends on the tail you choose:

Left-tailed: p = P(T ≤ t)
Right-tailed: p = P(T ≥ t)
Two-tailed (z, t): p = 2 × P(T ≥ |t|)
Two-tailed (χ², F): p = 2 × min(P(T ≤ t), P(T ≥ t))

The areas come from the exact distribution functions: the normal curve via the error function, t and F via the regularized incomplete beta function, and chi-square via the regularized incomplete gamma function. Each is computed with series and continued fractions to about 9 or more significant digits, so you don't need a printed table or to round df to a table row.

Worked examples

  • z = 1.96, two-tailed: p = 2 × 0.025 = 0.05 (0.04999579 exactly), right on the usual cutoff.
  • t = 2.1 with 15 df, two-tailed: p = 0.0531. That's just above 0.05, so you fail to reject H₀ at α = 0.05, though it's close.
  • χ² = 10 with 4 df (a goodness-of-fit or independence test, which is right-tailed): p = 0.0404, so reject H₀ at α = 0.05.
  • F = 4.26 with 2 and 9 df (one-way ANOVA, right-tailed): p = 0.0499.

Which tail should I use?

Use two-tailed when the alternative hypothesis is "not equal" (≠). Use left- or right-tailed only when you decided before seeing the data that only one direction matters. Chi-square tests of fit and independence, and ANOVA F tests, are right-tailed. Choosing a tail after looking at the data makes the p-value misleading.

What a p-value does and doesn't mean

The American Statistical Association's 2016 statement on p-values sets out these principles:

  • A p-value shows how incompatible the data are with a specified model, such as the null hypothesis.
  • It is not the probability that the null hypothesis is true, or that the result happened by chance alone.
  • Conclusions shouldn't rest only on whether p crosses a threshold like 0.05. A p of 0.049 and one of 0.051 carry almost the same evidence.
  • A p-value doesn't measure the size or importance of an effect. With a huge sample, a trivial difference can be "significant". Report an effect size and a confidence interval too.
  • By itself, a p-value isn't a good measure of evidence for a model or hypothesis.

Limitations

  • The p-value is only valid if the test's assumptions hold, such as independent observations and, for t and F tests, roughly normal data.
  • Running many tests and reporting only the significant ones inflates false positives. Adjust α (for example with a Bonferroni correction) when testing many hypotheses.
  • Degrees of freedom can be fractional (as in Welch's t-test) and go up to 1,000,000.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • z = 1.96, two-tailed: p = 0.04999579 ✓
  • t = 2.1, df = 15, two-tailed: p = 0.053055256, fail to reject ✓
  • t = −2.5, df = 10, left-tailed: p = 0.015723422 ✓
  • χ² = 10, df = 4, right-tailed: p = 0.040427682 ✓
  • χ² = 3.84, df = 1, right-tailed: p = 0.050043521 ✓
  • F = 4.26, df = 2 and 9, right-tailed: p = 0.04991003 ✓
  • F = 0.3, df = 5 and 10, two-tailed: p = 0.19608404 ✓
  • t = 2.1, df = 15 at α = 0.05: fail to reject H₀ ✓
  • A negative chi-square statistic is rejected ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

What does a p-value of 0.05 mean?

If the null hypothesis were true, a result at least this extreme would turn up about 5% of the time. It doesn't mean there's a 5% chance the null hypothesis is true.

Is a smaller p-value better?

A smaller p-value means the data are less compatible with the null hypothesis. It doesn't mean the effect is larger or more important.

When do I reject the null hypothesis?

In the standard approach, reject H₀ when p ≤ α, the significance level you chose before the test (often 0.05). Otherwise you fail to reject it, which isn't the same as proving it true.

How do I get a p-value from a t-score?

Choose t, enter the t statistic and its degrees of freedom (n − 1 for a one-sample test), and pick the tail that matches your alternative hypothesis.

Why is the two-tailed p-value double the one-tailed one?

A two-tailed test counts extreme results in both directions, so for symmetric distributions like z and t it adds the two equal tail areas.

Related calculators