By Waqar Ghouri, founder of CalcMega · Last verified: 14 November 2026
The short answer
Cramér's V is a number from 0 to 1 that says how strongly two categorical variables are associated, and a Cramer's V calculator turns a contingency table into that number. On the table loaded when this page opens, rows 40, 11 and 17, 45 with 113 people in total, chi-square is 29.1288, plain V is 0.5077, the Bergsma bias corrected V is 0.5011, signed phi is +0.5077 and the exact p value is 6.77e-8.
| Table | n | Chi-square | Plain V | Corrected V | Signed phi | Exact p |
|---|---|---|---|---|---|---|
| Worked 2 by 2: rows 40, 11 and 17, 45 | 113 | 29.1288 | 0.5077 | 0.5011 | +0.5077 | 6.77e-8 |
| 3 by 3 check: rows 40, 11, 5 and 14, 27, 10 and 12, 9, 34 | 162 | 63.2296 | 0.4418 | 0.4302 | n/a | 6.07e-13 |
| Independence: rows 10, 10 and 10, 10 | 40 | 0.0000 | 0.0000 | 0.0000 | +0.0000 | 1.0000 |
| Fractional: rows 2.5, 1.5 and 1.5, 2.5 | 8 | 0.5000 | 0.2500 | 0.0000 | +0.2500 | 0.4795 |
| Negative: rows 11, 40 and 45, 17 | 113 | 29.1288 | 0.5077 | 0.5011 | -0.5077 | 6.77e-8 |
| Perfect: rows 5, 0 and 0, 5 | 10 | 10.0000 | 1.0000 | 1.0000 | +1.0000 | 0.0016 |
| Small sample: rows 8, 2 and 3, 7 | 20 | 5.0505 | 0.5025 | 0.4593 | +0.5025 | 0.0246 |
The last row is the point of the correction: at 20 observations the gap between plain V and corrected V is 0.0432, against 0.0066 at 113, so the plain figure flatters a small table more than six times as much.
A fresh check on 14 November 2026 found no web calculator that computes the Bergsma bias-corrected V: the correction is offered in R packages and in the paper itself, while this page prints the corrected V beside plain V and signed phi.
Worked example: a 2 by 2 table gives plain V 0.5077 and bias corrected V 0.5011
The table loaded when the page opens cross-tabulates 113 people two ways, with rows 40, 11 and 17, 45. The chi-square statistic is 29.1288 on 1 degree of freedom, and its exact p value is 6.77e-8, so the association is not a sampling accident. Plain V is 0.5077, a large effect on the usual labels. The corrected V is 0.5011, a touch lower, because part of that plain figure is the upward bias the correction exists to remove.
The gap between the two V figures looks small here because 113 observations is a fair size. Run a table of 20 through the same page and the gap widens, which is exactly the territory where people quote V most eagerly and where the plain figure flatters them most.
The 3 by 3 check: plain V 0.4418 and bias corrected V 0.4302 on a table of 162
A bigger table behaves the same way. Rows 40, 11, 5 and 14, 27, 10 and 12, 9, 34 total 162 observations, with chi-square 63.2296 on 4 degrees of freedom and an exact p value of 6.07e-13. Plain V is 0.4418 and the corrected V is 0.4302. There is no phi for this table: phi belongs to 2 by 2 tables only, and the result block says so rather than printing a number that has no meaning there.
What is Cramér's V and what is the phi coefficient?
Cramér's V is the square root of chi-square divided by the sample size and the smaller dimension term, a 0 to 1 measure of association between two categorical variables, with phi as its signed 2 by 2 form.
Reading the size takes one extra fact: how many categories the smaller variable has. With a smaller dimension term of 1, the conventional labels treat 0.10 as small, 0.30 as medium and 0.50 as large. With a term of 2 they drop to about 0.07, 0.21 and 0.35, and with a term of 3 to about 0.06, 0.17 and 0.29. The worked example, with a term of 1 and a plain V of 0.5077, sits just past the large mark. Labels are a reading aid, not a verdict: a V of 0.20 in a hiring table can matter more than a V of 0.50 in a taste test.
How does the Bergsma bias correction change Cramér's V?
This calculator computes the Bergsma bias corrected Cramér's V beside plain Cramér's V and signed phi. The plain statistic has a known flaw: even when two variables are completely independent, the sample chi-square is positive on average, so plain V drifts upward, and the drift grows as the sample shrinks or the table widens. Bergsma's fix works on phi-squared, the quantity under the square root. It subtracts (r - 1)(c - 1) / (n - 1) from phi-squared, sets the result to zero if it goes negative, and then divides by a corrected dimension term built from shrunken row and column counts before taking the square root.
On the worked example the arithmetic runs like this. Phi-squared is 29.1288 / 113 = 0.2578. The subtraction removes 1 / 112, about 0.0089, leaving a corrected phi-squared of 0.2488. The corrected dimension term is 0.9911 instead of 1, and the square root of 0.2488 / 0.9911 is 0.5011. An independence table, where every cell matches its expected count, gives plain V 0 and corrected V 0, because the corrected phi-squared floors at zero instead of going negative and inventing a small effect out of nothing.
Why is phi signed, and when does phi apply instead of V?
For a 2 by 2 table the natural measure is phi, and phi has a sign. Add up the diagonal product one way and subtract the other way: a positive result means the two attributes travel together, a negative one means they pull apart. A square root cannot carry that information, because square roots are never negative, so any tool that defines phi as the square root of chi-square over n prints the same positive number for a table and for its mirror image.
This page computes phi from the cells, (a d - b c) over the square root of the four margin products, so the direction survives. The strength matches plain V exactly on a 2 by 2 table; only the sign is added. Once a table grows past 2 by 2 there is no single direction to report, and V, which measures strength only, is the right tool.
The negative case: a reversed 2 by 2 table gives signed phi -0.5077, not +0.5077
Swap the rows of the worked example and the table reads 11, 40 and 45, 17. Chi-square does not move, plain V does not move, and the corrected V does not move, because the strength of the association is unchanged. Signed phi flips to -0.5077. That flip is the finding: the pairing that looked like attraction in the first table is repulsion in the second, and a report that prints +0.5077 for both tables has thrown the finding away.
What this calculator does not cover
This page needs a real table or the three summary figures, chi-square, the sample size and the table dimensions. It cannot work from a research question or a description of the data, and it cannot recover the sign of phi from the summary form, because the sign lives in the four cells of a 2 by 2 table.
The corrected V floors at zero, so a table with no association prints 0, and V on its own says nothing about direction except through signed phi on a 2 by 2 table. The effect size labels are reading aids, not verdicts: a V of 0.20 in a hiring table can matter more than a V of 0.50 in a taste test, and no value of V on its own proves one variable causes the other.
The chi-square p value rests on the chi-square approximation, so it is least reliable when expected counts are small. The usual working rule is that every expected count should be at least 5, and a table that breaks that rule deserves a second look, or an exact test, before the p value is quoted.
Related calculators: Statistics Calculator and Breusch-Godfrey and White Test Calculator.
Cramér's V and Phi Coefficient Calculator FAQs
What is Cramér's V?
Cramér's V is a measure of association between two categorical variables, built from the chi-square statistic: V is the square root of chi-square divided by the sample size and by the smaller of rows minus 1 and columns minus 1. It runs from 0, no association, to 1, perfect association. For a 2 by 2 table it equals the absolute value of the phi coefficient.
How is Cramér's V calculated?
First compute chi-square from the table, then divide by n and by min(r - 1, c - 1) and take the square root. On the worked example, the table with rows 40, 11 and 17, 45 gives chi-square 29.1288 on 113 observations, so plain V is 0.5077. This calculator also prints the exact chi-square p value from the chi-square distribution, 6.77e-8 on this table, never a bucketed approximation.
What is the Bergsma bias corrected Cramér's V?
Plain Cramér's V overstates association, most in small samples and in tables with many categories. Bergsma (2013) corrects phi-squared by subtracting (r - 1)(c - 1) / (n - 1), floors the result at zero, and rescales by corrected table dimensions. On the worked example the corrected V is 0.5011 against a plain V of 0.5077, and on the 3 by 3 check table the corrected V is 0.4302 against a plain V of 0.4418.
What is the phi coefficient and why is it signed here?
Phi is the 2 by 2 form of the association measure, equal to the correlation between the two binary variables. It carries the direction of the association: phi is (a d - b c) divided by the square root of the four margin products. The table with rows 40, 11 and 17, 45 gives signed phi +0.5077, and the reversed table with rows 11, 40 and 45, 17 gives signed phi -0.5077. An unsigned square root prints +0.5077 for both and loses the direction.
What does the worked example on this page give?
Two tables. The 2 by 2 table with rows 40, 11 and 17, 45, n = 113: chi-square 29.1288, plain V 0.5077, bias corrected V 0.5011, signed phi +0.5077, exact p value 6.77e-8. The 3 by 3 table with rows 40, 11, 5 and 14, 27, 10 and 12, 9, 34, n = 162: chi-square 63.2296, plain V 0.4418, bias corrected V 0.4302, exact p value 6.07e-13. An independence table gives V 0 and corrected V 0, because the correction floors at zero.
Can this calculator take fractional counts or a table with a zero row?
Fractional counts are computed exactly as entered, with no integer truncation: the table with rows 2.5, 1.5 and 1.5, 2.5 gives a plain V of 0.2500 on the entered values. A row or column whose total is zero makes the statistic undefined: this calculator reports that state explicitly instead of printing a zero, because a degenerate margin is not evidence of independence.
Sources: Cramér (1946) and Bergsma (2013), Journal of the Korean Statistical Society 42, 323 to 328
Cramér introduced the measure in Mathematical Methods of Statistics (1946). The bias correction follows Bergsma (2013), A bias-correction for Cramér's V and Tschuprow's T, Journal of the Korean Statistical Society 42, 323 to 328, whose corrected phi-squared and corrected dimension formulas are the ones computed above. The exact p values come from the chi-square distribution at (r - 1)(c - 1) degrees of freedom.
A practical note from experience with these tables: quote the corrected figure when the sample is small or the table is wide, and say which figure you are quoting. Two honest analysts can report 0.5077 and 0.5011 for the same table, one plain and one corrected, and a reader who cannot tell which is which will think one of them made an arithmetic error.
The Bergsma paper is freely readable as a PDF on the London School of Economics site: A bias-correction for Cramér's V and Tschuprow's T (Bergsma, 2013).
Sources last verified 14 November 2026.