CHISQ.TEST Function

Excel Functions › Statistical

Excel 2010+ Statistical

The Excel CHISQ.TEST function returns the p-value from a chi-square test of independence — it compares a table of observed counts against expected counts and tells you how likely that difference is by chance.


Quick answer:
=CHISQ.TEST({10,20;30,40},{15,15;35,35}) p-value comparing observed vs expected

Syntax

=CHISQ.TEST(actual_range, expected_range)
ArgumentDescription
actual_rangeRequiredThe range (or array) of observed frequencies.
expected_rangeRequiredThe range (or array) of expected frequencies — the same shape as the observed table.

How to use it

CHISQ.TEST takes two same-shaped tables — observed and expected counts — computes the chi-square statistic internally, and returns the resulting p-value directly. You don't have to look up a critical value.

=CHISQ.TEST({10,20;30,40}, {15,15;35,35}) // p-value

A small p-value (below your chosen alpha, often 0.05) means the observed counts differ from the expected counts more than chance alone would explain — evidence of an association. The degrees of freedom are inferred from the table shape: (rows-1) × (columns-1).

What it returns: CHISQ.TEST returns the probability, not the chi-square statistic. To get the statistic itself, compare your tables manually or back it out with CHISQ.INV.RT(p, df).

Try it: interactive demo

Live demo

Pick a CHISQ.TEST example to see the formula and its result.

Result:

Practice workbook

📊
Download the free CHISQ.TEST practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Does CHISQ.TEST return the chi-square statistic or a p-value?
It returns the p-value — the probability associated with the chi-square statistic. The statistic itself is computed internally and not returned.
How are degrees of freedom determined?
From the shape of the tables: (number of rows - 1) × (number of columns - 1). A single row or column uses just the other dimension minus one.
What does a small p-value mean?
It means the observed counts differ from the expected counts more than random variation would explain, so you have evidence of an association (reject independence) at that significance level.
Is CHISQ.TEST the same as the old CHITEST?
Yes — CHISQ.TEST is the modern name for the legacy CHITEST function and behaves identically.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: CHISQ.INV.RT · CHISQ.INV · CHISQ.DIST · F.TEST · T.TEST · Z.TEST