Cramér's V Calculator

Effect size for chi-square tests.

Examples:

Enter chi-square, sample size, and table dimensions

What Is Cramér's V?

Cramér's V measures the strength of association between two categorical variables. It's the effect size companion to the chi-square test of independence.

Question answered: "How strongly are these two categorical variables related?"

Range: 0 to 1

  • 0 = no association
  • 1 = perfect association

Why Use Cramér's V?

The chi-square statistic depends on sample size—a tiny association can be "significant" with large n. Cramér's V provides a standardized measure of effect size.

Example:

  • Study 1: χ² = 15.3, n = 200, p = .001
  • Study 2: χ² = 15.3, n = 2000, p = .001

Same χ², but:

  • Study 1: V = 0.28 (moderate association)
  • Study 2: V = 0.09 (weak association)

The larger sample detected a weaker effect.

The Formula

V=χ2n×min⁡(r−1,c−1)V = \sqrt{\frac{\chi^2}{n \times \min(r-1, c-1)}}

Where:

  • χ2\chi^2 = chi-square statistic
  • nn = total sample size
  • rr = number of rows
  • cc = number of columns

Example Calculation

Contingency table: Preference by region (3 regions × 3 preferences)

Prefer APrefer BPrefer CTotal
North453025100
Central354025100
South203050100
Total100100100300

Step 1: Calculate chi-square

χ2=25.0\chi^2 = 25.0

Step 2: Calculate Cramér's V

V=25.0300×min⁡(3−1,3−1)=25.0300×2=0.0417=0.204V = \sqrt{\frac{25.0}{300 \times \min(3-1, 3-1)}} = \sqrt{\frac{25.0}{300 \times 2}} = \sqrt{0.0417} = 0.204

Interpretation: Moderate association between region and preference.

Interpretation Guidelines

Cohen's Conventions (adapted)

df*SmallMediumLarge
10.100.300.50
20.070.210.35
30.060.170.29
40.050.150.25
50.040.130.22

*df = min(r-1, c-1)

General Guidelines

VInterpretation
0.00-0.10Negligible
0.10-0.20Weak
0.20-0.40Moderate
0.40-0.60Relatively strong
0.60-0.80Strong
0.80-1.00Very strong

Special Cases

2×2 Tables

For 2×2 tables, Cramér's V equals the absolute value of the phi coefficient:

V=∣ϕ∣=χ2nV = |\phi| = \sqrt{\frac{\chi^2}{n}}

2×k or r×2 Tables

V=χ2n×1=χ2nV = \sqrt{\frac{\chi^2}{n \times 1}} = \sqrt{\frac{\chi^2}{n}}

This equals phi or the contingency coefficient for appropriate table sizes.

Related Effect Size Measures

Phi Coefficient (φ)

For 2×2 tables only:

ϕ=χ2n\phi = \sqrt{\frac{\chi^2}{n}}

Can range from -1 to +1, indicating direction.

Contingency Coefficient (C)

C=χ2χ2+nC = \sqrt{\frac{\chi^2}{\chi^2 + n}}

Maximum value depends on table size, making comparison difficult.

Tschuprow's T

T=χ2n×(r−1)(c−1)T = \sqrt{\frac{\chi^2}{n \times \sqrt{(r-1)(c-1)}}}

Alternative standardization, equals V for square tables.

Comparison of Measures

MeasureTablesRangeNotes
Phi (φ)2×2-1 to +1Shows direction
Cramér's VAny0 to 1Most versatile
Contingency CAny0 to <1Max varies by table size
Tschuprow's TAny0 to 1Stricter than V

Recommendation: Use Cramér's V for tables larger than 2×2; use phi for 2×2 tables.

Confidence Interval for V

Bootstrapping is the most reliable method:

  1. Resample the contingency table with replacement
  2. Calculate V for each resample
  3. Use percentiles for CI

Analytical approximations exist but are complex.

Bias Correction

Cramér's V has positive bias, especially with small samples.

Bias-Corrected V

Vcorrected=max⁡(0,χ2/n−(r−1)(c−1)/(n−1)(min⁡(r,c)−1)−((min⁡(r,c)−1)2−1)/(n−1))V_{corrected} = \sqrt{\max\left(0, \frac{\chi^2/n - (r-1)(c-1)/(n-1)}{(\min(r,c)-1) - ((\min(r,c)-1)^2-1)/(n-1)}\right)}

Use this correction for small samples or when comparing across studies.

Applications

Survey Research

Relationship between demographics and opinions:

  • Gender × political affiliation
  • Education level × product preference
  • Age group × technology adoption

Medical Research

Association between categorical variables:

  • Treatment × outcome category
  • Risk factor × disease status
  • Symptom × diagnosis

Market Research

  • Brand preference × customer segment
  • Purchase behavior × marketing channel
  • Product choice × region

Social Sciences

  • Voting behavior × demographic factors
  • Educational attainment × social class
  • Occupation × gender

Reporting Results

APA format:

"A chi-square test of independence showed a significant association between region and product preference, χ²(4) = 25.0, p < .001, Cramér's V = .20, indicating a moderate relationship."

Include:

  • Chi-square statistic with degrees of freedom
  • P-value
  • Cramér's V
  • Interpretation of effect size

Common Mistakes

Confusing Significance with Strength

A significant χ² doesn't mean a strong association. Always report Cramér's V.

Using Wrong df in Formula

df = min(r-1, c-1), not (r-1) × (c-1).

Ignoring Table Dimensions

Effect size interpretation depends on degrees of freedom. A V of 0.25 is "medium" for df = 2 but "large" for df = 4.

Not Reporting with Chi-Square

Always report Cramér's V (or another effect size) alongside chi-square tests.

Limitations

No Direction for Larger Tables

Unlike phi, Cramér's V doesn't indicate direction of association for tables larger than 2×2.

Assumes Nominal Variables

For ordinal variables, consider gamma or Kendall's tau instead—they use ranking information.

Maximum May Not Be 1

In some tables with structural zeros, V cannot reach 1.

When V = 0 vs. V = 1

V = 0 (No Association)

Each cell frequency equals what's expected under independence.

V = 1 (Perfect Association)

Each row (or column) has all observations in one cell—knowing one variable perfectly predicts the other.

Historical Context

Harald Cramér (1893-1985) was a Swedish mathematician who contributed to probability theory and mathematical statistics.

Cramér's V was developed to address the limitation of the phi coefficient to 2×2 tables, providing a standardized association measure for any contingency table size.

Related Calculations

Summary

Cramér's V measures association strength between categorical variables, ranging from 0 (no association) to 1 (perfect association). Calculate it from chi-square: V = √(χ²/(n × min(r-1, c-1))). Interpretation depends on degrees of freedom—use guidelines specific to your table size. Always report V alongside chi-square tests to distinguish statistical significance from practical significance. For 2×2 tables, phi coefficient provides directional information.