Sample size in simple words
A survey asks a sample (some of the people) instead of everyone. The sample size is how many answers you need so the result is close enough to what everyone would say.
Three choices set the size. The margin of error is how close you need to be, such as within 5 percentage points. The confidence level is how sure you want to be, such as 95%. The expected proportion is your best guess of the answer; 50% is the safest guess because it needs the most answers.
Example: at 95% confidence (z = 1.96), a 5-point margin and a 50% guess, n = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.16. You cannot ask part of a person, so round up to 385 answers.
If the whole group is small, you need fewer. For a school of 1,000 students the same survey needs 278 answers. If only half the people you ask will reply, invite twice as many.
Formula and method
For expected proportion p and margin e, n₀ = z²p(1 − p)/e². A finite population N adjusts this to n₀/[1 + (n₀ − 1)/N]; round up.
Worked example
At 95% confidence, 50% expected proportion and a 5 percentage-point margin, an unspecified population needs 385 completed responses. A population of 1,000 needs 278.