Statistical function

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)
ArgumentWhat it means
xRequiredThe chi-squared statistic, 0 or more.
deg_freedomRequiredDegrees 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

D2fx=CHISQ.DIST.RT(B2, B3)
ABCD
1InputValue
2Chi-squared statistic9.60.0223
3Degrees of freedom3

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

D2fx=CHISQ.DIST.RT(B2, B3)
ABCD
1InputValue
2Chi-squared statistic12.40.0297
3Degrees of freedom5

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.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DanishCHI2.FORD.RT
DutchCHIKW.VERD.RECHTS
FinnishCHINELIÖ.JAKAUMA.OH
FrenchLOI.KHIDEUX.DROITE
GermanCHIQU.VERT.RE
HungarianKHINÉGYZET.ELOSZLÁS.JOBB
ItalianDISTRIB.CHI.QUAD.DS
Norwegian (Bokmål)KJIKVADRAT.FORDELING.H
PolishROZKŁ.CHI.PS
Portuguese (Brazil)DIST.QUIQUA.CD
Portuguese (Portugal)DIST.CHIQ.DIR
RussianХИ2.РАСП.ПХ
SpanishDISTR.CHICUAD.CD
SwedishCHI2.FÖRD.RT
TurkishKİKARE.DAĞ.SAĞK