Choose the accuracy you need
Use this calculator to plan a simple random sample for a survey proportion, such as the share of customers who answer yes to a question. A 95% confidence level means that, over repeated samples, about 95% of intervals calculated by the method would contain the true population proportion. A margin of error of 5% means ±5 percentage points.
Use 50% for the expected proportion when you have no previous estimate. A proportion of 50% gives the largest required sample for the same margin of error and confidence level. If you have a reliable prior estimate, use it to plan for your survey question.
How the sample size is calculated
For a large or unknown population, use n₀ = z² × p × (1 − p) / e². Here z is the standard normal critical value for your confidence level, p is the expected proportion, and e is the margin of error. Enter percentages in the calculator. The formula uses decimals, so 5% becomes 0.05. For rare outcomes or small planned samples, the normal approximation can give actual coverage below the selected confidence level.
For a known population of size N, the finite population correction gives n = N × n₀ / (N + n₀ − 1). This applies when sampling without replacement. The calculator rounds the final estimate up to a whole number of completed responses.
Worked examples
With 95% confidence, a 5-percentage-point margin of error, and an expected proportion of 50%, a large population requires 385 completed responses. With the same settings and a population of 1,000, the required sample is 278 completed responses. If you expect some people to skip the survey, plan invitations separately from the number of completed responses.