CHISQ.DIST returns the left-tailed probability of the chi-squared distribution for a given value and degrees of freedom. It helps you test whether observed data differ significantly from expected patterns.
=CHISQ.DIST(x, deg_freedom, cumulative)What does CHISQ.DIST do?
CHISQ.DIST is Excel's built-in function for the chi-squared distribution, a probability distribution used mainly in hypothesis testing. You give it a chi-squared statistic, the degrees of freedom, and a logical value for cumulative or probability density, and it returns the corresponding probability. This is the same distribution behind goodness-of-fit tests and tests of independence in statistics.
Why does it matter? Many workplace decisions rely on comparing observed counts with what you would expect if nothing unusual were happening. CHISQ.DIST turns a raw test statistic into a p-value, so you can say whether a difference is statistically significant or just random noise. It saves you from looking up chi-squared tables and reduces manual errors.
Imagine you manage a customer support team and want to know if complaint types are evenly distributed across weekdays. You count complaints for each day, calculate a chi-squared statistic, and use CHISQ.DIST to get the p-value. If the p-value is small, you have evidence that complaints cluster on certain days and can adjust staffing accordingly.
When to use CHISQ.DIST
- Testing whether observed frequencies match expected frequencies (goodness-of-fit).
- Checking if two categorical variables are independent (test of independence).
- Comparing survey responses across different groups or regions.
- Validating quality control counts against historical proportions.
- Assessing whether defect types occur equally often on different production lines.
CHISQ.DIST syntax
=CHISQ.DIST(x, deg_freedom, cumulative)| Argument | Required? | What to enter |
|---|---|---|
x | Required | The chi-squared statistic value at which to evaluate the distribution. Must be non-negative. Example: 3.84. |
deg_freedom | Required | The number of degrees of freedom, usually (rows - 1) * (columns - 1) for independence tests or categories - 1 for goodness-of-fit. Must be between 1 and 10^10. Example: 2. |
cumulative | Required | A logical value: TRUE returns the cumulative distribution function (left-tailed probability); FALSE returns the probability density function. Example: TRUE. |
What it returns: CHISQ.DIST returns a numeric probability between 0 and 1 when cumulative is TRUE, or the probability density (a non-negative number that can exceed 1) when cumulative is FALSE.
CHISQ.DIST examples
1 Basic cumulative probability
This example shows the simplest use: find the left-tailed probability for a chi-squared statistic of 3.84 with 2 degrees of freedom. The formula =CHISQ.DIST(B2, B3, TRUE) uses the statistic in B2 and degrees of freedom in B3. It returns approximately 0.853, meaning about 85.3% of the distribution lies below 3.84. This is useful for quick p-value lookups.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Statistic | Value | |||
| 2 | Chi-squared (x) | 3.84 | 0.8533930379 | ||
| 3 | Degrees of freedom | 2 | |||
| 4 |
2 Probability density (non-cumulative)
Here we use cumulative FALSE to get the probability density at x = 2 with 3 degrees of freedom. The formula =CHISQ.DIST(B2, B3, FALSE) returns the height of the chi-squared curve at that point. The result is about 0.2076. Density values are mainly used for plotting or comparing shapes, not for p-values.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Statistic | Value | |||
| 2 | Chi-squared (x) | 2 | 0.2075537487 | ||
| 3 | Degrees of freedom | 3 | |||
| 4 |
3 Goodness-of-fit p-value for dice rolls
A student rolls a die 60 times and records the counts for each face. The expected count is 10 per face. The chi-squared statistic is calculated as the sum of (observed - expected)^2 / expected, giving 4.4. With 5 degrees of freedom (6 categories - 1), the formula =CHISQ.DIST(B2, B3, TRUE) returns about 0.5066264764. Since this is greater than 0.05, there is no evidence the die is biased.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Face | Observed | Expected | ||
| 2 | 1 | 8 | 10 | 0.5066264764 | |
| 3 | 2 | 12 | 10 | ||
| 4 | 3 | 9 | 10 | ||
| 5 | 4 | 11 | 10 | ||
| 6 | 5 | 10 | 10 | ||
| 7 | 6 | 10 | 10 | ||
| 8 | Chi-squared stat | 4.4 | |||
| 9 | Degrees of freedom | 5 | |||
| 10 |
4 Test of independence for customer complaints
A support manager cross-tabulates complaint type (Billing, Technical, Other) against weekday (Mon-Fri). The chi-squared statistic is 12.5 with (3-1)*(5-1) = 8 degrees of freedom. Using =CHISQ.DIST(B2, B3, TRUE) gives a p-value of about 0.130. Because 0.130 > 0.05, the manager concludes there is no significant association between complaint type and weekday.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Metric | Value | |||
| 2 | Chi-squared stat | 12.5 | 0.8697496453 | ||
| 3 | Degrees of freedom | 8 | |||
| 4 |
5 Quality control: defect distribution across shifts
A factory records defect counts for three shifts and compares them to expected counts based on production volume. The calculated chi-squared statistic is 7.2 with 2 degrees of freedom. The formula =CHISQ.DIST(B2, B3, TRUE) returns about 0.973. This high p-value suggests the observed defects are consistent with the expected distribution, so no shift stands out as problematic.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Shift | Observed defects | Expected defects | ||
| 2 | Morning | 18 | 15 | 0.9726762776 | |
| 3 | Afternoon | 12 | 15 | ||
| 4 | Night | 15 | 15 | ||
| 5 | Chi-squared stat | 7.2 | |||
| 6 | Degrees of freedom | 2 | |||
| 7 |
Common CHISQ.DIST errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | x is negative or deg_freedom is less than 1 or greater than 10^10. | Ensure x is non-negative and degrees of freedom is between 1 and 10^10. |
| #VALUE! | One or more arguments are non-numeric (e.g., text) or cumulative is not a logical value. | Check that x and deg_freedom are numbers and cumulative is TRUE or FALSE. |
| #N/A | The function is not available in older Excel versions (pre-2010). | Use CHIDIST for the right-tailed probability or upgrade Excel. |
Tips for using CHISQ.DIST
- Use TRUE for cumulative to get p-values for hypothesis tests; use FALSE only for density curves.
- CHISQ.DIST returns the left-tailed probability. For a right-tailed p-value, use 1 - CHISQ.DIST(x, df, TRUE) or CHISQ.DIST.RT.
- Degrees of freedom for a test of independence is (rows - 1) * (columns - 1).
- Always verify that expected frequencies are at least 5 for a valid chi-squared test.
- Combine CHISQ.DIST with CHISQ.TEST for quick p-values from raw observed and expected ranges.
Frequently asked questions
What is the difference between CHISQ.DIST and CHISQ.DIST.RT?
CHISQ.DIST returns the left-tailed cumulative probability (area to the left of x). CHISQ.DIST.RT returns the right-tailed probability (area to the right), which is often used as a p-value in chi-squared tests.
Can I use CHISQ.DIST for a p-value?
Yes, but note that chi-squared tests typically use the right-tailed probability. So the p-value is 1 - CHISQ.DIST(x, df, TRUE).
Why do I get #NUM! with CHISQ.DIST?
#NUM! occurs if x is negative or degrees of freedom is less than 1 or greater than 10^10. Check your inputs.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. CHISQ.DIST reference