CHISQ.DIST.RT returns the right-tailed probability of the chi-squared distribution for a given chi-squared statistic and degrees of freedom. It tells you how likely it is to observe a chi-squared value at least as large as the one you have, assuming the null hypothesis is true.
=CHISQ.DIST.RT(x, deg_freedom)What does CHISQ.DIST.RT do?
CHISQ.DIST.RT is a statistical function in Excel that calculates the right-tailed probability of the chi-squared distribution. In plain terms, you give it a chi-squared test statistic and the degrees of freedom, and it returns the probability of getting a value that large or larger by chance. This is exactly what you need for hypothesis tests such as goodness-of-fit and independence tests, where a small right-tail probability suggests your observed data are unlikely under the null hypothesis.
Why does this matter? Many office and academic decisions rely on comparing observed counts with expected counts—whether survey responses differ across regions, whether defect rates vary by production line, or whether a new process changed outcomes. The chi-squared test is a standard way to judge those differences, and CHISQ.DIST.RT gives you the p-value directly in Excel without extra add-ins or manual tables.
Imagine you work in quality assurance and have counts of defective and non-defective items from three suppliers. You want to know if defect rates differ significantly. After computing the chi-squared statistic (using observed and expected counts), you can use CHISQ.DIST.RT to get the p-value and decide whether to investigate further. This guide walks through that and simpler examples so you can apply the function confidently.
When to use CHISQ.DIST.RT
- Testing whether observed frequencies match expected frequencies in a goodness-of-fit test.
- Checking independence between two categorical variables, such as region and product preference.
- Comparing defect counts across multiple production lines or suppliers.
- Analysing survey data where responses fall into categories and you want to see if groups differ.
- Validating whether a new process changed the distribution of outcomes compared with a baseline.
CHISQ.DIST.RT syntax
=CHISQ.DIST.RT(x, deg_freedom)| Argument | Required? | What to enter |
|---|---|---|
x | Required | The chi-squared test statistic (a non-negative number). Example: 7.81. |
deg_freedom | Required | The degrees of freedom for the test, usually (rows - 1) * (columns - 1) for independence tests, or categories - 1 for goodness-of-fit. Must be a positive integer. Example: 2. |
What it returns: The right-tailed probability (p-value) that a chi-squared random variable with the given degrees of freedom is greater than or equal to x. The result is between 0 and 1.
CHISQ.DIST.RT examples
1 Basic right-tail probability
This example shows the simplest use: you have a chi-squared statistic of 7.81 with 2 degrees of freedom. The formula =CHISQ.DIST.RT(B2, B3) returns the probability of observing a value at least as large as 7.81 under the chi-squared distribution with 2 degrees of freedom. The result, about 0.020, means there is roughly a 2% chance of seeing such a value if the null hypothesis is true. This is below the common 0.05 threshold, suggesting statistical significance.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Statistic | Value | |||
| 2 | Chi-squared (x) | 7.81 | 0.02014095449 | ||
| 3 | Degrees of freedom | 2 | |||
| 4 |
2 Goodness-of-fit for customer preferences
A café owner expects equal preference among four drink types but observes different counts. The chi-squared statistic is 6.25 with 3 degrees of freedom (4 categories minus 1). The formula =CHISQ.DIST.RT(B2, B3) gives the right-tail probability. A result near 0.10 means the observed differences are not strong enough to rule out chance at the 5% level, so the owner might keep the current menu.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Drink | Observed | Expected | |||
| 2 | Coffee | 30 | 25 | 0.1000608331 | ||
| 3 | Tea | 20 | 25 | |||
| 4 | Juice | 28 | 25 | |||
| 5 | Water | 22 | 25 | |||
| 6 | Chi-squared | 6.25 | ||||
| 7 | df | 3 | ||||
| 8 |
3 Independence test for survey responses
A marketing team surveys customers in two regions about product preference (three categories). The chi-squared statistic from the independence test is 4.50 with 2 degrees of freedom. Using =CHISQ.DIST.RT(B2, B3) returns about 0.105, meaning there is no strong evidence that preference depends on region. The team can treat the regions similarly for this product.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | Pref A | Pref B | Pref C | |||
| 2 | North | 40 | 30 | 30 | 0.1053992246 | ||
| 3 | South | 35 | 35 | 30 | |||
| 4 | Chi-squared | 4.5 | |||||
| 5 | df | 2 | |||||
| 6 |
4 Quality control across suppliers
A quality manager compares defect counts from three suppliers. The chi-squared statistic is 9.49 with 2 degrees of freedom. The formula =CHISQ.DIST.RT(B2, B3) returns about 0.0087, a small p-value. This suggests defect rates differ significantly among suppliers, prompting a review of supplier processes. The manager can now prioritise the supplier with the highest defect rate.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Supplier | Defective | Non-defective | |||
| 2 | A | 15 | 85 | 0.008695062006 | ||
| 3 | B | 25 | 75 | |||
| 4 | C | 10 | 90 | |||
| 5 | Chi-squared | 9.49 | ||||
| 6 | df | 2 | ||||
| 7 |
5 A/B test with two outcomes
An online store tests two button colours and records conversions. The chi-squared statistic is 3.84 with 1 degree of freedom. =CHISQ.DIST.RT(B2, B3) returns about 0.050, right at the typical significance threshold. The team might consider the result borderline and run the test longer. This shows how CHISQ.DIST.RT helps interpret A/B test results quickly.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Version | Converted | Not converted | |||
| 2 | Blue | 120 | 880 | 0.05004352125 | ||
| 3 | Green | 150 | 850 | |||
| 4 | Chi-squared | 3.84 | ||||
| 5 | df | 1 | ||||
| 6 |
Common CHISQ.DIST.RT errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #VALUE! | x or deg_freedom is non-numeric (e.g., text or empty). | Ensure both arguments are numbers. Check for stray spaces or text in referenced cells. |
| #NUM! | x is negative or deg_freedom is less than 1 or not an integer. | Use a non-negative x and a positive integer for deg_freedom. Round deg_freedom if necessary. |
| #DIV/0! | deg_freedom is zero. | Degrees of freedom must be at least 1. Recalculate based on your test design. |
Tips for using CHISQ.DIST.RT
- CHISQ.DIST.RT gives the right-tail probability; for the left tail, use 1 - CHISQ.DIST.RT(x, df).
- Degrees of freedom for an independence test with r rows and c columns is (r-1)*(c-1).
- A small result (often below 0.05) indicates statistical significance against the null hypothesis.
- Double-check that your chi-squared statistic is computed correctly before using this function.
- Use cell references rather than hard-coded numbers so your analysis updates automatically.
Frequently asked questions
What is the difference between CHISQ.DIST.RT and CHISQ.DIST?
CHISQ.DIST.RT returns the right-tailed probability, while CHISQ.DIST can return the left-tailed or cumulative probability depending on the cumulative argument. Use RT when you need the p-value for a chi-squared test.
Can I use CHISQ.DIST.RT for a left-tailed test?
Yes, by taking 1 - CHISQ.DIST.RT(x, df). That gives the left-tail probability.
What degrees of freedom should I use?
It depends on the test: for goodness-of-fit, categories - 1; for independence, (rows - 1)*(columns - 1).
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. CHISQ.DIST.RT reference