Precision-based sizing finds the per-group n that gives a confidence interval on a difference of proportions a target half-width.
The Wald formula n = z² · (p₁·(1−p₁) + p₂·(1−p₂)) / E² uses the expected p values per arm. Conservatism via p = 0.5 in each arm; tighter values are available with Newcombe / Wilson formulations for unequal arms.
p₁ + p₂ + target half-width + confidence.
Required n per group.
Use the most conservative (largest) n by setting p₁ = p₂ = 0.5 when uncertain about expected rates.