How many participants to show a rate differs from a benchmark — a complication rate against a national figure, adherence against an audit target.
This uses the standard normal-approximation formula with the null variance under the reference proportion and the alternative variance under the expected proportion: n = (z1−α/2·√(p₀(1−p₀)) + z1−β·√(p₁(1−p₁)))² / (p₁−p₀)². It is accurate when n·p and n·(1−p) are comfortably above 5; for very small samples or proportions near 0 or 1, an exact binomial calculation is the better tool.
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: comparing two proportions · one mean vs a reference value · logistic regression (events per variable) · all calculators