Critical Value Calculator

Compute critical values for hypothesis tests across z, t, chi-square and F distributions.

Science 4 distributions One or two tails
Rate this calculator · 3.0 (3)

Critical value for z, t, chi-square, F

Hypothesis-test thresholds at any alpha

Instructions — Critical Value Calculator

1

Pick the distribution

Z for large-sample normal tests with known variance, t for small-sample means (Student/Gosset 1908), chi-square for variance and contingency tests (Pearson 1900), F for ANOVA and variance ratios (Fisher 1924).

2

Choose the tail and alpha

One-tailed for directional hypotheses, two-tailed for non-directional. Alpha (Type I error rate) is conventionally 0.05; medical and physics work often uses 0.01 or smaller. Chi-square and F are upper-tail only.

3

Enter degrees of freedom

Required for t (df = n - 1), chi-square (df depends on cells or estimated parameters), and F (df1 numerator, df2 denominator). Z needs no df because the standard normal has none.

Formulas

Z critical value
$$ z_{\alpha/2} = \Phi^{-1}\!\left(1 - \frac{\alpha}{2}\right) $$
Phi is the standard normal CDF. Two-tailed alpha = 0.05 gives 1.960; one-tailed alpha = 0.05 gives 1.645.
Student t critical value
$$ P(|T| > t_{\alpha/2, df}) = \alpha $$
Heavier tails than z for small df. As df grows the t distribution converges to z. Introduced by W. S. Gosset (Student) at Guinness in 1908.
Chi-square critical value
$$ P(\chi^2 > \chi^2_{\alpha, df}) = \alpha $$
Right-tailed only. Used for goodness-of-fit and contingency table tests (Pearson 1900).
F critical value
$$ P(F > F_{\alpha, df_1, df_2}) = \alpha $$
Right-tailed only. Ratio of two independent chi-square variables, normalised by their df (Fisher 1924, Snedecor 1934).

Reference

Two-tailed z critical values
Alphaz critical
0.101.6449
0.051.9600
0.012.5758
0.0013.2905
Student t critical values, two-tailed alpha = 0.05
dft critical
52.5706
102.2281
202.0860
302.0423
602.0003
1201.9799
infinity1.9600

Article — Critical Value Calculator

Critical Value Calculator

For a two-tailed z-test at alpha = 0.05, the critical value is plus or minus 1.960. Reject the null hypothesis when the test statistic falls outside that interval. Different distributions and tail choices change the threshold; the calculator above handles z, Student t, chi-square, and F at any alpha.

The concept itself is straightforward, but the choice of distribution, the number of tails, and the degrees of freedom each shift the answer. This page walks through each piece and explains where the numbers come from.

What a critical value is

A critical value is the boundary on the test-statistic axis between the rejection region and the non-rejection region. Pick a significance level alpha (commonly 0.05), and the critical value is the point on the chosen distribution beyond which only alpha of the probability mass lies. If your observed statistic lands beyond that point, reject the null hypothesis. If not, fail to reject.

Critical values are paired with a distribution. The standard normal gives the z critical value, Student t (W. S. Gosset, 1908) gives the t critical value, the chi-square distribution gives the chi-square critical value, and the F distribution (Fisher, 1924; Snedecor, 1934) gives the F critical value.

How the critical value calculator works

Behind every entry is a quantile of a probability distribution. For the normal we use the inverse CDF directly; the calculator implements P. J. Acklam's rational approximation, which is accurate to about one part in a billion. For the t, chi-square, and F distributions we invert the cumulative distribution by bisection on the regularized incomplete beta or gamma function (the algorithms are the ones in Numerical Recipes).

The R language returns the same numbers with qnorm, qt, qchisq, and qf. SciPy users will recognise scipy.stats.norm.ppf and friends. Our outputs agree with both to four to six decimal places, which is well beyond textbook precision.

Did you know

William Sealy Gosset published the t distribution in 1908 under the pen name "Student" because his employer, Guinness Brewery, prohibited staff from publishing trade secrets. The brewery's small sample sizes were the motivating problem.

Critical value: z vs. t

Choose z when the sample is large (often n above 30) and the population standard deviation is known. Choose t when the sample is small or you have to estimate the standard deviation from the sample, which is almost always. The t distribution has heavier tails to absorb the extra uncertainty.

Z
Two-tailed z, alpha 0.05
1.960
large samples, sigma known
t10
Two-tailed t, df=10
2.228
small sample, fatter tails
t30
Two-tailed t, df=30
2.042
approaches z as df grows

As degrees of freedom grow, the t critical value converges to z. At df = 120 the difference is only 0.02. For most modern data sets, both work, but using t is the safer default when sigma is estimated.

Chi-square critical value

The chi-square distribution is the sum of squared standard normal variables. Because squares cannot be negative, the distribution lives on the positive axis and is always right-tailed. The chi-square critical value is the point beyond which the upper alpha of probability lies.

It is the workhorse of goodness-of-fit tests (Karl Pearson, 1900), independence in contingency tables, and tests on variance. Degrees of freedom depend on the test: (rows - 1) x (columns - 1) for a contingency table, k - 1 minus estimated parameters for goodness-of-fit, n - 1 for a variance test.

F critical value and ANOVA

The F distribution is the ratio of two scaled chi-square variables. Like chi-square, F is positive and right-tailed. The F critical value depends on two degrees of freedom: df1 for the numerator (between-group variance) and df2 for the denominator (within-group variance).

The classic use is one-way ANOVA, where you ask whether the means of three or more groups differ. With four groups of 25 subjects each, df1 = 3, df2 = 96, and the F critical value at alpha = 0.05 is roughly 2.70. If the observed F ratio exceeds that, the group means differ at the chosen significance level.

Tip

Decide tails and alpha before seeing the data. Switching from two-tailed to one-tailed (or from 0.05 to 0.10) after looking at the numbers is the classic p-hacking move, and it is exactly what pre-registration and replication efforts are designed to prevent.

Critical value vs. p-value

The two are siblings. A critical value is a fixed threshold on the statistic axis; a p-value is a number computed from the data that says how far into the tail your statistic landed. Reject the null if the test statistic exceeds the critical value, which is equivalent to rejecting if the p-value is below alpha.

Critical-value testing is the historical approach used in statistical tables (the classic Fisher F-tables, the chi-square table, the t-table). P-value testing is more flexible because software can return a continuous probability without you having to look up a threshold. Modern stats classes teach both because each illuminates a different intuition.

  • Two-tailed z, alpha 0.05 = ±1.9600
  • One-tailed z, alpha 0.05 = ±1.6449
  • Two-tailed t, df=20, alpha 0.05 = ±2.0860
  • Chi-square, df=5, alpha 0.05 = 11.0705
  • F, df1=3 df2=30, alpha 0.05 = 2.9223
  • Two-tailed z, alpha 0.01 = ±2.5758

Common critical value mistakes

The most frequent error is using z when t is appropriate. With sigma estimated and a sample size of 15, the z critical value of 1.96 is too small and rejecting at that boundary inflates Type I error. The t critical value of 2.145 (df = 14) is the right threshold.

! Mind the degrees of freedom

Cell sizes below 5 in a contingency table break the chi-square approximation. ANOVA assumes equal variances across groups. Failing those assumptions makes the published critical value inaccurate even if you typed everything correctly. Use Fisher's exact test or Welch's F for those cases.

Pick your distribution
known sigma, big n z
est. sigma, small n t (df = n-1)
variance / fit chi-square
variance ratio / ANOVA F (df1, df2)

FAQ

A critical value is the threshold of the test statistic at which you reject the null hypothesis. If the observed statistic falls beyond the critical value (in the rejection region), you reject H0; otherwise you fail to reject. The threshold is fixed by the chosen alpha level.
For a two-tailed test, plus or minus 1.960. For a one-tailed test, 1.645 (right tail) or -1.645 (left tail). These are standard textbook values rooted in the inverse normal CDF.
The t distribution has heavier tails to compensate for using the sample standard deviation instead of the population value. Student t critical values are always larger than z values at the same alpha and converge to z as degrees of freedom grow. For df = 30, t(0.05, two-tail) is 2.042 vs. z of 1.960.
Choose alpha (typically 0.05) and degrees of freedom (rows - 1) x (cols - 1) for contingency tables or k - 1 - estimated parameters for goodness-of-fit. The chi-square table or this calculator gives the right-tail threshold. For df = 5, alpha = 0.05, the value is 11.0705.
F critical depends on two degrees of freedom: df1 = number of groups minus 1, df2 = total sample size minus number of groups. For a 4-group ANOVA with 25 subjects per group at alpha = 0.05, F critical with df1 = 3 and df2 = 96 is about 2.70.
Use a one-tailed test if your hypothesis predicts a specific direction (the new drug raises blood pressure). Use two-tailed if you only care whether the values differ. The decision must be made before looking at the data; switching afterwards is p-hacking.
The z values use Acklam's inverse normal CDF (relative error of order 1e-9). The t, chi-square and F inverses use the regularized incomplete beta and gamma functions (Numerical Recipes), bisected to about 1e-7. That matches R's qnorm, qt, qchisq, qf to 4 to 6 decimal places.
R. A. Fisher introduced the variance ratio in 1924 and the distribution was tabulated by George Snedecor in 1934 (who named it after Fisher). It is the foundation of ANOVA and the linear model.