Cross-Tabulation & Chi-Square
Test whether two categorical variables are associated — with a contingency table, χ² test, effect size, and an APA-ready result.
cross-tabulationWhat it is
A cross-tabulation (also called a contingency table) displays the joint frequency distribution of two categorical variables. Each cell shows how many cases fall in a particular combination of categories. A chi-square test of independence then tests whether the pattern in the table is consistent with the two variables being unrelated in the population. The test compares observed cell counts with the counts you would expect if the variables were independent. When the difference between observed and expected counts is large enough, the chi-square statistic is significant. The accompanying effect size is Cramér's V, which tells you how strong the association is regardless of sample size. For a 2×2 table you can also request Yates' continuity correction, which adjusts for the discrete nature of the chi-square approximation. When expected counts are very small (below 5 in any cell), the chi-square approximation breaks down and Fisher's exact test is the safer alternative — it computes the exact probability rather than relying on the large-sample approximation.
When to use it
- Both variables are categorical (nominal or ordinal treated as nominal).
- You want to know whether the distribution of one variable differs across categories of another.
- You are testing, for example, whether product preference differs by gender, or whether dropout rate differs by condition.
- Your data meet the minimum expected count guideline (see thresholds below).
When not to use it
- Both variables are continuous — use correlation or regression.
- One variable is continuous and the other categorical — use a t-test or ANOVA.
- Observations are not independent (repeated measures) — the standard chi-square does not apply.
Assumptions
- Both variables are categorical (nominal, or ordinal treated as nominal).
- Observations are independent — each respondent contributes to exactly one cell (not repeated measures).
- Expected cell counts are adequate — no cell below 1, and fewer than 20% of cells below 5; otherwise use Fisher's exact test.
- Each case is counted once, so the cell frequencies sum to the total sample size N.
Thresholds & cutoffs
| Criterion | Rule of thumb | Source |
|---|---|---|
| χ² significance (α) | Significant if p < .05 (or your chosen α) | Standard NHST convention |
| Expected counts | No cell < 1; fewer than 20% of cells below 5 | Common guideline |
| Cramér's V | .10 small, .30 medium, .50 large (2×2 table) | Cohen (1988) |
| Fisher's exact test | Use when any expected count < 5 | Common guideline |
How to report it in APA
A chi-square test of independence showed a significant association between product preference and gender, χ²(2, N = 180) = 8.34, p = .015, Cramér's V = .22. Participants who identified as women were more likely to prefer option A (54%) than those who identified as men (38%).
How Explonia runs it
Explonia builds the contingency table from your survey data and runs the chi-square test automatically. It checks expected counts and flags when Fisher's exact test is more appropriate. Effect size (Cramér's V) is reported alongside the p value. Row and column percentages are shown in the table. The Article description feature drafts an APA sentence you can copy and edit directly.
Frequently asked questions
When should I use Fisher's exact test instead of chi-square?
Use Fisher's exact test when any expected cell count is below 5, or when you have a 2×2 table with a small total sample (N < 20). Chi-square approximation becomes unreliable with very small expected counts.
What is Cramér's V and how do I interpret it?
Cramér's V is an effect size for the chi-square test. It ranges from 0 to 1. For a 2×2 table, Cohen's conventions apply: .10 small, .30 medium, .50 large. For larger tables, the thresholds depend on the degrees of freedom — consult the adjusted conventions (Cohen, 1988).
What is the minimum expected count rule?
A commonly cited guideline is that no more than 20% of cells should have an expected count below 5, and no cell should have an expected count below 1. If this is violated, use Fisher's exact test or collapse categories.
Should I use row percentages or column percentages?
Use row percentages when your independent variable defines the rows (e.g., experimental condition). Use column percentages when the independent variable defines the columns. Column percentages are more common in survey research. Report both the percentage and the raw count for transparency.
Last updated: July 2026
Run Cross-Tabulation & Chi-Square on your own data
Collect or upload your data, run the analysis in your browser, and get a draft APA paragraph you can edit. Free to start. No credit card.
Start free