CHIINV in Google Sheets returns the inverse of the right-tailed chi-squared distribution: give it a probability and degrees of freedom, and it returns the chi-squared value such that the area to the right equals that probability. It is the function you use for chi-square goodness-of-fit and independence tests when you already have a critical probability (often 0.05) and need the critical value. The syntax is =CHIINV(probability, degrees_freedom), and both arguments are required.
What You'll Need
- A Google account with access to Google Sheets (desktop browser or the Sheets mobile app).
- A spreadsheet where you can enter numbers and formulas.
- Your probability (between 0 and 1) and degrees of freedom (a positive integer).
- Optional: your observed and expected counts already in cells if you are running a full chi-square test.
Step-by-Step
- Open your spreadsheet at sheets.google.com or in the Google Sheets app, and click an empty cell where you want the result.
- Type
=CHIINV(to start the formula. Sheets will show a tooltip with the argument order: probability, then degrees_freedom. - Enter the right-tail probability. For a standard 0.05 significance test, type
0.05. You can also reference a cell, e.g.B1, so you can change the alpha later without editing the formula. - Type a comma, then enter the degrees of freedom. For a goodness-of-fit test this is usually (number of categories − 1); for an independence test it is (rows − 1) × (columns − 1). For example,
=CHIINV(0.05, 4). - Close the parenthesis and press Enter. The cell shows the critical chi-squared value. With 0.05 and 4 degrees of freedom the result is about 9.4877.
- Compare your calculated chi-square statistic to this critical value. If your statistic is greater than the critical value, reject the null hypothesis at that alpha. If it is smaller, you do not reject.
- To reuse the formula, drag the fill handle down or across. Use absolute references (like
$B$1) for the probability if you want it fixed while degrees of freedom change by row. - If you prefer the left-tail version, use
CHIINV(1 - alpha, df)instead ofCHIINV(alpha, df). The two give the same critical value for a two-tailed check when you use alpha/2.
Common Mistakes
- Swapping the arguments. Probability comes first, degrees of freedom second. Reversing them usually returns a #NUM! error.
- Using a percentage like 5 instead of 0.05. CHIINV expects a decimal between 0 and 1; 5 will produce an error.
- Entering a probability of exactly 0 or 1. Both are invalid and return #NUM!.
- Using non-integer degrees of freedom. While Sheets may accept some decimals, chi-square degrees of freedom are counts, so use whole numbers.
- Confusing CHIINV with CHIDIST. CHIDIST gives the right-tail probability from a statistic; CHIINV goes the other way, from probability to critical value.
- Forgetting that CHIINV is right-tailed. If you want the left-tail critical value, use 1 minus your alpha.
Tips
- Label your input cells clearly (e.g., "Alpha" and "df") so the formula reads like
=CHIINV(B1, B2)and is easy to audit. - Use
CHISQ.INV.RTif you want the modern equivalent; CHIINV is kept for compatibility and works the same way for right-tail values. - For a quick check, compare your result with a printed chi-square table. Small differences are normal due to rounding in tables.
- If you are building a full test, calculate your statistic with
CHISQ.TESTor by summing (observed − expected)² / expected, then compare to CHIINV. - Keep alpha in its own cell so you can run the same sheet at 0.05 and 0.01 without rewriting formulas.
Troubleshooting
If you see #NUM!, check that probability is strictly between 0 and 1 and that degrees of freedom is at least 1. If you see #VALUE!, one of the arguments is text or a blank cell; point the formula at a numeric cell or type the number directly. If the result looks wrong, confirm you did not swap the arguments and that you are using a decimal alpha, not a percentage. If the formula shows as text, the cell may be formatted as plain text; set it to Automatic or Number and re-enter the formula. On mobile, the formula bar is under the function icon; tap the cell, then the formula area, and type the same syntax. If you copied a formula from another sheet and it returns an error, check for locale differences in the comma separator; some locales use semicolons, so =CHIINV(0.05; 4) may be needed.
Frequently Asked Questions
What does CHIINV return exactly?
It returns the chi-squared value for which the right-tail area equals the probability you supply, given the degrees of freedom.
Is CHIINV the same as CHISQ.INV.RT?
For right-tail calculations they produce the same result. CHISQ.INV.RT is the newer name; CHIINV remains available for compatibility.
Can I use CHIINV for a two-tailed test?
Yes. Use alpha/2 as the probability for the upper critical value, and 1 − alpha/2 for the lower one if you need both tails.
Why do I get #NUM! with 0.05 and 0?
Degrees of freedom must be at least 1. A zero or negative value is invalid and returns #NUM!.
Does CHIINV work in the Google Sheets mobile app?
Yes, the function is available in the Sheets app. Enter it the same way in the formula bar.
What is a typical result for alpha 0.05 and 1 degree of freedom?
About 3.841. This is the critical value for a 1-df chi-square test at the 5% level.