Free online tools

Sample Size Calculator for a Proportion

Estimate the sample size for a percentage from a simple random sample. Enter precision in percentage points and add the population size if sampling without replacement.

Enter your values

Enter 5 for a target of ±5 percentage points.

Use 50% to plan for the largest variance when the expected percentage is unknown.

Use the total number of eligible items or people. Leave blank for the large-population calculation.

This tool processes your input in your browser.

Result

Choose a margin for an estimated percentage

Under the normal approximation, the large-population sample size equals the squared critical value times p(1 − p), divided by squared margin of error. Use a proportion and a margin on the 0–1 scale inside that formula. The form converts from percentages for you and rounds up to a whole response count.

Adjust for a known finite population

When sampling without replacement, the calculation can account for the share of the population sampled. If N is the population size and n₀ is the unrounded large-population result, the adjusted size is N × n₀ ÷ (N + n₀ − 1).

Frequently asked questions

Is the result the number of invitations to send?

The output is completed responses. A full survey plan also needs an expected response rate and a strategy for nonresponse.

When is the formula intended to apply?

It estimates one population proportion from a simple random sample using the normal approximation. Confidence and margin are planning inputs, and accuracy can be limited for rare outcomes or small samples.

Can I use this for a mean or a two-group comparison?

This form uses the variance of one proportion. A mean estimate or an experiment comparing groups needs a separate sample-size model.