Skip to main content
v2026.11,986 entries · CC-BY 4.0

Cramér’s V: Effect Size for Categorical Association

Cramér’s V rescales the chi-square statistic so association strength can be compared across contingency tables of different sizes — something phi, which only works on 2×2 tables, can’t do. This guide covers the formula, a full worked calculation, and how to interpret the result using Cohen’s effect-size bands, which change with degrees of freedom.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

Cramér’s V is the chi-square statistic rescaled to a 0-to-1 range so association strength can be compared across contingency tables of different sizes — something the raw chi-square statistic cannot do, because chi-square grows with sample size and with the number of rows and columns in the table, not just with the strength of the association. V divides out both of those, leaving a number that behaves like an effect size: a 4×5 table and a 2×3 table can both report a V of, say, 0.25, and that 0.25 means comparably-strong association in both cases, even though their raw chi-square values and degrees of freedom are completely different. This page covers the exact formula, why the closely related phi coefficient can’t do this job beyond a 2×2 table, a full worked calculation on a 3×4 table, how to read the resulting number against Cohen’s effect-size bands (which depend on the table’s degrees of freedom, not a single fixed cutoff), and how Bergsma’s bias correction works step by step.

What Cramér’s V measures

Cramér’s V answers the question a chi-square test of independence leaves open: chi-square tells you whether two categorical variables are associated at all (via the p-value), but it does not tell you how strongly. Two studies can both return a “significant” chi-square result with very different real-world association strength, purely because one has a larger sample or a bigger table — statistical significance and effect size answer different questions, and reporting only the former is a common and avoidable gap. V is the standard way to fill that gap for two nominal (or ordinal-treated-as-nominal) categorical variables laid out in any r×c contingency table.

Named for Swedish statistician Harald Cramér, who introduced it in his 1946 Mathematical Methods of Statistics, V ranges from 0 (no association — the variables are independent) to 1. It can reach 1 only when each variable is completely determined by the other. Unlike a correlation coefficient such as Pearson’s r, V has no negative values and no inherent direction: categorical variables with more than two levels each don’t have a single meaningful “direction” of association to sign, so V reports magnitude only.

The formula: chi-square normalized by table size

For an r×c contingency table with sample size n:

V = √( (χ² / n) ÷ min(r−1, c−1) ), equivalently V = √( χ² / (n · min(r−1, c−1)) )

Two things are doing the normalizing work here. Dividing χ² by n removes the effect of sample size — double every cell count in a table and χ² doubles too, even though the underlying pattern of association hasn’t changed at all; χ²/n (usually written φ², the squared phi coefficient) is stable under that kind of rescaling. Dividing further by min(r−1, c−1) — the smaller of (rows − 1) and (columns − 1) — removes the effect of table shape: a bigger table has more ways to produce a large χ² even under weak association, so V discounts by however many “extra” degrees of freedom the table has beyond the smallest possible non-trivial table (2×2, where min(r−1, c−1) = 1). In this guide that divisor is called df*, to keep it distinct from the ordinary chi-square degrees of freedom, (r−1)(c−1).

Properties worth knowing

  • Symmetric. Swapping the rows and columns of the table gives the same V, so it does not matter which variable you call the predictor.
  • Same p-value as the chi-square test. The p-value attached to V is the one from Pearson’s chi-squared test on the same table; V adds a magnitude, not a second significance test.
  • Percentage-of-maximum reading. V can be viewed as the association between two variables as a percentage of their maximum possible variation.
  • 2×2 special case. For a 2×2 table V equals the absolute value of the phi coefficient.

Why phi doesn’t generalize past a 2×2 table

The phi coefficient is the same idea applied to the one case where min(r−1, c−1) is always 1 by construction: a 2×2 table, two binary variables. In that specific case, V’s formula collapses to φ = √(χ²/n) exactly — phi and V are the same number for a 2×2 table (up to sign), not two competing statistics that happen to agree. The problem is that phi has no min(r−1, c−1) term to divide by once a table grows past 2×2, because for a 2×2 table it’s always dividing by 1, so nobody needed to write it in. Apply the plain √(χ²/n) formula to a larger table and the result is not bounded by 1 — it can exceed 1 as the number of categories grows, which makes it useless as an effect size for comparing across tables of different shapes. Cramér’s V is what you get when you generalize phi correctly: same numerator, but divided by the table’s actual min(r−1, c−1) instead of implicitly assuming it’s 1.

Worked example: a 3×4 table

Take an illustrative (simulated, not drawn from a real study) contingency table cross-tabulating 330 survey respondents’ highest degree held against their preferred primary data-collection method:

Surveys Interviews Observation Secondary/archival data Row total
Bachelor’s 40 25 10 15 90
Master’s 30 45 20 25 120
Doctorate 15 30 35 40 120
Column total 85 100 65 80 330

This is a 3-row × 4-column table, so df* = min(r−1, c−1) = min(2, 3) = 2. Each expected count is (row total × column total) / n — for the Bachelor’s/Surveys cell, (90 × 85) / 330 = 23.18. Summing (observed − expected)² / expected across all 12 cells gives χ² = 39.96 on df = (3−1)(4−1) = 6 degrees of freedom (the ordinary chi-square df, used for the significance test — not the same as df* in V’s denominator). That χ² comfortably exceeds the df = 6 critical value at α = .001 (22.46), so the association is significant at p < .001.

Now compute V: φ² = χ²/n = 39.96 / 330 = 0.1211. Divide by df* = 2: 0.1211 / 2 = 0.0605. Take the square root: V = √0.0605 = 0.246. (Every figure above was computed directly from the table shown, not estimated — rerun the same arithmetic on the same counts and you’ll get the same result.)

Interpreting the result: effect-size bands by degrees of freedom

A raw V of 0.246 means little without a benchmark, and the benchmark isn’t a single fixed number — it depends on df* = min(r−1, c−1), the same quantity from the formula above. Jacob Cohen’s widely used convention (from his 1988 Statistical Power Analysis for the Behavioral Sciences) sets the small, medium and large benchmarks for the underlying effect size w at 0.10, 0.30 and 0.50, and divides them by √df* to get cutoffs for V, so the raw-V cutoffs get smaller as the table gets bigger:

df* = min(r−1, c−1) Small Medium Large
1 (e.g. a 2×2 table — equals phi) 0.10 0.30 0.50
2 0.07 0.21 0.35
3 0.06 0.17 0.29
4 0.05 0.15 0.25
5 0.04 0.13 0.22

For the worked example, df* = 2, so 0.246 sits above the medium threshold (0.21) and below the large threshold (0.35): a medium association between degree level and preferred data-collection method, not merely a “statistically significant” one. This is exactly the kind of comparison a raw χ² of 39.96 can’t support on its own: without normalizing for df*, there’s no way to say whether that χ² reflects a strong association in a small table or a weak one in a large table.

Rounding, and what the bands do not tell you

Published tables of these bands differ slightly in the last digit because of rounding. The rcompanion handbook, adapting Cohen (1988), lists the bands as ranges by k, the smaller number of row or column categories: for k = 2 small is 0.10 to below 0.30, medium 0.30 to below 0.50, and large 0.50 or above; for k = 3 the cutoffs are 0.07, 0.20 and 0.35; for k = 4 they are 0.06, 0.17 and 0.29. The same handbook cautions that the interpretation of measures of association is always relative to the discipline, so Cohen’s labels are a starting point for a field with no better benchmark, not a verdict. Where earlier studies in your field report V for comparable variables, those are the more relevant comparison.

Bias correction step by step

V computed the plain way is a slightly biased estimator: even under true independence, sampling noise pushes χ² (and so V) a little above zero on average, and the bias is worse in small samples and large tables. Under independence the expected value of φ² is (k−1)(r−1)/(n−1), which is the quantity Bergsma’s 2013 correction subtracts. For a table with r rows, k columns and n observations:

  1. φ̃² = max(0, φ² − (k−1)(r−1)/(n−1))
  2. k̃ = k − (k−1)²/(n−1)
  3. r̃ = r − (r−1)²/(n−1)
  4. Ṽ = √( φ̃² / min(k̃−1, r̃−1) )

Apply it to the 3×4 table above (r = 3, k = 4, n = 330, so n−1 = 329, and φ² = 0.12109):

Step Calculation Result
Expected φ² under independence (4−1)(3−1)/329 = 6/329 0.01824
Corrected φ̃² 0.12109 − 0.01824 0.10285
Shrunken columns k̃ 4 − 9/329 3.9726
Shrunken rows r̃ 3 − 4/329 2.9878
Corrected divisor min(3.9726−1, 2.9878−1) 1.9878
Corrected V √(0.10285 / 1.9878) 0.2275

The correction moves V from 0.246 to about 0.227: still a medium association for df* = 2, but a reminder that raw V trends slightly high, particularly when a table has many cells relative to n. According to the Wikipedia article on the statistic, the corrected value estimates the same quantity as V but typically with much smaller mean squared error. The advantage of the corrected estimate grows with table size and shrinks as the sample grows.

Computing it in SPSS, R, Stata and Python

  • SPSS: Analyze > Descriptive Statistics > Crosstabs, then the Statistics button and check Phi and Cramer’s V — SPSS reports both in the same output block, and for a table larger than 2×2 the phi value it prints is the unbounded √(χ²/n) form described above, not a corrected substitute for V. See the chi-square test guide‘s SPSS section for the full Crosstabs walkthrough.
  • R: vcd::assocstats() run on a table object reports V alongside χ² and the contingency coefficient in one call; rcompanion::cramerV() offers a bias-correction option; lsr::cramersV() does not correct. DescTools::CramerV() takes correct = FALSE by default (set it to TRUE for the bias correction) and returns a confidence interval when you set conf.level, for example CramerV(tab, conf.level = 0.95).
  • Stata: tabulate var1 var2, chi2 V prints Cramér’s V beneath the chi-square output in the same table — see the chi-square test in Stata guide for the full tabulate syntax.
  • Python: compute χ² without continuity correction and apply the formula directly.
import numpy as np
from scipy.stats import chi2_contingency

table = np.array([[40, 25, 10, 15],
                  [30, 45, 20, 25],
                  [15, 30, 35, 40]])
chi2 = chi2_contingency(table, correction=False)[0]
n = table.sum()
v = np.sqrt(chi2 / (n * (min(table.shape) - 1)))
print(round(chi2, 2), round(v, 3))   # 39.96 0.246

The data table below the guide compares how four R functions handle correction and what they return on a published worked example, a 4×2 table of county pass/fail counts in the rcompanion handbook, where they agree to rounding: 0.4387 from cramerV, 0.4386881 from DescTools::CramerV and 0.439 from assocstats.

Reporting Cramér’s V

Report the test and the effect size together so a reader can judge both significance and magnitude: the chi-square statistic with its degrees of freedom and sample size, the p-value, V, and the df* that determines the benchmark. For the worked table that reads: χ²(6, N = 330) = 39.96, p < .001, Cramér’s V = 0.25 (medium for df* = 2). When the sample is small relative to the number of cells, giving the bias-corrected value as well (here 0.23) shows how much of V may be sampling noise. That pairing is a reporting practice, not a rule from the sources above; follow your journal’s or discipline’s convention where one exists. If you give a confidence interval, say which method produced it, since DescTools::CramerV() offers four (ncchisq, ncchisqadj, fisher, fisheradj) with ncchisq the default.

Common mistakes

  • Reading V like a Pearson correlation. V has no sign and no “direction” for tables larger than 2×2 — it answers “how strong” but never “which way,” because with more than two categories per variable there usually isn’t a single meaningful direction to report.
  • Skipping the chi-square assumptions before trusting V. V inherits chi-square’s requirement that expected cell counts be reasonably large (conventionally, no more than 20% of cells below an expected count of 5) — a V computed on a sparse table with several near-empty cells is unstable even if the arithmetic runs without error.
  • Comparing raw V values across tables with different df*. A V of 0.30 in a 2×2 table (df* = 1) sits at the medium threshold, while a V of 0.30 in a 5×6 table (df* = 4) is above the large threshold of 0.25 — the scale itself has shifted, so always check df* before comparing V figures from different studies or different tables.
  • Using one set of cutoffs for every table. Calling V = 0.25 “large” for a 4×4 table is a misapplication: with df* = 3 it falls between medium (0.17) and large (0.29).
  • Treating “statistically significant” and “large effect” as synonyms. With a large enough sample, even a trivial V (0.05 or smaller) can produce a significant chi-square p-value. The p-value and the effect size are answering different questions, and reporting only the p-value hides that distinction. See the general effect size guide for how this plays out beyond the categorical case.

Frequently asked questions

Is Cramér’s V the same as phi?

Only for a 2×2 table, where V equals the absolute value of phi. For any table larger than 2×2, phi computed the plain way (√(χ²/n)) can exceed 1, while V divides further by min(r−1, c−1) to stay within 0 to 1 regardless of table size — see the phi coefficient guide for the 2×2 case in full.

What counts as a “good” Cramér’s V value?

There’s no single cutoff — it depends on df* = min(r−1, c−1) for your table. Use the Cohen’s-convention table above: a V that reads as “large” in a 2×2 table (0.50) is only “large” at 0.25 in a table with df* = 4 such as 5×6, because bigger tables have more room to generate association by chance and the bands are scaled down accordingly. Cohen’s labels were set for the behavioural sciences, so compare with benchmarks from your own field where they exist.

Can Cramér’s V be negative?

No. V is a square root of a squared quantity by construction, so it’s always ≥ 0. This is a deliberate difference from Pearson’s r or a signed 2×2 phi — V reports magnitude of association only, never direction.

How is Cramér’s V different from Cohen’s w?

They’re closely related, not different statistics: Cohen’s w is √(χ²/n) — the same φ² term used in V’s numerator — used as a general chi-square effect size independent of table shape, most often for goodness-of-fit tests against a single categorical variable. V is what w becomes once you additionally divide by min(r−1, c−1) to make it comparable specifically across two-variable contingency tables of different sizes.

Is Cramér’s V biased?

Yes, slightly upward. Even for independent variables the expected value of φ² is (k−1)(r−1)/(n−1), above zero, so small samples and large tables inflate V. Bergsma’s (2013) correction subtracts that term and shrinks the effective row and column counts; the section above works through it for the 3×4 example.

How do I get a confidence interval for V in R?

DescTools::CramerV() returns one when you supply conf.level (default NA, which computes no interval); its documentation lists ncchisq, ncchisqadj, fisher and fisheradj as methods and gives a bootstrap example for comparison.

Which R function gives the bias-corrected V?

DescTools::CramerV(x, correct = TRUE) and the bias option in rcompanion::cramerV(). The lsr::cramersV() function is the uncorrected version.

Does V have its own p-value?

No separate one. The p-value is the one from Pearson’s chi-squared test on the same table, so a significant chi-square test and a nonzero V always go together; V tells you how large the association is.

Sources

Sources (accessed 2026-11-15):

Data: Cramér's V functions in common R packages: bias correction, interval option and example output

Compares how R functions compute Cramér's V, whether a bias correction is offered, whether a confidence interval is available, and the value each reports on the rcompanion handbook's 4×2 county pass/fail example, compiled from package documentation and the handbook.

Period covered: 2013/2026.

Cramér's V functions in common R packages: bias correction, interval option and example output
Package::functionBias correctionConfidence interval optionValue on rcompanion handbook example
rcompanion::cramerVoption offerednot stated in source0.4387
DescTools::CramerVcorrect = TRUE (default FALSE)conf.level (default NA, none); methods ncchisq, ncchisqadj, fisher, fisheradj0.4386881
vcd::assocstatsnot stated in sourcenot stated in source0.439
lsr::cramersVnone (uncorrected)not stated in sourcenot stated in source

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Cramér’s V: Effect Size for Categorical Association

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →