Skip to main content

Sample Size Calculator

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

Advertisement

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 Math 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 assistance. Always verify important calculations.

About This Calculator

Determining the right sample size before conducting a survey or experiment prevents wasted resources and ensures statistically meaningful results. This calculator factors in your desired confidence level, margin of error, and population size to recommend the minimum number of observations needed. Too small a sample risks unreliable conclusions, while too large a sample wastes time and budget unnecessarily.

Quick Tips

  • 1 Halving your margin of error requires quadrupling your sample size.
  • 2 For unknown population proportions, use 50% — it gives the largest sample.
  • 3 Response rates of 10-20% mean you need to contact 5-10x your target sample.

Example Calculation

Scenario

Customer survey: 95% confidence, 4% margin of error, 50% estimated proportion.

Result

Required sample size: 601 | 50% proportion gives the most conservative (largest) estimate

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