Skip to content
ToolUlkaa Tool
All tools

Statistics

Statistics CalculatorRandom Number GeneratorStandard Deviation CalculatorZ-Score CalculatorProbability CalculatorPermutation and Combination CalculatorP-Value CalculatorT-Test CalculatorConfidence Interval CalculatorSample Size CalculatorChi-Square CalculatorCorrelation Coefficient CalculatorLinear Regression CalculatorANOVA CalculatorProbability Distribution Calculator

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Statistics

Chi-Square Test of Independence Calculator

Enter a table of counts and see whether the two variables are related.

Test

Observed counts (rows by columns)

Col 1Col 2Col 3Col 4
Row 1
Row 2
Row 3
Significance level (α)

Test of independence

χ² = 24.571, p = 0.0004
Degrees of freedom
6
Critical value
12.592
Total count
650
Cramér's V
0.137

p = 0.0004 < α = 0.05, so reject H0: the two variables are independent. There is evidence that the variables are associated. Cramér's V = 0.137 (small association).

Chi-square distribution and rejection region

Chi-square distribution and rejection regionChi-square distribution and rejection region. The right tail is shaded. The χ² is 24.57.0510152025χ² (df = 6)χ² = 24.57

The shaded right tail is the rejection region (area 0.05). The dashed line is your chi-square statistic.

Expected counts and contributions

Expected counts (E)

80.580.510780.5
34.834.846.534.8
34.634.646.234.6

Contribution of each cell, (O − E)² / E

1.115.240.1072.6
0.6746.590.4436.33
0.6150.8380.02880.00427

The contributions add up to the chi-square statistic. The largest ones show which cells differ most from what was expected.

Step-by-step working

  1. 1Hypotheses
    H0: the two variables are independentH_0:\ \text{the two variables are independent}H0​: the two variables are independent
    ↓
    H1: they are associatedH_1:\ \text{they are associated}H1​: they are associated
  2. 2Expected counts
    Eij=(row total)(column total)NE_{ij} = \dfrac{(\text{row total})(\text{column total})}{N}Eij​=N(row total)(column total)​
    ↓
    N=650N = 650N=650
  3. 3Chi-square statistic
    χ2=∑i,j(Oij−Eij)2Eij\chi^2 = \sum_{i,j} \dfrac{(O_{ij} - E_{ij})^2}{E_{ij}}χ2=i,j∑​Eij​(Oij​−Eij​)2​
    ↓
    χ2=24.571\chi^2 = 24.571χ2=24.571
  4. 4Degrees of freedom
    df=(r−1)(c−1)df = (r - 1)(c - 1)df=(r−1)(c−1)
    ↓
    df=(3−1)(4−1)=6df = (3 - 1)(4 - 1) = 6df=(3−1)(4−1)=6
  5. 5p-value and critical value
    p=P(χ62≥24.57)p = P(\chi^2_{6} \geq 24.57)p=P(χ62​≥24.57)
    ↓
    p=0.0004098, χc2=12.592p = 0.0004098,\ \chi^2_c = 12.592p=0.0004098, χc2​=12.592
  6. 6Cramér's V
    V=χ2N min⁡(r−1, c−1)V = \sqrt{\dfrac{\chi^2}{N\,\min(r-1,\,c-1)}}V=Nmin(r−1,c−1)χ2​​
    ↓
    V=0.1375V = 0.1375V=0.1375
  7. 7Decision
    p<α=0.05p < \alpha = 0.05p<α=0.05
    ↓
    reject H0\text{reject } H_0reject H0​
  1. Tools
  2. Statistics
  3. Chi-Square Calculator
  4. Chi-Square Test of Independence Calculator

About Chi-Square Test of Independence Calculator

This chi-square test of independence calculator takes a contingency table of counts, adds or removes rows and columns as you need, and tests whether the two categorical variables are associated. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

The page opens on a 3 by 4 table. The result shows the chi-square statistic, degrees of freedom, p-value, critical value and Cramér’s V, and below it the expected counts and each cell’s contribution so you can see where the association comes from.

On a phone the table scrolls sideways inside its own frame and every cell is a 44 pixel target. Use the Row and Column buttons to resize it, up to 10 by 10. A warning appears if any expected count is below 5, as in the small 2 by 2 example.

How to use Chi-Square Test of Independence Calculator

  1. 1Choose the test: goodness of fit, independence or critical value.
  2. 2For goodness of fit, type the observed counts and choose how the expected values are given. For independence, type the counts into the table and add or remove rows and columns as needed.
  3. 3Choose a significance level, usually 0.05.
  4. 4Read the chi-square statistic, the degrees of freedom, the p-value, the critical value and, for a table, Cramér’s V.
  5. 5Check the warning about small expected counts, then open the expected counts, contributions and step-by-step working.

Features

  • Goodness of fit with equal, proportional or custom expected values, and an option for estimated parameters.
  • Test of independence with an editable contingency table up to 10 by 10, usable on a phone.
  • Expected counts and each cell’s contribution to chi-square.
  • Cramér’s V effect size with a plain-language label.
  • A warning when any expected count is under 5.
  • Critical value look-up for any degrees of freedom and significance level.
  • A bell curve with the rejection region and statistic, and step-by-step KaTeX working.

Test of independence

Expected counts assume the variables are independent, so each depends only on the row and column totals.

E_ij = (row i total)(column j total) / N
χ² = Σ_ij (O_ij − E_ij)² / E_ij,   df = (r − 1)(c − 1)

Worked examples

  • 90 60 104 95 / 30 50 51 20 / 30 40 45 35 → gives χ² = 24.57, df = 6, p = 0.0004, V = 0.137

    The 3 by 4 example of the Wikipedia chi-squared test article.

  • 30 10 / 20 40 → gives χ² = 16.67, df = 1, p = < 0.0001, V = 0.408

  • 3 1 / 2 4 → gives χ² = 1.667, p = 0.197, with a small-count warning

    Every expected count is under 5, so use an exact test instead.

Privacy: how it works

  • The test is calculated by code in your own browser tab. Your counts are not sent to Ulkaa or any other server.
  • There is no account and nothing is stored once you close the tab.

Tips

  • Enter counts, not percentages. Percentages change the sample size and so the statistic.
  • For a 2 by 2 table the test of independence with no continuity correction can be a little too liberal. Compare with Fisher’s exact test when counts are small.
  • Look at the contributions to see which cells drive the result, instead of stopping at the p-value.
  • Rows and columns of a table must each contain at least one non-zero count.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your counts are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your counts are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

What is the null hypothesis?

That the two variables are independent: knowing the row category tells you nothing about the column category. A small p-value is evidence of an association.

Does chi-square show which cells differ?

Not directly, but the contributions table shows which cells depart most from their expected counts, which is where to look first.

More Chi-Square Calculator pages

  • Chi-Square CalculatorRun a chi-square goodness-of-fit test or a test of independence on a contingency table, with expected counts and Cramér’s V.
  • Chi-Square Goodness of Fit CalculatorType the observed counts and see whether they match what you expected.
  • Chi-Square Critical Value TableLook up the chi-square critical value for any degrees of freedom and significance level.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account