0
tutorials.scrollToStart
Statistical tests

When to Use a Chi-Square Test: Explained for Beginners

6 min read

When to use a chi-square test depends on one thing: whether both your variables are categorical. It is the go-to test when your hypothesis involves proportions, frequencies, or the relationship between two grouping variables — not means. This guide explains the ≥5 expected frequency rule, when to switch to Fisher’s exact test, and how to report Cramér’s V as your effect size.

Free sample chapter

Data Analysis From Survey to Results

Step-by-step guidance for choosing the right test, running it, and writing up APA results - in plain language, not theory. Get the free sample chapter when you join the waitlist.

Key takeaways

  • Use chi-square when both variables are categorical (nominal or ordinal with few categories).
  • Each cell in your cross-table must have an expected frequency ≥ 5 — SPSS warns you if this is violated.
  • If expected frequencies are too small, switch to Fisher’s exact test (2×2 tables only).
  • Always report Cramér’s V as the effect size alongside the chi-square statistic.
  • Chi-square tests association, not direction or strength — Cramér’s V provides the magnitude.

What Is a Chi-Square Test? Categorical Data Explained

The chi-square (χ²) test of independence checks whether two categorical variables are related or independent. It compares the frequencies you actually observed in each cell of a cross-table against the frequencies you would expect if there were no relationship at all.

Typical thesis example: Is there a relationship between degree programme (Psychology, Sociology, Biology) and preferred learning format (in-person, online, hybrid)? Both variables are categorical — chi-square is the correct test.

Chi-square does not work with means or metric data. If one of your variables is metric (e.g. a score, a time, or a computed scale), use a different test.

When to Use Chi-Square vs. Fisher’s Exact Test

Chi-square assumes that each cell in your cross-table has an expected frequency of at least 5. This condition is automatically checked by SPSS, which prints a warning below the output table.

  • If the assumption is met → chi-square test.
  • If the assumption is violated → Fisher’s exact test (for 2×2 tables only).

Fisher’s exact test is more conservative and reliable with small samples or rare categories, but it only works for 2×2 cross-tables. If you have a larger table with small expected frequencies, consult your supervisor — collapsing categories may be an option.

[WARNING] If SPSS shows more than 20% of cells with expected count < 5, chi-square results are unreliable. Switch to Fisher’s exact test or combine categories.

Real Example: Gender × Learning Format in a Student Survey

Research question: Is there a relationship between gender (male/female) and preferred learning format (in-person/online)?

SPSS path: Analyze → Descriptive Statistics → Crosstabs → move gender to Rows, learning format to Columns → Statistics → tick Chi-square and Phi and Cramér’s V → Cells → tick Expected → OK.

  • Output interpretation:
  • Pearson χ²(1) = 6.84, p = .009 → significant association.
  • Cramér’s V = .24 → small to medium effect.

Conclusion: There was a significant association between gender and preferred learning format, χ²(1) = 6.84, p = .009, V = .24.

How to Read the Chi-Square Output in SPSS

The SPSS chi-square output has three key sections:

1. Cross-tabulation table: shows observed counts and (if requested) expected counts per cell. Scan for any expected count below 5.

2. Chi-square tests table: read the Pearson Chi-Square row. Note: χ² value, df (degrees of freedom = (rows−1)×(cols−1)), and Asymptotic Significance (your p-value).

3. Symmetric Measures table: find Cramér’s V. This is your effect size. Report it alongside χ² and p.

Reporting Cramér’s V as Effect Size in APA Format

APA requires an effect size alongside every inferential test result. For chi-square, report Cramér’s V:

  • Significant:
  • "A chi-square test revealed a significant association between gender and learning format preference, χ²(1, N = 121) = 6.84, p = .009, V = .24."
  • Non-significant:
  • "No significant association was found between degree programme and learning format, χ²(2, N = 121) = 2.14, p = .343, V = .13."

[INFO] Cramér’s V benchmarks depend on the degrees of freedom. For a 2×2 table (df=1): small = .10, medium = .30, large = .50. For larger tables, benchmarks are lower.

When Chi-Square Is NOT Appropriate

Do not use chi-square when:

  • One or both variables are metric (use correlation or t-test instead).
  • Expected cell frequencies are below 5 in more than 20% of cells (use Fisher’s exact test).
  • You want to examine more than two categorical variables simultaneously (logistic regression required).
  • You have matched pairs or repeated-measures categorical data (McNemar’s test applies instead).

Frequently asked questions

When should I use Fisher’s exact test instead of chi-square?

Use Fisher’s exact test when more than 20% of cells in your cross-table have an expected frequency below 5. SPSS automatically shows Fisher’s exact test results in the output alongside chi-square. Fisher’s exact test is limited to 2×2 tables — for larger tables with small expected frequencies, consider collapsing categories or consulting your supervisor.

What does a significant chi-square test result actually mean?

A significant chi-square test (p < .05) means the distribution of frequencies across categories is unlikely to have occurred by chance if the two variables were truly independent. It tells you that an association exists — but not how strong it is or which direction it goes. You need Cramér’s V for effect size and the cross-table for direction.

How do I report chi-square results in APA format?

Report: χ²(df, N = sample size) = value, p = .XXX, V = .XX. Example: χ²(1, N = 121) = 6.84, p = .009, V = .24. Always include degrees of freedom, sample size, the chi-square value, the p-value, and Cramér’s V as effect size.

Can I use chi-square with ordinal data?

Technically yes, but it treats ordinal categories as nominal and ignores the ordering. If both variables are ordinal, Spearman correlation is a more informative test. Use chi-square for ordinal data only when the categories are very few (2–3) and you specifically want to test frequency distributions.

How do I find the chi-square critical value for my test?

You do not need a critical value table when using SPSS — the software calculates the exact p-value. The critical value approach is for hand calculations. In SPSS, simply read the Asymptotic Significance column in the Chi-Square Tests table. If p < .05, the result is significant.

Free tool

Not sure which statistical test to use?

Answer 5 quick questions about your research design and get the right test - with an explanation of why - in under two minutes.

Statoria Team

Statistics educators & software developers

We build Statoria to help bachelor and master students get through their thesis data analysis without stress. Our guides are written by researchers with experience in social science statistics and student supervision.

Related guides