Comparing two rates uses the ordinary two-proportion formula, and every figure here falls out of it: n = (zα/2 + zβ)² × [p₁(1−p₁) + p₂(1−p₂)] ÷ (p₂ − p₁)². At the conventional settings, a two-sided 5% significance level so zα/2 = 1.96 and 80% power so zβ = 0.84, the leading constant is 2.8² = 7.84.
Each term is something you decide before collecting anything. p₁ is the rate you start from, measured rather than guessed. p₂ is the rate you want to be able to detect, a business decision: the smallest improvement that would change what you fund next quarter. δ = p₂ − p₁ is that difference, written as a decimal. And n is observations in each period, where one observation is one prompt, run once, on one engine.
Work one row by hand so the rest is checkable. From 30% to 40%: 0.30 × 0.70 = 0.21, plus 0.40 × 0.60 = 0.24, sum 0.45, times 7.84 is 3.528, divided by δ² = 0.01 gives 352.8. So 353 observations before and 353 after.
None of this is specific to AI search: it is the arithmetic of any comparison of a binary outcome, and the version above is the smaller of the two in circulation. Casagrande, Pike and Smith’s continuity-corrected formula, which most calculators run, returns a larger n, so read every figure here as a floor.6 Precision on one rate and detection of a difference between two are different calculations, and a panel sized for the first is routinely too small for the second; sizing for precision is Prompt research’s how many prompts and runs.