How this tool computes its result
Computes a Wald confidence interval for a single proportion: p̂ = successes / sample size, standard error = √(p̂(1−p̂)/n), margin = z × standard error, with the interval clamped to [0,1]. The z-score comes from a fixed lookup table for four confidence levels (80/90/95/99%). It also reports the classic minimum sample size needed for a ±5% margin at the selected confidence level, computed as ceil(z² × 0.25 / 0.05²), where 0.25 is the worst-case p(1−p) value at p = 0.5.
