Statistics & Data Science · pattern A, Numeric fields
Enter your confidence level, margin of error and expected proportion for the required sample size, with the finite-population correction applied where your population is small.
n = z²p(1 − p) ÷ e²
Use p = 0.5 when you have no prior estimate: it maximises the required size, so the result is a safe upper bound.
385
Halving the margin of error multiplies the sample size by four, which is why national polls settle around 1,000 respondents for a three-point margin and why a one-point margin is rarely attempted. Population size matters far less than students expect: above roughly 20,000 the required sample barely moves, so a national survey and a city survey need similar numbers.
If the number is not the part you are stuck on, that is what the service is for — a specialist who explains the working, not just the answer.
Statistical output here is for coursework and learning. Reported p-values and intervals assume the conditions stated on the page; nothing here checks whether those conditions hold for your data.