Method document
Achieved power for a chi-square test
Calculates the probability that a chi-square test of independence or goodness of fit rejects its null hypothesis, for a specified total sample size, Cohen’s w, degrees of freedom, and significance level.
https://statwisely.com/methods/power-chi-square/
When to use it
- Assess the sensitivity of a test of association in an r × c table, or of a goodness-of-fit test against stated category proportions.
Not for
- With small expected cell counts the chi-square approximation is poor; an exact test is then safer than its power calculation suggests.
Notation
- Total participants.
- Cohen’s w, the effect size for categorical data.
- Degrees of freedom: (r − 1)(c − 1) for independence, categories − 1 for goodness of fit.
- Noncentrality, Nw².
Formulas
Effect size from cell proportions
p₀ are the cell proportions under the null and p₁ those expected. Cohen’s benchmarks are w = 0.10, 0.30, and 0.50 [1].
Parameters
Total sample size
Values: Integer, at least 2
Enter all participants classified in the table.
Degrees of freedom
Values: Integer, at least 1
(rows − 1) × (columns − 1) for a test of independence; categories − 1 for goodness of fit.
Effect size (Cohen’s w)
Values: Positive
From expected and null cell proportions, as in the formula; 0.10, 0.30, and 0.50 are small, medium, and large.
Significance level
Values: Between 0 and 1
The type I error rate for the specified test.
Assumptions
- Observations are independent and each falls in exactly one cell; expected cell counts are large enough for the chi-square approximation.
- F and chi-square tests reject only in the upper tail, so there is no one- or two-sided choice.
Worked examples
A worked input set
For 100 participants in a 2 × 3 table (ν = 2) and a medium effect, w = 0.30, at α = 0.05: λ = 100 × 0.30² = 9.
Sample size: 100
Open this example in the calculatorValidation
- Power is the exact noncentral chi-square tail probability. It agrees with pwr::pwr.chisq.test in R and with G*Power, and at the size the test-of-independence calculator returns it reaches that calculator’s target power.
How to cite
StatWisely. Achieved power for a chi-square test. Method document, engine version 1.0.0, reviewed 2026-10-03. https://statwisely.com/methods/power-chi-square/
Cite the original references for the formulas your design uses as well.
References
- 1.Cohen J. Statistical Power Analysis for the Behavioral Sciences. 2nd ed. Hillsdale, NJ: Lawrence Erlbaum Associates; 1988.
- 2.Agresti A. Categorical Data Analysis. 3rd ed. Hoboken, NJ: John Wiley & Sons; 2013.