Sample Size Calculator

Estimate a simple survey sample size for a proportion using confidence, margin of error and expected proportion.

← Math Tools

Estimate a simple survey sample size for a proportion using confidence level, margin of error and expected proportion.

Result: Enter assumptions.

How to plan your survey

  1. Choose a confidence level: 90%, 95% or 99%. Higher confidence requires more completed responses when other assumptions stay the same.
  2. Enter the margin of error in percentage points. A margin of 5 means roughly ±5 points around a proportion, not 5% of that proportion.
  3. Enter the expected percentage with the characteristic you are measuring. If you have no reasonable prior estimate, 50% gives the largest sample requirement for this formula.
  4. Leave population blank for the large-population estimate, or enter the total number of eligible people or items when sampling without replacement from a known finite population.

Formula and worked example

The large-population calculation is n₀ = z²p(1 − p) / e², using p and e as decimals. This tool uses z = 1.645, 1.96 and 2.576 for 90%, 95% and 99% confidence. For a known finite population N, it calculates n = n₀ / [1 + (n₀ − 1)/N]. Only the final sample is rounded upward.

At 95% confidence, a 5-point margin and an expected proportion of 50%, n₀ = 384.16, so plan for 385 completed responses. If the eligible population is 1,000, the adjusted value is approximately 277.74, rounded up to 278 responses.

What the result does—and does not—mean

This is an approximate planning calculation for a single proportion under simple random sampling. It is not an exact confidence-interval guarantee, a sample size for estimating a mean, or a power calculation for an experiment or A/B test. Voluntary website polls and convenience samples can remain biased even with many responses.

The result counts usable, completed responses, not invitations. For example, obtaining 385 responses at an anticipated 60% response rate would require about 642 invitations, assuming enough eligible people are available. Nonresponse can also introduce bias; sending more invitations alone does not fix it.

Common questions

When should I use the population field?

Use the number of distinct eligible members of the population you intend to describe. The correction assumes sampling without replacement. Do not enter the number of people you have already surveyed or an unrelated audience size.

Why is there a warning for rare outcomes?

The normal approximation can perform poorly with very small expected counts. The tool flags cases where either expected outcome count is below 10. This is a screening check, not a complete validity test; rare outcomes and small populations may need exact methods or a different design.

Can I use this for clustered surveys?

Not without further planning. Clustering, unequal selection probabilities, subgroup precision and nonresponse may require design adjustments. This calculator does not automatically apply a design effect.

Method references: University of Florida: determining sample size and CDC: population survey sample-size assumptions. Explore related math and statistics tools.

Related tools