Sample Size Calculator

Determine the required sample size for surveys and studies based on confidence level, margin of error, and population size.

How confident you want to be that results are accurate.

%

The acceptable range of error (e.g., ±5%).

%

Expected proportion (use 50% if unknown for maximum sample size).

Total size of the population you are studying.

AI Financial Assistant

Beta

Ask questions about your calculation results

I can help you understand your results and explore your options. Try asking:

3 free questions per session

AI provides general information, not financial advice. Always consult a qualified professional.

Why Sample Size Matters

Sample size directly affects the reliability of your results. Too small a sample leads to unreliable conclusions with wide confidence intervals. Too large wastes resources. Calculating the right sample size before collecting data ensures your study has enough statistical power to detect meaningful differences.

How Sample Size Is Calculated

The formula uses four inputs: confidence level (z-score), margin of error, population proportion, and population size. For large populations, n = (z² × p × (1-p)) / e², where z is the z-score, p is the proportion, and e is the margin of error. A finite population correction is applied for smaller populations.

Choosing Your Parameters

A 95% confidence level and 5% margin of error are standard for most surveys. If you do not know the expected proportion, use 50% — this maximizes the required sample size, ensuring your estimate is conservative. Lower margins of error require larger samples.

Sample Size for Common Scenarios

For a national survey with 95% confidence and ±3% margin, you need about 1,067 respondents. For a small town of 5,000 with the same parameters, about 880. As population grows beyond ~20,000, the required sample size barely changes — you approach the infinite population formula.

Frequently Asked Questions