CHISQ.INV.RT returns the inverse of the right-tailed chi-squared distribution, giving the chi-square value for a given probability and degrees of freedom. It answers: what chi-square statistic has this much area to its right?
=CHISQ.INV.RT(probability, deg_freedom)What does CHISQ.INV.RT do?
CHISQ.INV.RT is a statistical function that turns a probability into a chi-square value. You give it a right-tail probability (such as 0.05) and degrees of freedom, and it returns the critical chi-square statistic where the area to the right equals that probability. This is the number you compare your test statistic against in chi-square goodness-of-fit and independence tests.
It matters because manual chi-square tables are slow and easy to misread. With CHISQ.INV.RT you can build a critical value in one cell, change the significance level or degrees of freedom, and the result updates instantly. That makes it practical for students checking homework and for analysts running tests in spreadsheets.
A common real situation: you have survey data on customer preferences across regions and want to test whether preference is independent of region. You compute the chi-square statistic, then use CHISQ.INV.RT to get the critical value at 5% significance. If your statistic exceeds the critical value, you reject independence.
When to use CHISQ.INV.RT
- Finding the critical value for a chi-square goodness-of-fit test
- Finding the critical value for a chi-square test of independence in a contingency table
- Building a rejection region for a hypothesis test at a chosen significance level
- Creating chi-square critical value tables for different degrees of freedom
- Checking whether a calculated chi-square statistic is statistically significant
- Teaching or verifying chi-square results without printed tables
CHISQ.INV.RT syntax
=CHISQ.INV.RT(probability, deg_freedom)| Argument | Required? | What to enter |
|---|---|---|
probability | Required | The right-tail probability, between 0 and 1. This is the area to the right of the returned chi-square value, often the significance level such as 0.05. Example: 0.05. |
deg_freedom | Required | The degrees of freedom, a positive integer that depends on your test. Example: 4. |
What it returns: The chi-square value such that the area to its right equals the given probability, for the specified degrees of freedom. The result is a positive number.
CHISQ.INV.RT examples
1 Basic critical value at 5% significance
The goal is the chi-square critical value for a right-tail probability of 0.05 with 4 degrees of freedom. The formula =CHISQ.INV.RT(B2, B3) reads the probability from B2 and degrees of freedom from B3. It returns about 9.4877, meaning 5% of the chi-square distribution with 4 degrees of freedom lies above 9.4877. Use this as the cutoff: a test statistic above it is significant at 5%.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Probability | 0.05 | 9.487729037 | ||
| 3 | Degrees of freedom | 4 | |||
| 4 |
2 Critical value at 1% significance
Here the goal is a stricter 1% right-tail critical value with 6 degrees of freedom. The formula =CHISQ.INV.RT(B2, B3) uses the probability in B2 and degrees of freedom in B3. It returns about 16.8119, the value with only 1% of the distribution to its right. This is useful when you want a more conservative test and a smaller chance of a false positive.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Probability | 0.01 | 16.81189383 | ||
| 3 | Degrees of freedom | 6 | |||
| 4 |
3 Goodness-of-fit test for a die
A die is rolled 120 times and the observed counts are in B2:B7. For a fair six-sided die the expected count is 20 per face, so the chi-square statistic is the sum of (observed minus 20) squared divided by 20, which equals 6.5. With 6 categories there are 5 degrees of freedom, and the formula =CHISQ.INV.RT(B9, B10) returns about 11.0705 at the 5% level. Because 6.5 is below 11.0705, there is no significant evidence that the die is unfair.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Face | Observed | |||
| 2 | 1 | 18 | 11.07049769 | ||
| 3 | 2 | 22 | |||
| 4 | 3 | 19 | |||
| 5 | 4 | 24 | |||
| 6 | 5 | 17 | |||
| 7 | 6 | 20 | |||
| 8 | Chi-square statistic | 6.5 | |||
| 9 | Probability | 0.05 | |||
| 10 | Degrees of freedom | 5 | |||
| 11 |
4 Test of independence for a 3x3 table
A 3-by-3 contingency table of customer preference by region gives (3-1) times (3-1) equals 4 degrees of freedom. The calculated chi-square statistic is 9.2, and the significance level is 0.05. The formula =CHISQ.INV.RT(B2, B3) returns about 9.4877. Since 9.2 is less than 9.4877, you do not reject the null hypothesis of independence at the 5% level.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Probability | 0.05 | 9.487729037 | ||
| 3 | Degrees of freedom | 4 | |||
| 4 | Chi-square statistic | 9.2 | |||
| 5 |
5 Critical value for a larger survey
A larger survey with 10 degrees of freedom needs a 5% critical value. The formula =CHISQ.INV.RT(B2, B3) uses the probability in B2 and degrees of freedom in B3. It returns about 18.3070, the cutoff above which 5% of the chi-square distribution lies. If your computed statistic is 20, it exceeds this value and the result is significant at 5%.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Item | Value | |||
| 2 | Probability | 0.05 | 18.30703805 | ||
| 3 | Degrees of freedom | 10 | |||
| 4 |
Common CHISQ.INV.RT errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | The probability is outside the range 0 to 1, or degrees of freedom is less than 1. | Check that probability is between 0 and 1 and degrees of freedom is at least 1. |
| #VALUE! | One of the arguments is text or cannot be interpreted as a number. | Make sure both arguments are numeric; remove stray spaces or text from the cells. |
| #NAME? | The function name is misspelled or the version of Excel does not support it. | Type CHISQ.INV.RT exactly, or use CHIINV in older Excel versions. |
| Wrong-looking result | Using a left-tail probability instead of the right-tail probability. | CHISQ.INV.RT expects the area to the right; for a left-tail area use 1 minus that area. |
Tips for using CHISQ.INV.RT
- Use 0.05 for a 5% significance level and 0.01 for a 1% level; these are the most common right-tail probabilities.
- Degrees of freedom for a goodness-of-fit test equal the number of categories minus 1.
- Degrees of freedom for an r-by-c independence test equal (r-1)*(c-1).
- Keep probability and degrees of freedom in separate cells so you can change them without editing the formula.
- Compare your calculated chi-square statistic to the returned critical value: statistic greater than critical value means reject the null hypothesis.
- In older Excel files, CHIINV gives the same right-tailed result as CHISQ.INV.RT.
Frequently asked questions
What is the difference between CHISQ.INV.RT and CHISQ.INV?
CHISQ.INV.RT uses the right-tail probability, while CHISQ.INV uses the left-tail probability. For a 5% right-tail critical value, CHISQ.INV.RT(0.05, df) equals CHISQ.INV(0.95, df).
Why do I get #NUM! with CHISQ.INV.RT?
The probability must be greater than 0 and less than 1, and degrees of freedom must be at least 1. Check both inputs.
Can I use CHISQ.INV.RT for a two-tailed test?
Chi-square tests are typically right-tailed. For a two-tailed situation, split the significance level and use the appropriate tail, but most chi-square procedures use the right tail only.
What degrees of freedom should I use?
For goodness-of-fit use categories minus 1. For independence in an r-by-c table use (r-1)*(c-1).
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. CHISQ.INV.RT reference