P-Value Calculator

Find the p-value of a z, t, chi-square or F test statistic, one- or two-sided, and whether it is significant at your α. Or find the critical value for α, with the rejection region shaded on the curve.

Calculator Numbers & Math Updated Oct 3, 2026
How to Use
  1. Choose statistic → p-value, or α → critical value.
  2. Pick the distribution (z, t, χ² or F) and enter its degrees of freedom.
  3. Choose the tail: two-sided, left or right (χ² and F tests are right-tailed).
  4. Type the test statistic and the significance level α (often 0.05).
  5. Read the p-value and the decision; the curve shades the p-value area and marks the critical values.
Input
Presets
Distribution
p-value
—
Decision
—
Critical value
—
Statistic
—

Worked Example

A one-sample t test. Eleven measurements give t = 2.5 with 10 degrees of freedom. The two-sided p-value is 2 × P(t > 2.5) = 2 × 0.0157 = 0.0314, which is below 0.05, so the difference is significant at the 5% level. The critical value for comparison is ±2.228.

A chi-square test. A 4-category goodness-of-fit test gives χ² = 7.81 with 3 df. P(χ² > 7.81) = 0.0501: a whisker above 0.05, so not quite significant. The critical value is 7.815.

The common mistake: halving or doubling twice. Software that reports a two-sided p-value of 0.0314 has already doubled the tail. Doubling again (0.0628) or halving it for a one-sided claim you didn’t plan both give wrong answers.

Show Work

Enter a statistic to see the working.

Formulas

Two-sided
p = 2 · min(F(x), 1 − F(x))
Right / left tail
p = 1 − F(x) / p = F(x)
t distribution
F(t) from the incomplete beta I_{ν/(ν+t²)}(ν/2, ½)
χ² distribution
F(x) = P(k/2, x/2)
regularised incomplete gamma
Decision
reject H₀ if p < α

Fisher, Student and Pearson

Karl Pearson introduced the χ² test in 1900. William Sealy Gosset, a chemist at the Guinness brewery, published the t distribution in 1908 under the pen name “Student”, because Guinness didn’t let staff publish, to test small samples of barley. Ronald Fisher popularised p-values and the 0.05 threshold in Statistical Methods for Research Workers (1925), and named the F distribution’s test after himself only indirectly: Snedecor called it F in his honour.

In 2016 the American Statistical Association issued a statement warning against treating p < 0.05 as a bright line, recommending effect sizes and confidence intervals alongside.

About This Calculator

This calculator gives p-values and critical values for the z, t, χ² and F distributions, one- or two-sided, from exact special-function formulas rather than printed tables, so values far in the tail (p = 10⁻⁸ and smaller) are accurate. It states the decision at your α and draws the distribution with the p-value area and critical region.

Everything runs in your browser; nothing is sent anywhere.

Related calculators: Z-Score Calculator, Confidence Interval Calculator, and Sample Size Calculator.

Frequently Asked Questions

What is a p-value?

The probability of getting a result at least as extreme as yours if the null hypothesis were true. A small p-value means the data would be surprising under H₀. It is not the probability that H₀ is true, and a large p-value doesn’t prove H₀; it only means the data don’t contradict it.

One-sided or two-sided?

Two-sided unless you decided in advance that only one direction matters. A two-sided test counts extreme results in both tails, so its p-value is twice the one-sided value: z = 1.96 gives 0.025 one-sided and 0.05 two-sided. Choosing one side after seeing the data halves the p-value dishonestly.

What does significant at 0.05 mean?

That p < 0.05, so you reject H₀ at the 5% level. Over many tests where H₀ is really true, you would wrongly reject it about 5% of the time. The 0.05 threshold is a convention from Ronald Fisher; fields such as particle physics use far stricter ones (5σ, about 3 × 10⁻⁷).

Which distribution should I use?

z for large samples or a known population SD; t for means with an estimated SD (df = n − 1 for one sample); χ² for goodness-of-fit and contingency tables (df = (rows − 1)(columns − 1)); F for comparing variances and in ANOVA (df between and within groups).

What is a critical value?

The statistic at which a test becomes significant. For a two-sided z test at α = 0.05 it is ±1.96; for t with 20 df it is ±2.086. If your statistic is beyond the critical value, the p-value is below α; the two methods always agree.

How do I use the P-Value Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

t tests

t = 2.5, df 10, two-sided: p = 0.031, significant at 0.05.

A/B tests

z = 2.33 one-sided: p = 0.0099.

Chi-square

χ² = 7.81 with 3 df gives p = 0.0501, just short of 0.05.

ANOVA

F = 4.10 with (2, 10) df gives p = 0.0501; the critical F is 4.103.

Critical values

Two-sided t at α 0.05 with 20 df: ±2.086.

Last updated: