FreeStatisticalTools.com
Categorical data

Chi-Square Test of Independence Calculator

Test whether two categorical variables are related. Use raw case-level data or paste a ready-made contingency table, and get expected counts, standardized residuals and Cramér’s V.

Free · No sign-upReplaces SPSS CrosstabsWorks with your data
Updated · By Bibin Xavier

Data 90 × 12

Paste from Excel, or drop a CSV, TSV or Excel file here.
Example data 90 rows, 12 variables. Data stays in this browser tab.
IDtext · 90 levelsGrouptext · 3 levelsGendertext · 2 levelsAgenumericHours_StudynumericAnxietynumericMotivationnumericPre_ScorenumericPost_ScorenumericExam_ScorenumericPassednumeric · codedSatisfactionnumeric · coded
S001ControlMale2311.2294.660626712
S002WorkshopFemale233.9283.554705402
S003OnlineFemale1810.132455576603
S004ControlMale2613.6413.552555903
S005WorkshopFemale229.7273.656636504
S006OnlineFemale207.9323.865826502
S007ControlFemale206.328372836103
S008WorkshopMale228293.164726213

Variables and options

Results update automatically when you change an option.

Results

90 rows · example data
Table 1

Crosstabulation: Group × Passed

Group01Total
Control24 (19.7)6 (10.3)30
Online19 (19.7)11 (10.3)30
Workshop16 (19.7)14 (10.3)30
Total593190

Note. Observed counts with expected counts in parentheses.

Table 2

Chi-square tests

TestValuedfp
Pearson χ²4.822.090
Likelihood ratio (G²)5.002.082
Cramér’s V.231

Note. 0% of cells have expected counts below 5 (minimum 10.33). The expected-count assumption is met.

Table 3

Adjusted standardized residuals

Group01
Control2.04-2.04
Online-0.310.31
Workshop-1.731.73

Note. Cells beyond ±1.96 contribute most to the association.

Row percentages

Interpretation

There is no statistically significant association between Group and Passed, with a weak effect (Cramér’s V = .231).

χ²(2, N = 90) = 4.82, p = .090, V = .231.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Chi-Square Test of Independence Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/chi-square-test-calculator/

BibTeX

@software{xavier_chisquaretest_2026,
  author = {Xavier, Bibin},
  title = {Chi-Square Test of Independence Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/chi-square-test-calculator/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Chi-Square Test of Independence Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is the chi-square test of independence?

The chi-square test of independence checks whether two categorical variables are associated. Enter raw case-level data or paste a contingency table to get expected counts, standardized residuals and Cramér’s V.

When to use the chi-square test of independence

Use it to test whether two categorical variables are independent, such as treatment group and recovery.

Assumptions

  • Independent observations, each counted once.
  • Expected counts of at least 5 in 80% of cells and none below 1.

How to set up your data

Raw format: one row per case with two category columns. Table format: the first column holds row labels and the remaining columns hold counts (load the example in table mode to see it).

How to use this tool

  1. Enter your data. Paste columns from Excel, Google Sheets or SPSS with variable names in the first row, or upload a CSV or Excel file. The example data shows the expected layout.
  2. Choose the variables. Select the row variable and column variable.
  3. Set the options. Fill in data format.
  4. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report the chi-square test of independence in APA style

“Group and passing were associated, χ²(2, N = 90) = 7.41, p = .025, V = .29.”

Frequently asked questions

What are the assumptions of the chi-square test?

Independent observations and expected counts of at least 5 in 80% of cells, with none below 1. If they are not met, use Fisher’s exact test.

How do I interpret Cramér’s V?

For a 2×2 table, .10 is small, .30 medium and .50 large. Thresholds are lower for tables with more categories.

Can I enter a contingency table directly?

Yes. Choose the contingency table format and paste a table whose first column holds the row labels and whose other columns hold the counts.

Related tools

Browse all categories