🧮
🧮 Math & statistics

P-Value Calculator (from a z, t, chi-square or F statistic)

Results update as you type.

Your numbers

Understanding the p-value calculator — concept and principle

This calculator converts a test statistic (z, t, chi-square or F) into a p-value for a left-, right- or two-tailed test, and tells you whether the result is significant at α = 0.05 and α = 0.01. Use it when software gave you only the statistic, when checking a textbook problem, or when you computed a statistic by hand.

p-value as tail areasTwo tails beyond z = ±2.1−2.12.10.017860.01786Two-tailed p-value0.03573< 0.05 reject H₀ · > 0.01 keep H₀
Both tails beyond ±2.1 together hold about 3.6% of the normal curve.

How it is calculated

The areas come from the cumulative distribution function of the chosen distribution: the standard normal; Student's t with df degrees of freedom; chi-square with df; or F with numerator and denominator df. These are computed with the regularized incomplete beta and gamma functions. Chi-square and F statistics cannot be negative.

The principle

A hypothesis test starts by assuming the null hypothesis H₀ is true. Under H₀ the test statistic follows a known distribution. The p-value asks: if H₀ were true, how often would chance alone produce a statistic at least this extreme? A small p-value means the observed data would be unusual under H₀, which counts as evidence against it. The tail depends on the alternative hypothesis: a two-tailed test counts extremes in both directions, so the one-tail area is doubled.

Worked example

Default inputs: standard normal (z), statistic 2.1, two-tailed.

  1. Area to the left of z = 2.1: Φ(2.1) ≈ 0.9821.
  2. Area to the right: 1 − 0.9821 ≈ 0.01786.
  3. Two-tailed p = 2 × 0.01786 = 0.03573.
  4. 0.03573 < 0.05, so reject H₀ at α = 0.05; 0.03573 > 0.01, so do not reject at α = 0.01.

(The degrees of freedom are ignored for a z statistic.)

How p-value changes with Test statistic valueHow p-value changes with Test statistic…00.20.40.60.5251.051.572.12.623.154.2Example: 0.03573Test statistic value
Each point is the calculator re-run with only “Test statistic value” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Test statistic valuep-value
0.5250.5996
1.050.2937
1.570.1153
2.10.03573
2.620.008665
3.150.001633
4.20.00002669

How to read the result

Where does your result fall?Not sig. at 0.050.010.05Sig. at α = 0.01Sig. at α = 0.05Not sig. at 0.05Your result: 0.03573 · Sig. at α = 0.05Reference: Conventional significance levels α = 0.05 and 0.01 (OpenSta
Where does your result fall?

Compare p with the significance level α you chose before the test. p < α: the result is statistically significant and you reject H₀. p ≥ α: you do not reject H₀, which is not the same as proving it true. A p-value is not the probability that H₀ is true, and it says nothing about how large or important the effect is. Report the effect size and a confidence interval alongside it.

Common mistakes

Keep in mind: A p-value is only valid if the test's assumptions hold (independence, distribution shape, sample design). Running many tests and reporting only the significant ones inflates false positives.

Frequently asked questions

What does p = 0.05 mean?

If H₀ were true, a result at least this extreme would occur about 5% of the time by chance.

Is a smaller p-value a bigger effect?

Not necessarily. With a large sample, a tiny effect can have a very small p-value.

When should I use t instead of z?

Use t when the population standard deviation is unknown and estimated from the sample, which is the usual case.

Can a p-value be exactly 0?

Not in theory, but it can be smaller than the displayed precision; report it as, for example, p < 0.0001.

Sources: OpenStax, Introductory Statistics 2e, §9.3–9.4 · NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.7

Checked 9 Nov 2026. OpenStax, Introductory Statistics 2e, §9.3 Probability Distribution Needed for Hypothesis Testing and §9.4 Rare Events, the Sample, and the Decision and Conclusion; NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.6.7 Tables for Probability Distributions.

🧮 All math & statistics tools →🌍 Calculators by country →