Home / Math Calculators / Sample Size Calculator

Sample Size Calculator

Estimate how many participants or survey responses you need. Set your confidence level, margin of error, population size, and study assumptions to calculate a practical target sample size.

Study details

Choose proportion for yes/no outcomes or mean when estimating a numeric average.
For a mean, this is the margin in the same units as the standard deviation.
Use 50% when the true proportion is unknown for a conservative estimate.
Enter the total eligible population to apply finite population correction.
Use 1 for a simple random sample.
Inflates invitations to account for people who may not respond.

This is a planning estimate based on common normal-approximation formulas. It does not replace a power analysis for hypothesis testing or specialist advice for complex survey designs.

Recommended sample size

Target number to recruit / invite
427
With 95% confidence, a 5% margin of error, and 10% expected nonresponse, plan to invite about 427 people.
n₀ = Z² × p(1 − p) / e²
Required completed responses385
After population correction385
Confidence level95%
Margin of error±5%
For a proportion, a 50% expected response is the conservative default because it produces the largest sample size.

Calculation steps

  1. Use Z = 1.96 for 95% confidence.
  2. Calculate the initial sample size using the selected assumptions.
  3. Apply population correction and design effect if entered.
  4. Adjust for expected nonresponse and round up to a whole person.

How to use the Sample Size Calculator

  1. Choose whether you are estimating a proportion or a mean.
  2. Select a confidence level and set the acceptable margin of error.
  3. For a proportion, enter an expected percentage. For a mean, enter the estimated standard deviation.
  4. Optionally enter population size, design effect, and expected nonresponse rate.
  5. Click Calculate sample size to see the completed-response target and how many people to invite.

Sample size formulas

For a proportion in a large population, the initial sample size is calculated using the confidence-level Z score, expected proportion, and margin of error.

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

For a mean, the approximate initial sample size is:

n₀ = (Z × σ / E)²

When a finite population size N is known, a finite population correction can be applied: n = n₀ / [1 + (n₀ − 1) / N]. The estimate is then adjusted for design effect and expected nonresponse. Final sample sizes are rounded up because a fraction of a participant is not possible.

Example

For a large population, a 95% confidence level, a 5% margin of error, and an expected proportion of 50%, the standard estimate is about 385 completed responses. If 10% of invitees are expected not to respond, invite approximately 428 people (rounded up).

Frequently asked questions

What is sample size?

Sample size is the number of observations, participants, or completed responses included in a study. The required number depends on the study objective, variability, confidence level, precision, and sampling design.

What confidence level should I use?

95% is a common default for surveys. A 90% confidence level usually needs fewer responses, while 99% usually needs more, assuming other inputs stay the same.

What does margin of error mean?

Margin of error describes the desired precision around an estimate. A smaller margin requires a larger sample. In proportion mode it is entered as a percentage; in mean mode it is entered in the same units as the standard deviation.

Why use 50% for the expected proportion?

When the true proportion is unknown, 50% maximizes p(1 − p) and therefore gives a conservative sample size for the same confidence level and margin of error.

What is finite population correction?

When sampling a meaningful fraction of a known, finite population without replacement, correction can reduce the required sample size compared with assuming an unlimited population.

Does this calculator perform statistical power analysis?

No. It estimates sample size for a proportion or mean with a target margin of error. Power analysis for comparing groups, detecting effects, or testing hypotheses requires additional inputs such as effect size, statistical power, and significance level.

How many people should I invite if some will not respond?

Divide the required completed sample by the expected response rate. For example, if 385 completed responses are needed and 90% are expected to respond, invite at least 385 ÷ 0.90, rounded up.

Results are approximate planning values. Complex sampling, clustering, weighting, subgroup analysis, or non-normal data may require a more specialized method.