Calculators
Home › Learn › How to Calculate Critical Value

How to Calculate Critical Value

The fence your statistic has to cross, worked out by hand instead of read off a table.

Updated 3 December 2026

Quick answer: A critical value is the point on the null distribution where the tail area equals alpha. To calculate one, pick alpha, split it across the tails, count the degrees of freedom, then invert the distribution. Two-tailed at 95%: z is 1.96, t on 24 degrees of freedom is 2.064, and chi-square on 3 degrees of freedom is 7.815. The hand formulas in this guide land within 0.04 of those exact values.
Normal distribution curve with the right tail shaded blue past a dashed line marking the critical value

Two hundredths short

A student in a psychology class tests whether a new study method lifts exam scores. Twenty-five students try it. Their mean score is 72, the old mean is 68, and the sample standard deviation is 10. The standard error is 10 divided by the square root of 25, which is 2, so t equals (72 minus 68) divided by 2, which is 2.00, on 24 degrees of freedom. She opens the t table. The fence at 5%, two-tailed, is 2.064. Her statistic misses it by 0.064. The p-value is 0.0569, just above 0.05. No significance, by a whisker.

She stares at 2.064 and asks the question this guide answers. Where does that number come from? A table is a list of answers, and every answer on it was calculated by someone, from the distribution itself. This guide does the calculating, step by step, for z, t, chi-square and F, so you can work out a critical value yourself instead of trusting a cell in a table.

What calculating a critical value actually means

A critical value is a fence, and alpha decides where the fence stands. Pick alpha first, usually 0.05. The fence is the point on the null distribution where the area in the tail beyond it equals alpha. One-tailed, the whole alpha sits in one tail. Two-tailed, alpha splits in half, 0.025 on each side.

Calculating the fence means solving for that point. In maths terms, you invert the distribution function: you feed in the tail area and get back the point that leaves exactly that much area behind it. Statisticians call that inverse the quantile function. Every table, every spreadsheet function and every calculator on this site does the same inversion. The table hides the work. This guide shows it.

Three inputs decide the answer. The distribution (z, t, chi-square or F). The tail layout (one tail or two, and which alpha). And the degrees of freedom, where the distribution has any. Get one wrong and the fence lands in the wrong place, and a borderline result flips with it.

How to calculate critical value in four steps

Step 1. Pick alpha. Most tests use 0.05. A stricter test uses 0.01. The choice is yours, made before you look at the data.

Step 2. Split alpha across the tails. Two-tailed at 5%: 0.025 in each tail, so you invert at 0.975, the point that leaves 2.5% above it. One-tailed at 5%: the whole 0.05 in one tail, so you invert at 0.95.

Step 3. Count the degrees of freedom. z has none. A t-test on n observations has n minus 1. A chi-square goodness-of-fit test on k categories has k minus 1. An F test has two, one for each sample.

Step 4. Invert. A table gives a printed answer. Software inverts numerically. The sections below show how to calculate critical value by hand, with formulas you can check on a pocket calculator.

How to calculate a z critical value

The normal distribution has no degrees of freedom, so its fences never move. Three are worth knowing by heart. Two-tailed: 1.645 at 90%, 1.96 at 95%, 2.576 at 99%. One-tailed, the same numbers shift down a level: 1.645 is the 95% one-tailed value, and 2.326 is the 99% one-tailed value.

Those numbers are the inverse of the standard normal curve. 1.96 is the point that leaves 2.5% of the area above it, because the 97.5th percentile of the standard normal distribution is 1.959964. Round it to 1.96 and the tail area becomes 0.0250 to four places. That is the whole calculation for z: pick the tail area, read the point that leaves it.

Worked example

A bottling plant fills bottles to a target of 500 ml. Years of records put the population standard deviation at 8 ml, known, not estimated. Sixteen bottles average 503.5 ml. The standard error is 8 divided by the square root of 16, which is 2. So z equals (503.5 minus 500) divided by 2, which is 1.75. The two-tailed 95% fence is 1.96. The statistic 1.75 stays inside it, so the mean is not significantly above target at 5%. The p-value route agrees: p = 0.0801.

One condition decides whether z is even the right fence. The population standard deviation must be known. Here it was, 8 ml from years of records. When sigma is estimated from the same sample, the z fence is too low and the t fence takes over. That is the next section.

How to calculate a t critical value by hand

A t distribution is a normal curve with heavier tails, and the extra weight depends on the degrees of freedom. The fence is further out than the z fence, and it creeps in toward 1.96 as the sample grows. The hand formula that captures that creep is the Cornish-Fisher expansion. With z as the matching normal fence and df as the degrees of freedom, t is close to z plus (z cubed plus z) divided by (4 times df), plus (5 z to the 5th plus 16 z cubed plus 3 z) divided by (96 times df squared). Two terms are enough for most work.

Take the 95% two-tailed case, where z is 1.959964, and df is 24. The first correction is (7.529 plus 1.960) divided by 96, which is 0.0988. The second is (144.61 plus 120.47 plus 5.88) divided by 55,296, which is 0.0049. Add them to z: 1.959964 plus 0.0988 plus 0.0049 equals 2.0637. The exact value is 2.0639. The formula misses by 0.0002.

Worked example

Back to the student from the opening. Twenty-five students, mean 72 against a target of 68, standard deviation 10. The standard error is 10 divided by 5, which is 2, and t is 4 divided by 2, which is 2.00, on 24 degrees of freedom. The fence, calculated above, is 2.064. The statistic 2.00 falls short of it, so the gain is not significant at 5%, and the p-value, 0.0569, says the same thing. One more student, or a slightly bigger gain, and the verdict flips. That is how thin 0.064 is.

The fence shrinks as the sample grows. Two-tailed at 5%: 7 df gives 2.365, 19 df gives 2.093, 24 df gives 2.064, 30 df gives 2.042, and the normal curve gives 1.960. Even at 7 df the two-term formula lands within 0.01 of the exact value (2.357 against 2.365), so it is safe to use anywhere a table would be. One-tailed at 5% on 24 df, the fence is 1.711: same recipe, with z equal to 1.645 instead of 1.960.

How to calculate a chi-square critical value

Chi-square tests are right-tailed. The statistic can only be positive, and large values are the suspicious ones, so the whole alpha sits in the right tail. The fence is the 95th percentile of the chi-square distribution on your degrees of freedom. The hand formula is the Wilson-Hilferty approximation, which turns a chi-square percentile into a normal one: chi-square is close to df times (1 minus 2 divided by (9 times df), plus z times the square root of 2 divided by (9 times df)) cubed, where z is 1.645 for the 5% point.

Work it for 3 degrees of freedom. 2 divided by (9 times 3) is 0.0741, and its square root is 0.2722. Inside the brackets: 1 minus 0.0741 plus 1.645 times 0.2722, which is 0.9259 plus 0.4477, which is 1.3736. Cube it: 2.5914. Multiply by 3: 7.77. The exact value is 7.815. The formula misses by 0.04, close enough to judge any test, and the error shrinks as df grows: at 10 df it gives 18.29 against the exact 18.307.

Worked example

A shop counts customers across four weekdays and asks whether the days are equally busy. The counts are 42, 38, 51 and 29, and equal days would give 40 each. Chi-square is (42 minus 40) squared over 40, plus (38 minus 40) squared over 40, plus (51 minus 40) squared over 40, plus (29 minus 40) squared over 40, which is 0.1 plus 0.1 plus 3.025 plus 3.025, which is 6.25, on 3 degrees of freedom (four days minus one). The fence, calculated above, is 7.815. The statistic 6.25 stays inside it, so the days are not significantly uneven at 5%. The p-value is 0.1001, which says the same thing: a spread like this turns up about one time in ten by chance alone.

Intervals use both tails, and that is the one place chi-square needs two fences. A 95% interval for a variance on 7 df uses the 2.5th percentile, 1.690, and the 97.5th percentile, 16.013. A test uses one fence. An interval uses two.

How to calculate an F critical value

The F distribution needs two numbers: df1 for the numerator, df2 for the denominator. Tables print df1 across the top and df2 down the side, and the cell where they meet is the fence. Tests are right-tailed, like chi-square. The hand route is thinner here: there is no tidy approximation, so the working method is the reciprocal trick for the lower tail. The 5% lower point for (2, 12) equals 1 divided by the 95% point for (12, 2), which is 1 divided by 19.41, which is 0.0515. Swapping the dfs and taking the reciprocal turns a lower-tail question into an upper-tail one, which is the only kind tables print.

Worked example

Two machines fill the same product, and a manager asks whether their variances differ. Machine A, 13 batches, has a sample variance of 18.2. Machine B, 9 batches, has 6.1. F is 18.2 divided by 6.1, which is 2.98, on (12, 8) degrees of freedom. The 5% fence for (12, 8) is 3.284. The statistic 2.98 stays inside it, so the variances are not significantly different at 5%. The p-value is 0.0644.

An F of 3.5 means little on its own. Against (2, 12) it falls short of 3.885. Against (4, 12) it clears 3.259. Same statistic, opposite verdicts, because the fence depends on both numbers. Report both dfs with every F value.

How to find a critical value in a table

A table is a grid, and finding a value in it takes two entries. Rows are degrees of freedom, n minus 1. Columns are the alpha levels, split into one-tailed and two-tailed halves. Two entries, one cell. Take the bakery test: eight days, so df = 7. Two-tailed, alpha 0.05. Row 7, column "0.05 two-tailed": 2.365. One-tailed at the same alpha, the same row reads 1.895. Same data, different question, different fence.

Worked example

Eight days of sales at a bakery. The target is 40 a day. The eight days average 44.5, with a sample standard deviation of 4.751. The t statistic is 2.679 on 7 degrees of freedom. At a 5% significance level, two-tailed, the t distribution on 7 degrees of freedom draws its fence at 2.365. The statistic, 2.679, stands past it. So the bakery's mean is significantly above target.

The common slip is reading the wrong half of the table. A two-tailed test at 5% needs the column that splits 0.05 into 0.025 per tail. Read the one-tailed column by mistake and you get 1.895, a fence far too low, and ordinary results start looking significant. Check the column heading before you read the number. Every t table on this site labels both halves.

The fence shrinks as the sample grows. A class of 20 students gives df = 19, and the two-tailed 95% fence is 2.093. Smaller than 2.365, because more data means a tighter fence. The same pattern runs through every table on this site: z, chi-square and F all print their fences the same way, rows for degrees of freedom, columns for alpha.

The correlation fence

A correlation has its own critical value, and it shrinks as the sample grows. The fence depends on n through df = n minus 2. At 5%, two-tailed: n = 10 gives 0.632, n = 12 gives 0.576, n = 20 gives 0.444. Small samples need a big correlation before it counts as evidence. Large samples can call a modest correlation significant.

Worked example

A correlation of r = 0.71 from 10 pairs. The fence is 0.632. The value 0.71 clears it, so the correlation is significant at 5% (p = 0.0214). The correlation significance test calculator on this site runs the same comparison and prints the fence beside r.

How software calculates it

Software does the same inversion, numerically, to full precision. Excel and Google Sheets carry it as four functions. NORM.S.INV(0.975) returns 1.96. T.INV.2T(0.05, 24) returns 2.064. CHISQ.INV.RT(0.05, 3) returns 7.815. F.INV.RT(0.05, 2, 12) returns 3.885. Check each one against a hand calculation in this guide first, the 2.064 or the 7.815, and then trust it for the long lists. The critical value calculator on this site runs the same inversion for any alpha and any degrees of freedom, and the table-reading section above shows how to read the same fences off a printed table.

Watch out

Four slips cause nearly every wrong critical value. First, inverting at 0.95 when the test is two-tailed. Two-tailed at 5% inverts at 0.975, not 0.95. The 0.95 point is 1.645, a fence far too low, and ordinary results start looking significant. Second, counting the degrees of freedom from n instead of n minus 1. Twenty-five students give 24 df and a fence of 2.064; at 25 df the fence is 2.060, close, but a statistic sitting between the two fences flips the decision. Third, using the z fence where a t fence belongs. At 7 df the t fence is 2.365, not 1.96, and the gap is the price of estimating sigma from the same small sample. Fourth, comparing the p-value with the critical value. They live on different scales: compare the statistic with the critical value, and the p-value with alpha. Both comparisons give the same decision, but they are different numbers.

That is how to calculate critical value, for any distribution, at any alpha. Name the distribution, count the degrees of freedom, pick the tail before you look, and invert. Run any of these numbers through the critical value calculator and it will agree: the tool prints the same fences, for any alpha, with the same answers.

Frequently asked questions

How do I calculate a critical value by hand?

Pick alpha, split it across the tails, count the degrees of freedom, then invert the distribution. For t, the Cornish-Fisher formula gives the fence from the matching z value: on 24 df at 5% two-tailed, z is 1.960 and the formula gives 2.0637, against the exact 2.0639. For chi-square, the Wilson-Hilferty formula gives 7.77 on 3 df against the exact 7.815. Check the answer against a table or the critical value calculator.

How do I calculate the critical value for a 95% confidence level?

For z it is 1.96, two-tailed. For t it depends on the degrees of freedom: 2.365 on 7 df, 2.093 on 19 df, 2.064 on 24 df, 2.042 on 30 df, creeping toward 1.96 as the sample grows. Chi-square on 3 df is 7.815 at 95%, and F on (2, 12) is 3.885. The confidence level sets the tail area; the distribution and the degrees of freedom set the number.

What is the difference between calculating and finding a critical value?

The number is the same either way. Finding means reading it off a printed table or a spreadsheet function. Calculating means working it out from the distribution itself, by inverting it, which is what this guide does. Use the table-reading section above when you have a table handy; use the formulas above when you want to know where the number comes from, or when no table covers your degrees of freedom.

How do I calculate a critical value for a one-tailed test?

Keep the whole alpha in one tail, so invert at 1 minus alpha instead of 1 minus alpha over 2. One-tailed at 5% on 24 df, invert at 0.95: the fence is 1.711, against 2.064 two-tailed. Decide the tail before you look at the data: a one-tailed test chosen after seeing the direction is not the same test.

How do I calculate a chi-square critical value without a table?

Use the Wilson-Hilferty approximation: chi-square is close to df times (1 minus 2/(9 df) plus 1.645 times the square root of 2/(9 df)) cubed. On 3 df that gives 7.77 against the exact 7.815, and on 10 df it gives 18.29 against 18.307. The error shrinks as df grows.

Why is the t critical value bigger than the z critical value?

Because the t distribution has heavier tails: estimating sigma from the same small sample adds uncertainty, and the fence moves out to pay for it. On 7 df the 95% fence is 2.365 against z's 1.96. As the sample grows the estimate steadies, the tails thin, and the t fence creeps toward 1.96: 2.064 on 24 df, 2.042 on 30 df.

Can I calculate a critical value in Excel?

Yes. NORM.S.INV(0.975) returns 1.96, T.INV.2T(0.05, 24) returns 2.064, CHISQ.INV.RT(0.05, 3) returns 7.815, and F.INV.RT(0.05, 2, 12) returns 3.885. Google Sheets has the same functions. Check each one against a hand calculation in this guide first.