P-Value and Critical Value Calculators
Free p-value and critical value calculator: turn a z, t, chi-square, F or r statistic into a p-value, find the critical value for any α, and see the decision.
Find a p-value and critical value nowUpdated · Formulas and conventions follow our methodology
In short
A p-value is the probability, if the null hypothesis is true, of a test statistic at least as extreme as yours. A critical value is the cut-off the statistic must pass to be significant at level α. Reject H₀ when p ≤ α, or equivalently when the statistic passes the critical value. The calculator below gives both for z, t, χ², F and r statistics.
P-value and critical value calculator
Choose the type of test statistic (z, t, χ², F or r), enter its value and degrees of freedom, and pick the tail and α. You get the p-value, the critical value, the reject or fail-to-reject decision and the shaded curve. For a single distribution, or for a critical value with no statistic yet, use a calculator from the list below.
Results
Significant at α = 0.05: reject H₀
p = 0.0251 ≤ 0.05. A result this extreme would be unusual if H₀ were true.
- Null distribution
- Z ~ N(0, 1)
- Left tail, P(Z ≤ z)
- 0.9875
- Right tail, P(Z ≥ z)
- 0.0125
- Two-tailed, 2 · P(Z ≥ |z|)
- 0.0251
Interpretation: Assuming H₀ is true, a z statistic at least as extreme as the one observed would occur about once in every 40 repetitions. That is moderate evidence against H₀.
Decision at common significance levels (two-tailed)
p = 0.0251. “Yes” means p ≤ α, which is the same as the statistic landing in the rejection region.
Step-by-step solution
- 1
Identify the null distribution
When H₀ is true, the z statistic follows the standard normal distribution.
Z ~ N(0, 1) - 2
Write the p-value as a probability
The curve is symmetric, so the two-tailed p-value is twice the area beyond |statistic|.
p = 2 × P(Z ≥ |2.24|) - 3
Find the tail areas and the p-value
Each area comes from the cumulative distribution function (CDF) of the null distribution.
P(Z ≥ 2.24) = 0.012545p = 2 × 0.012545 = 0.0251 - 4
Decision: reject H₀
p = 0.0251 ≤ α = 0.05Reject H₀ if |z| ≥ 1.96; observed z = 2.24
All 13 p-value and critical value calculators
P-values from a test statistic
You have z, t, χ², F or r and want the probability under the null hypothesis.
- P-Value CalculatorConvert any z, t, χ², F or r statistic into a p-value for any tail.
- P-Value from Z CalculatorLeft, right and two-tailed p-values for a z-score.
- P-Value from t Calculatorp-value for a t statistic and its degrees of freedom.
- P-Value from Chi-Square CalculatorRight-tail (or left/two-tail) p-value for a χ² statistic.
- P-Value from F Calculatorp-value for an F statistic with numerator and denominator df.
- Pearson r to P-Value CalculatorTurn a correlation coefficient and sample size into a p-value.
Critical values for any α and tail
The cut-off a statistic must pass, such as 1.96 for a two-tailed z-test at α = 0.05.
- Critical Value CalculatorOne tool for z, t, χ², F and r critical values at any α and tail.
- Z Critical Value Calculatorz* for any significance level or confidence level, one- or two-tailed.
- T Critical Value Calculatort* for any degrees of freedom and α, beyond what printed tables show.
- Chi-Square Critical Value Calculatorχ² critical values for right, left and two-tailed tests.
- F Critical Value CalculatorF critical values for any df₁, df₂ and α.
- Pearson r Critical Value CalculatorThe smallest |r| that is significant for a given n and α.
Degrees of freedom
The df that t, χ², F and r p-values and critical values depend on.
P-values, critical values and the decision
Use these calculators when you already have a test statistic, from software output, a published paper or a hand calculation, and need its p-value, or when you need a critical value that a printed table does not list. They give exact values for any degrees of freedom and any α, so you are not limited to the rows of the z table, t-table, chi-square table, F-table or r critical value table. To run the whole hypothesis test from raw data instead, start from the Hypothesis Testing Calculators calculators.
The p-value approach and the critical-value approach always reach the same decision about the null hypothesis: reject H₀ when p ≤ α, which happens exactly when the statistic falls in the rejection region beyond the critical value. The tail matters. For the symmetric z and t distributions, a two-tailed p-value is twice the one-tailed value, while χ² and F tests are normally right-tailed. Very small p-values are shown in scientific notation rather than rounded to zero.
A p-value is not the probability that H₀ is true, and p ≤ 0.05 does not show that an effect is large or important. The American Statistical Association’s statement on p-values recommends reporting the exact p-value with an effect size or confidence interval rather than only “significant” or “not significant”. For a plain-language explanation, read What Is a P-Value? Meaning, Calculation and Common Mistakes.
How to find a p-value and a critical value
- Identify the test statistic and its distribution. z-tests give a z statistic, t-tests a t with df, chi-square tests a χ² with df, ANOVA and regression an F with two df, and a correlation an r with n − 2 df.
- Fix the tail and α before looking at the data. H₁ with ≠ is two-tailed; H₁ with < or > is one-tailed. α = 0.05 is the usual default.
- Calculate the p-value as the area beyond the statistic in the direction of H₁. For a two-tailed z or t test,
p = 2 × P(T ≥ |t|); for χ² and F, take the right-tail area. - Find the critical value with the inverse distribution: the point that leaves α in the tail (α/2 in each tail for a two-tailed test). For a two-tailed z-test at α = 0.05 it is ±1.960.
- Decide. Reject H₀ if p ≤ α, or equivalently if the statistic is beyond the critical value; otherwise fail to reject H₀. Both checks must agree, which is a quick test of your arithmetic.
P-value and critical value worked examples
Each example runs in the calculator above with the same inputs, and each shows the p-value approach and the critical-value approach side by side.
Two-tailed z-test: z = 2.24 at α = 0.05
Problem. A one-sample z-test gives z = 2.24 with H₁: μ ≠ μ₀. What is the p-value, and is the result significant at α = 0.05?
- 01Take the area beyond |z| in one tail and double it.P(Z ≥ 2.24) = 1 − Φ(2.24) = 1 − 0.98745 = 0.01255p = 2 × 0.01255 = 0.0251
- 02Find the two-tailed critical value, which leaves 0.025 in each tail.z* = Φ⁻¹(0.975) = 1.960
Answer. p = 0.0251 ≤ 0.05 and |2.24| > 1.960, so both approaches reject H₀.
t-test with 12 degrees of freedom: t = 2.6
Problem. A one-sample t-test on n = 13 observations gives t = 2.6, two-tailed, α = 0.05. Find the p-value and the critical value.
- 01Degrees of freedom for a one-sample t-test.df = n − 1 = 12
- 02Double the right-tail area of the t(12) distribution.p = 2 × P(T₁₂ ≥ 2.6) = 0.0232
- 03The critical value is wider than z’s 1.960 because df is small.t* = t₀.₉₇₅,₁₂ = 2.179
Answer. p = 0.0232 and 2.6 > 2.179, so reject H₀ at α = 0.05.
Right-tailed chi-square test: χ² = 9.21, df = 3
Problem. A chi-square goodness-of-fit test with 4 categories gives χ² = 9.21. Is the fit rejected at α = 0.05?
- 01Degrees of freedom are categories − 1.df = 4 − 1 = 3
- 02Chi-square tests are right-tailed, so take the area above the statistic.p = P(χ²₃ ≥ 9.21) = 0.0266
- 03The critical value leaves α = 0.05 in the right tail.χ²* = χ²₀.₉₅,₃ = 7.815
Answer. p = 0.0266 and 9.21 > 7.815, so reject H₀: the observed counts do not fit the expected proportions.
Which p-value or critical value calculator should I use?
| If you want to… | Use |
|---|---|
| If you have any test statistic and want its p-value and critical value in one place | |
| If you want a z, t, χ², F or r critical value for any α and tail from one tool | |
| If you have a z-score or z statistic | |
| If you have a t statistic and its degrees of freedom | |
| If you have a chi-square statistic | |
| If you have an F statistic from ANOVA, regression or a variance test | |
| If you have a correlation coefficient and a sample size | |
| If you need the critical value for a confidence level, such as 1.96 for 95% | |
| If you are not sure how many degrees of freedom your test has |
How these p-values and critical values are calculated
Every p-value and critical value on this hub is computed from the exact cumulative distribution function and its inverse, not read from a table, and the engine is tested against reference values from SciPy; see the methodology. Printed critical values match the NIST/SEMATECH e-Handbook tables for the t distribution and the chi-square distribution.
P-value conversions and common critical values
| Quantity | Formula or value | Notes |
|---|---|---|
| Two-tailed p from z | p = 2[1 − Φ(|z|)] | Φ is the standard normal CDF |
| Two-tailed p from t | p = 2 · P(T ≥ |t|), T ~ t(df) | df = n − 1 for a one-sample test |
| Right-tail p from χ² | p = P(X ≥ χ²), X ~ χ²(df) | Goodness-of-fit and independence tests |
| Right-tail p from F | p = P(X ≥ F), X ~ F(df₁, df₂) | ANOVA and regression F-tests |
| r to t | t = r√(n − 2) / √(1 − r²) | df = n − 2 |
| Two-tailed z critical value | z* = Φ⁻¹(1 − α/2) | 1.645, 1.960, 2.576 for α = 0.10, 0.05, 0.01 |
| One-tailed z critical value | z* = Φ⁻¹(1 − α) | 1.282, 1.645, 2.326 for α = 0.10, 0.05, 0.01 |
| Two-tailed t critical values (α = 0.05) | 2.228, 2.042, 1.984 | df = 10, 30, 100; approaches 1.960 as df grows |
| Right-tail χ² critical values (α = 0.05) | 3.841, 5.991, 7.815, 9.488 | df = 1, 2, 3, 4 |
| Welch degrees of freedom | (s₁²/n₁ + s₂²/n₂)² / [(s₁²/n₁)²/(n₁ − 1) + (s₂²/n₂)²/(n₂ − 1)] | Usually not a whole number |
P-value and critical value terms
| Term | Meaning |
|---|---|
| Null hypothesis, H₀ | The statement of no effect or no difference that the test assumes, such as μ = 50. |
| Alternative hypothesis, H₁ | What you conclude if H₀ is rejected. ≠ gives a two-tailed test; < or > gives a one-tailed test. |
| Test statistic | A number such as z, t, χ², F or r that measures how far the sample is from what H₀ predicts. |
| p-value | The probability, if H₀ is true, of a test statistic at least as extreme as the one observed. |
| Significance level, α | The largest false-positive (Type I error) rate you accept, fixed before the test; usually 0.05. |
| Critical value | The value of the test statistic that leaves exactly α in the rejection region. |
| Rejection region | The values of the statistic beyond the critical value. A statistic inside it leads to rejecting H₀. |
| One-tailed and two-tailed | A one-tailed test puts all of α in one tail; a two-tailed test splits it, α/2 in each tail. |
| Degrees of freedom | The number that sets the exact shape of the t, χ² and F distributions, usually based on sample size. |
| Confidence level | 1 − α. A 95% confidence interval uses the same critical value as a two-tailed test at α = 0.05. |
Frequently asked questions
What is the difference between a p-value and a critical value?
How do I calculate a p-value?
How do I calculate a critical value?
Is p = 0.05 a critical value?
What is the critical value for 95% confidence?
Why is my p-value shown in scientific notation?
How do I convert a one-tailed p-value to a two-tailed p-value?
How do I find the degrees of freedom for my test?
Why use a calculator instead of a printed statistical table?
Looking for something else? See all calculators or search the site.