CHISQ.DIST.RT function
Returns the right-tailed chi-squared probability: the p-value of a chi-squared statistic you have already calculated.
Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later
Excel 2010 and laterWorks in Google Sheets
Syntax
CHISQ.DIST.RT(x, deg_freedom)| Argument | What it means | |
|---|---|---|
x | Required | The chi-squared statistic, 0 or more. |
deg_freedom | Required | Degrees of freedom, a whole number from 1 to 10^10. |
Returns: A probability between 0 and 1: the chance of a value at least as large as x.
How CHISQ.DIST.RT works
When you run a chi-squared test you add up (observed − expected)² / expected over all categories. A big total means the data stray far from what you expected. CHISQ.DIST.RT converts that total into a p-value: the probability of seeing a total this large, or larger, purely by chance if your expectation were correct. A small p-value (commonly below 0.05) suggests the difference is real rather than random noise.
Use it when you have computed the statistic yourself, for example from a report or with your own formula. If you have the observed and expected tables in the sheet, CHISQ.TEST does the whole job in one step. The older name of this function is CHIDIST.
Examples
1p-value for a customer survey
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Input | Value | ||
| 2 | Chi-squared statistic | 9.6 | 0.0223 | |
| 3 | Degrees of freedom | 3 |
Result: 0.0223
A survey with 4 answer options produced a statistic of 9.6 (df = 4 − 1 = 3). The p-value is 0.0223 (formatted to 4 decimal places): only about a 2% chance of such a large gap if customers had no preference, so the preference is statistically significant at the 5% level.
2Comparing defect types across 6 shifts
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Input | Value | ||
| 2 | Chi-squared statistic | 12.4 | 0.0297 | |
| 3 | Degrees of freedom | 5 |
Result: 0.0297
A statistic of 12.4 with 5 degrees of freedom gives a p-value of 0.0297, about 3%. Below 0.05, so the shifts probably do differ; at the stricter 1% level the result would not be significant.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | x is negative or deg_freedom is below 1. | Check the inputs. |
Tips
- A p-value is not the probability that your hypothesis is true; it is how surprising the data would be if there were no real effect.
- Compare the statistic with CHISQ.INV.RT(0.05, df): if the statistic is larger, the p-value is below 0.05.
Google Sheets
CHISQ.DIST.RT also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
CHISQ.DIST.RT in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | CHI2.FORD.RT |
| Dutch | CHIKW.VERD.RECHTS |
| Finnish | CHINELIÖ.JAKAUMA.OH |
| French | LOI.KHIDEUX.DROITE |
| German | CHIQU.VERT.RE |
| Hungarian | KHINÉGYZET.ELOSZLÁS.JOBB |
| Italian | DISTRIB.CHI.QUAD.DS |
| Norwegian (Bokmål) | KJIKVADRAT.FORDELING.H |
| Polish | ROZKŁ.CHI.PS |
| Portuguese (Brazil) | DIST.QUIQUA.CD |
| Portuguese (Portugal) | DIST.CHIQ.DIR |
| Russian | ХИ2.РАСП.ПХ |
| Spanish | DISTR.CHICUAD.CD |
| Swedish | CHI2.FÖRD.RT |
| Turkish | KİKARE.DAĞ.SAĞK |