Contingency Coefficient Calculator
Inputs
- Inputs: chi-square = 24.60, sample size N = 200 and smaller table dimension k = 2.
- Contingency coefficient: sqrt(24.60 / (24.60 + 200)) = 0.3310.
- Ceiling for this table shape: sqrt((2 - 1) / 2) = 0.7071.
- Contingency coefficient result: 0.3310 - corrected C is 0.4680.
A chi-square statistic by itself is a awkward thing to quote: it grows with the sample size, so the same association looks stronger in a bigger survey even when nothing about the relationship changed. Pearson's contingency coefficient was his repair - divide the chi-square by itself plus N, and take the square root, and the result is squeezed onto a 0-to-1 scale that a reader can carry between studies. It works for contingency tables of any size, which the simpler phi coefficient does not, and that reach made it a standard association measure for categorical data.
Enter a chi-square statistic, the sample size, and the smaller dimension of the table, and this calculator returns the coefficient, the maximum value the coefficient could reach in a table of that shape, and Sakoda's corrected version that divides by the maximum. The worked examples cover a 2-row table with a moderate association, a 3-row table on 480 cases, and a 4-row table with a weaker one.
Worked examples
2-row table, moderate association
(24.6 · 200 · 2)
| Contingency coefficient C | 0.3310 |
| Maximum possible C for this table | 0.7071 |
| Corrected C (C / Cmax) | 0.4680 |
| Chi-square per observation | 0.1230 |
3-row table on 480 cases
(51.36 · 480 · 3)
| Contingency coefficient C | 0.3109 |
| Maximum possible C for this table | 0.8165 |
| Corrected C (C / Cmax) | 0.3808 |
| Chi-square per observation | 0.1070 |
4-row table, weak association
(12.84 · 150 · 4)
| Contingency coefficient C | 0.2808 |
| Maximum possible C for this table | 0.8660 |
| Corrected C (C / Cmax) | 0.3242 |
| Chi-square per observation | 0.0856 |
From chi-square to a bounded coefficient
The transformation is C = sqrt(chi-square / (chi-square + N)). Both terms in the denominator matter: the chi-square carries the association, and adding N is what bounds the result, because a chi-square computed from N observations cannot outgrow N by an unlimited factor once it is divided by itself plus N. In the first worked example, a chi-square of 24.60 on 200 observations gives C = sqrt(24.60 / (24.60 + 200)) = 0.3310.
The denominator is the honest way to see the bounding work: doubling the sample and the chi-square together, as a perfectly replicated study would, moves C only slightly, whereas the raw chi-square doubles outright. That near-invariance to sample size is the entire reason the coefficient exists, and it is what the raw statistic can never give you.
The third supporting figure, chi-square per observation, keeps the raw material visible: 0.1230 in the first example, 0.1070 in the second, 0.0856 in the third. It is the association's density before the square-root transformation, and comparing it across the examples shows the coefficient's compression at work - the densities differ by more than the coefficients do.
- C = sqrt(chi-square / (chi-square + N)) - bounded, and nearly free of sample-size inflation.
- C works for tables of any shape, unlike the phi coefficient, which is a 2 x 2 special case.
- C can never reach 1; its ceiling depends on the table's smaller dimension.
- Sakoda's corrected C divides by that ceiling, making cross-shape comparisons honest.
The ceiling problem and Sakoda's correction
The coefficient's one structural flaw is its ceiling. Because the maximum attainable chi-square is limited by the table's shape, C tops out at sqrt((k - 1) / k), where k is the smaller of the row and column counts. For the first example's 2-row table the ceiling is 0.7071 - so its C of 0.3310, which looks modest against a 0-to-1 scale, is actually 0.4680 of the way to everything a table of that shape could possibly show. That ratio is Sakoda's corrected coefficient, and it changes the reading completely.
The correction matters most when shapes differ. The second example, a 3-row table with a chi-square of 51.36 on 480 cases, gives a raw C of 0.3109 - lower than the first example's - but its ceiling is 0.8165, so its corrected value is 0.3808. The third example, a 4-row table, has the highest ceiling of all at 0.8660 and the weakest association: C = 0.2808, corrected to 0.3242. Raw C ranks the examples one way; corrected C preserves that order here but narrows the gaps honestly.
Neither figure is the 'true' one to the exclusion of the other. Raw C is the comparable statistic when tables share a shape - the common case in a single study's series of cross-tabulations. Corrected C is the one to quote when shapes differ, and quoting either without the table's dimensions is an incomplete report.
| Example | Chi-square / N | Raw C | Ceiling | Corrected C |
|---|---|---|---|---|
| 2-row table | 24.60 / 200 | 0.3310 | 0.7071 | 0.4680 |
| 3-row table | 51.36 / 480 | 0.3109 | 0.8165 | 0.3808 |
| 4-row table | 12.84 / 150 | 0.2808 | 0.8660 | 0.3242 |
Worked examples
Example 1: Chi-square statistic 24.6; Sample size N 200; Smaller table dimension k 2. Contingency coefficient C = 0.3310. Supporting values: Maximum possible C for this table 0.7071; Corrected C (C / Cmax) 0.4680; Chi-square per observation 0.1230. Inputs: chi-square = 24.60, sample size N = 200 and smaller table dimension k = 2. Contingency coefficient: sqrt(24.60 / (24.60 + 200)) = 0.3310. Ceiling for this table shape: sqrt((2 - 1) / 2) = 0.7071. Contingency coefficient result: 0.3310 - corrected C is 0.4680.
Example 2: Chi-square statistic 51.36; Sample size N 480; Smaller table dimension k 3. Contingency coefficient C = 0.3109. Supporting values: Maximum possible C for this table 0.8165; Corrected C (C / Cmax) 0.3808; Chi-square per observation 0.1070. Inputs: chi-square = 51.36, sample size N = 480 and smaller table dimension k = 3. Contingency coefficient: sqrt(51.36 / (51.36 + 480)) = 0.3109. Ceiling for this table shape: sqrt((3 - 1) / 3) = 0.8165. Contingency coefficient result: 0.3109 - corrected C is 0.3808.
Example 3: Chi-square statistic 12.84; Sample size N 150; Smaller table dimension k 4. Contingency coefficient C = 0.2808. Supporting values: Maximum possible C for this table 0.8660; Corrected C (C / Cmax) 0.3242; Chi-square per observation 0.0856. Inputs: chi-square = 12.84, sample size N = 150 and smaller table dimension k = 4. Contingency coefficient: sqrt(12.84 / (12.84 + 150)) = 0.2808. Ceiling for this table shape: sqrt((4 - 1) / 4) = 0.8660. Contingency coefficient result: 0.2808 - corrected C is 0.3242.
C against phi, Cramer's V and Tschuprow's T
The association family is crowded because each member repairs a different defect. Phi is the 2 x 2 case and equals the Pearson correlation of the two binary variables - exact, interpretable, and useless beyond four cells. Cramer's V generalises phi by dividing by the table's smaller dimension and can reach 1, which is why it has largely displaced C in modern practice. Tschuprow's T divides by a geometric mean of both dimensions and is the more conservative cousin, exact for square tables.
The contingency coefficient survives for two reasons. It is the measure the older literature reports, so reading across decades of studies requires it. And its defect - the unreachable ceiling - is fully repaired by Sakoda's correction, after which it tracks Cramer's V closely while remaining a direct transformation of the chi-square every package already prints. The calculator's job is to make both readings, raw and corrected, available from the same three inputs.
Reading strength honestly
Resist importing correlation benchmarks wholesale. A corrected C of 0.4680 is a substantial association for survey-style categorical data, where most real relationships are far weaker than the textbook examples; a raw 0.3310 in a 2-row table is the same statement in the other dialect. What neither number gives you is direction or shape: C is built from a chi-square, which is blind to which cells drive the association. The coefficient sizes the relationship; the table itself, read cell by cell, tells you what the relationship is.
Significance is a separate question the coefficient deliberately does not answer. The chi-square's own p-value depends on the degrees of freedom, which the table's full dimensions set - and this page takes only the smaller dimension, for the ceiling. Report the coefficient for strength and the chi-square test for evidence, and let each do its own job.
From a printed chi-square to a coefficient
The commonest use of this page is translation. A paper or a package prints a chi-square and an N for a cross-tabulation, and the reader wants the effect size the authors omitted. Three numbers off the printout - the statistic, the count, and the smaller table dimension - are everything the coefficient needs, which is why the input set is exactly those three.
Worked in reverse, the examples here are a calibration set for that translation work. If your printout shows a chi-square of 51.36 on 480 cases from a 3-row table, you already know the answer before you compute it: a raw C of 0.3109, a corrected 0.3808 - a real but modest association, stated in the two dialects the literature uses.
FAQs
What contingency coefficient does a chi-square of 24.60 on 200 cases give?
0.3310, from sqrt(24.60 / (24.60 + 200)). In a table whose smaller dimension is 2 the ceiling is 0.7071, so Sakoda's corrected coefficient is 0.4680 - the fairer statement of the association's strength.
Why can C never reach 1?
Because the chi-square's maximum is capped by the table's shape: the ceiling is sqrt((k - 1) / k) for smaller dimension k. A 2-row table caps at 0.7071, a 4-row table at 0.8660. Only an infinitely-dimensioned table would let C approach 1.
Raw C or corrected C - which should I quote?
Raw C when the tables you compare share a shape; corrected C when they differ. The second example's raw 0.3109 looks weaker than the first example's 0.3310, but corrected against their ceilings they read 0.3808 against 0.4680 - same order, honest gaps.
How does C differ from Cramer's V?
V divides the chi-square by N times the smaller dimension minus 1, so it can reach 1 in any table shape - the property that made it the modern default. C is the older direct transformation of chi-square, repaired by Sakoda's correction; after correction the two track closely.
Does a bigger sample inflate C like it inflates chi-square?
Barely - that is the point of the construction. Replicating a study doubles its chi-square but moves C only slightly, because N grows in the denominator too. The chi-square per observation - 0.1230 in the first example - shows the density the coefficient is built from.
Does C tell me the direction of the association?
No. It is built from a chi-square, which sums squared discrepancies and is blind to pattern. C sizes the association - read the table's cells, or a directional measure like tau for ordinal data, to say what the association actually is.