Formula n1 = [Z(a/2) sqrt((1 + 1/k) p̄ q̄) + Z(b) sqrt(p1 q1 + p2 q2 / k)]^2 / (p1 - p2)^2, n2 = k x n1.
Assumptions Two independent groups, two-sided test, no continuity correction. Proportions are the true values you expect, not just guesses at the boundary. Limitations A continuity-corrected or exact method gives somewhat larger sizes for small samples. Does not model clustering or stratification. References Fleiss JL, Levin B, Paik MC. Statistical Methods for Rates and Proportions. 3rd ed. Hoboken: Wiley; 2003. Kelsey JL, Whittemore AS, Evans AS, Thompson WD. Methods in Observational Epidemiology. 2nd ed. New York: Oxford University Press; 1996. Lwanga SK, Lemeshow S. Sample Size Determination in Health Studies: A Practical Manual. Geneva: World Health Organization; 1991. Runs in your browser with fixed formulas. No AI, no AI credits, and your inputs are not sent anywhere. This is a planning aid and not a substitute for review by a qualified statistician.