The common starting point
You enter
- Confidence
- 95
- Margin
- 5
- Proportion
- 0.5
- Population
You get
- Required sample size
- 385
- Unrounded estimate
- 384.1459
- Finite population correction
- not applied
The formula is z squared times p times (1 - p), divided by the margin squared. With z = 1.96, p = 0.5 and 0.05, that is about 384.15, and the tool rounds up to 385.
Run through the tool’s own code.