How many participants you need to detect a difference between two percentages — two trial arms, exposed vs unexposed, screened vs not.
This calculator uses the standard normal-approximation (z) formula for two independent proportions with pooled variance under the null — the sample-size counterpart of the uncorrected chi-square test. Per group, n = (z1−α/2·√((1+1/k)·p̄(1−p̄)) + z1−β·√(p₁(1−p₁)+p₂(1−p₂)/k))² / (p₁−p₂)², where p̄ is the allocation-weighted average proportion and k the allocation ratio.
With the defaults — 30% vs 15%, α = 0.05, 80% power, equal groups — you need about 121 per group. Small absolute differences between small proportions are expensive: detecting 5% vs 3% takes thousands, not hundreds.
A sample size is one line of a statistical plan. MedStatica turns a plain-language description of your study into the full plan — design, recommended analysis, power, causal diagram, methods paragraph, and runnable R, Python, SAS, and Stata code. The first plans are free, no card required.
Plan my study free →Related calculators: one proportion vs a reference · comparing two means · survival analysis (log-rank / Cox) · all calculators