sample size calculator

Leave blank if your population is very large or unknown.
Common survey target: 3% to 5%.
If unsure, use 50% for the most conservative sample size.
Use 1 for simple random sampling; higher values for clustered designs.
Used to estimate how many people you should invite.

What is a sample size calculator?

A sample size calculator helps you estimate how many responses you need before collecting data. Whether you're running a customer survey, an A/B test, a public opinion poll, or a research study, choosing the right sample size can make your conclusions more trustworthy.

If your sample is too small, your results can swing wildly and mislead decisions. If your sample is too large, you may spend unnecessary time and money. The goal is to find the “just right” balance between precision and effort.

Why sample size matters

Sample size directly affects statistical confidence. A larger sample generally gives a smaller margin of error, meaning your estimate is tighter and more stable. A smaller sample has greater uncertainty.

  • Business surveys: Avoid overreacting to noisy results.
  • Academic research: Increase reproducibility and statistical validity.
  • Product analytics: Improve decision quality when prioritizing features.
  • Healthcare or social science: Support ethical, evidence-based conclusions.

Inputs used in this calculator

1) Confidence level

The confidence level reflects how certain you want to be that the true value falls inside your interval. Common options are 90%, 95%, and 99%. Higher confidence requires a bigger sample.

2) Margin of error

This is your acceptable error tolerance (for example, ±5%). A smaller margin of error means you want more precision, which increases required sample size.

3) Estimated proportion

This is your expected percentage for the outcome of interest (for example, 60% satisfaction). If unknown, use 50% because it produces the largest required sample and is the safest planning assumption.

4) Population size

For very large populations, sample size is mostly driven by confidence and margin of error. For smaller populations, finite population correction reduces the needed sample.

5) Design effect and response rate

Design effect adjusts for non-random or clustered sampling methods. Response rate helps convert required completed responses into the number of people you should contact.

Formula used

The calculator first computes a baseline sample size for large populations:

n₀ = (Z² × p × (1 − p)) / e²

Then it applies design effect (if any), and finite population correction when population size is provided:

n = n₀ / (1 + (n₀ − 1)/N)

Finally, it adjusts invitation count using expected response rate.

Practical example

Suppose you want to survey employees in a company of 2,000 people with 95% confidence and ±5% margin of error. If you assume 50% proportion and 80% response rate, the calculator will estimate:

  • Completed responses needed (after population correction)
  • How many people you should invite to realistically hit that target

This keeps your survey planning realistic and statistically sound.

Common mistakes to avoid

  • Using a very small sample and assuming it is representative.
  • Ignoring response rate and under-inviting participants.
  • Choosing overly strict precision without budget to support it.
  • Skipping design effect when sampling is clustered or stratified.
  • Treating sample size as the only quality factor (bias and sampling frame still matter).

Final note

This tool is excellent for planning and quick estimation. For high-stakes research, pair sample-size planning with proper study design, power analysis (for hypothesis testing), and expert statistical review.

🔗 Related Calculators

🔗 Related Calculators