Understanding sample size
Every survey faces the same question before a single answer is collected: how many people are enough? Ask too few and the result wobbles; ask too many and time and money are spent collecting answers that add almost nothing. The sample size sits between those two wastes, and it is not a guess: it follows from three choices — how confident the result must be, how close it must come to the truth, and roughly what proportion is expected.
Formula and method
(1 − p) — the rest of the population, so p(1 − p) measures how much variation the survey must cope with
The sample size for a proportion: z — the critical z value, set by the confidence level: 1.645 for 90%, 1.96 for 95%, 2.58 for 99%. p — the expected proportion in the population, as a decimal between 0 and 1; 0.5 is the cautious choice when nothing is known. E — the margin of error, as a decimal: 0.05 means the result should sit within five percentage points of the truth. n — the sample size, the number of people to survey, always rounded up. Why the answer is rounded up. The formula usually gives a decimal, such as 384.16, and a survey cannot interview 0.16 of a person. Rounding down to 384 would give a margin slightly wider than the one asked for, so the result is always rounded up — to 385 in that case. Why p = 0.5 is the safe choice. The product p(1 − p) is largest when p is 0.5, at 0.25 — for p = 0.2 it is 0.16 — so using 0.5 gives the largest sample size and covers the worst case. When a good estimate of p exists, using it gives a smaller sample, but if the guess is wrong the margin may end up wider than planned. Why halving the margin quadruples the sample. The margin E is squared in the denominator, so halving it divides the denominator by four and multiplies the whole result by four: a survey twice as precise needs four times the interviews.
Worked example
Example 1 — z = 1.96, p = 0.5, E = 0.05 (the live-page example) A survey at 95% confidence, with no prior guess at the proportion and a margin of five percentage points. z² = 1.96² = 3.8416 p(1 − p) = 0.5 × 0.5 = 0.25 Numerator: 3.8416 × 0.25 = 0.9604 Denominator: E² = 0.05² = 0.0025 Raw result: 0.9604 ÷ 0.0025 = 384.16 Result: 385 This is the stored example on the live page, and the arithmetic above reproduces it. The raw figure of 384.16 is rounded up, not to the nearest whole number, because 384 people would give a margin a fraction wider than the five points promised, while 385 keeps it inside. The number 385 is the standard answer for a 95% survey with a five-point margin and no prior estimate.