CHITEST Function

Excel Functions › Compatibility

All versions (legacy) Compatibility

The Excel CHITEST function returns the p-value of a chi-squared test for independence, comparing observed counts with expected counts. It is the legacy name of CHISQ.TEST, introduced in Excel 2010.


Quick answer:
=CHITEST({10,20;30,40},{15,15;35,35}) p-value ≈ 0.0291

Syntax

=CHITEST(actual_range, expected_range)
ArgumentDescription
actual_rangeRequiredThe range (or array) of observed counts to test.
expected_rangeRequiredThe range (or array) of expected counts, the same shape as actual_range.

How to use it

CHITEST computes the chi-squared statistic from the observed and expected tables, then returns the matching right-tail p-value directly — you do not have to compute the statistic or look up degrees of freedom yourself.

=CHITEST({10,20;30,40},{15,15;35,35}) // p ≈ 0.0291

A small p-value (below your significance level, often 0.05) suggests the observed counts differ from what was expected — the variables are likely related. The two arrays must have the same dimensions; the semicolon separates rows in an array constant.

Use CHISQ.TEST instead: =CHISQ.TEST({10,20;30,40},{15,15;35,35}) in Excel 2010+ returns the identical p-value. CHITEST is retained only for backward compatibility.

Try it: interactive demo

Live demo

Pick a CHITEST example to see the formula and its result.

Result:

Practice workbook

📊
Download the free CHITEST 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

What is the modern replacement for CHITEST?
CHISQ.TEST, added in Excel 2010, with the same two arguments. =CHISQ.TEST(actual,expected) equals =CHITEST(actual,expected).
What does CHITEST actually return?
The right-tail p-value of the chi-squared test of independence — the probability that the observed differences from the expected counts arose by chance.
How do I interpret the result?
If the p-value is below your significance level (commonly 0.05), reject the hypothesis of independence — the observed counts differ meaningfully from the expected ones.
Must the two ranges be the same size?
Yes — actual_range and expected_range must have the same number of rows and columns, or CHITEST returns an error.

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.TEST · CHIDIST · CHIINV · FTEST · CONFIDENCE