CHIDIST function
Returns the right-tailed probability of the chi-squared distribution, the p-value for a chi-squared statistic. Replaced by CHISQ.DIST.RT.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)
In every Excel versionWorks in Google Sheets
Syntax
CHIDIST(x, deg_freedom)| Argument | What it means | |
|---|---|---|
x | Required | The chi-squared value, 0 or greater. |
deg_freedom | Required | Degrees of freedom, from 1 to 10^10. Decimals are truncated. |
Returns: The probability of a chi-squared value at least as large as x.
How CHIDIST works
CHIDIST tells you how unusual a chi-squared statistic is. You calculate the statistic from observed and expected counts (for example, survey answers by region), and CHIDIST returns the probability of getting a value that large or larger if there were no real difference — the p-value. A small p-value (below 0.05, say) suggests the differences are not just chance.
Watch the direction: CHIDIST is right-tailed. That is the opposite of the modern CHISQ.DIST, which returns the left tail (cumulative) by default. If you migrate by simply renaming CHIDIST to CHISQ.DIST you will get 1 minus the right answer.
Compatibility note: CHIDIST is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends CHISQ.DIST.RT. Rename to CHISQ.DIST.RT(x, deg_freedom) — same arguments, same right-tail result.
Examples
1p-value for a chi-squared statistic
| A | B | C | |
|---|---|---|---|
| 1 | Chi-squared | Degrees of freedom | |
| 2 | 18.307 | 10 | 0.050001 |
Result: 0.050001
With 10 degrees of freedom, a statistic of 18.307 sits right at the 5% critical value, so the p-value is 0.050001 (formatted to 6 decimals).
2Survey result: is the difference significant?
| A | B | C | |
|---|---|---|---|
| 1 | Statistic | df | |
| 2 | 4.2 | 2 | 0.1225 |
Result: 0.1225
A statistic of 4.2 with 2 degrees of freedom gives a p-value of 0.1225, which is above 0.05: not significant at the 5% level (formatted to 4 decimals).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | x is negative or deg_freedom is less than 1 or at least 10^10. | Check the statistic and degrees of freedom. |
#VALUE! | An argument is non-numeric. | Check the inputs. |
Tips
- If you only have the observed and expected tables, CHITEST (or CHISQ.TEST) calculates the statistic and the p-value in one step.
- Do not replace CHIDIST with CHISQ.DIST — that one is left-tailed. Use CHISQ.DIST.RT.
Questions
Should I still use CHIDIST?
Only if the workbook must open in Excel 2007 or earlier. Otherwise use CHISQ.DIST.RT (not CHISQ.DIST, which is left-tailed), which gives the same result and makes the intent clearer to the next person who reads the formula.
Will CHIDIST stop working?
There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.
Google Sheets
CHIDIST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
CHIDIST 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 | CHIFORDELING |
| Dutch | CHI.KWADRAAT |
| Finnish | CHIJAKAUMA |
| French | LOI.KHIDEUX |
| German | CHIVERT |
| Hungarian | KHI.ELOSZLÁS |
| Italian | DISTRIB.CHI |
| Norwegian (Bokmål) | KJI.FORDELING |
| Polish | ROZKŁAD.CHI |
| Portuguese (Brazil) | DIST.QUI |
| Portuguese (Portugal) | DIST.CHI |
| Russian | ХИ2РАСП |
| Spanish | DISTR.CHI |
| Swedish | CHI2FÖRD |
| Turkish | KİKAREDAĞ |