Start with the decision, not the formula
Power planning asks how often a planned test will detect a prespecified effect if that effect is real. Precision planning asks how narrowly you want to estimate a quantity. You can have enough precision to describe a rate without enough power to detect a small difference between two rates.
A worked example
Suppose you need a 95% confidence interval for a survey proportion with a margin of error of 5 percentage points. If you have no prior estimate, p = .50 gives the largest binomial variance. The normal-approximation calculation is 1.96² × .50 × .50 / .05², rounded up to 385 completed observations. It assumes independent observations and is a planning approximation, especially near a boundary.
If instead you are comparing a 30% rate against a 40% rate, you need a model for the difference and its sampling variability. Under StatPower’s equal-group assumptions, a two-sided test at α = .05 and 80% power needs 356 per group. These numbers answer different questions and are not interchangeable.
Build the plan around the primary goal
If both goals matter, check both and justify whichever sets the larger target after accounting for design and missingness. Do not apply a simple-random-sample margin directly to clustered or weighted data.
Open the proportion precision calculator · Open the two-proportion power calculator · NIST: confidence limits for the mean.