Sample Size Calculator

Required completed responses

385

Margin at the rounded sample size

4.994451 pp

All results
Calculator inputs
?

Use sample size to plan a survey or margin of error to assess sampling precision for a fixed number of responses.

?

The long-run coverage level of the chosen interval procedure. Higher confidence requires a larger multiplier.

?

Absolute half-width. For example, a result of 60% ± 5 points spans 55% to 65%.

?

Use a plausible share for the outcome. At 50%, p(1−p) is largest and the model gives its most conservative sample size.

?

Enter the number of eligible units for simple random sampling without replacement, or 0 to omit the finite population correction.

How confidence changes required responses

Confidence varies while the proportion, population and other entered planning assumptions stay fixed.

90%271
95%385
98%542
99%664

Compare survey plans by confidence level

Compare survey plans by confidence level
ConfidenceCritical zCompleted responsesModeled margin
90 %1.644853632714.9958871 pp
95 %1.959963983854.9944507 pp
98 %2.326347875424.99625987 pp
99 %2.57582936644.99807817 pp

How to use the Sample Size Calculator

Plan survey sample size or estimate margin of error for a proportion. Compare confidence levels and apply a finite population correction.

  1. 1. Enter your inputs

    Start with Find, Confidence level, Target margin of error, Expected proportion. Use the units shown beside each field and open the field help when you need its assumptions.

  2. 2. Read the results

    Results update as you enter valid values. Review Required completed responses, Margin at the rounded sample size, Normal critical value. Keep the entered units and settings consistent when comparing scenarios.

  3. 3. Check the calculation

    Normal approximation for simple random sampling. Small expected event counts can make this approximation unreliable. Coverage, nonresponse, weighting and cluster effects require separate analysis.

    See the worked example and method

Understanding the Sample Size Calculator: uses, inputs and results

The Sample Size Calculator shows the sample-size arithmetic for estimating a population proportion under stated confidence and precision assumptions.

How many survey responses do I need?

For an expected proportion of 50%, 95% confidence and a five-point margin, the large-population calculation gives 384.15 before rounding. Plan for at least 385 completed responses. If the eligible population contains exactly 1,000 units and you sample randomly without replacement, the same model gives 278.

The size is the number of usable responses. Invitations and partial replies belong in a separate fieldwork plan.

Estimate a margin from a fixed sample size

Switch to margin mode and enter the completed sample size. For 278 responses from 1,000 eligible units at 95% confidence and an expected share of 50%, the modeled margin is about 4.997 percentage points.

A five-point margin around a 60% estimate spans 55% to 65%. Relative percent change uses a different denominator and answers a different question.

Further reading: Penn State STAT 506: sampling a population proportion

What do the Sample Size Calculator inputs mean?

Find
Use sample size to plan a survey or margin of error to assess sampling precision for a fixed number of responses.
Confidence level
The long-run coverage level of the chosen interval procedure. Higher confidence requires a larger multiplier.
Custom confidence
Enter a percentage from 1 to 99.999. For example, 97 means 97% confidence. Unit: %. This field applies when Confidence level is set to Custom percentage.
Target margin of error
Absolute half-width. For example, a result of 60% ± 5 points spans 55% to 65%. Unit: percentage points. This field applies when Find is set to Required completed responses.
Completed responses
Count of usable responses from the target population. This field applies when Find is set to Margin from completed responses.
Expected proportion
Use a plausible share for the outcome. At 50%, p(1−p) is largest and the model gives its most conservative sample size. Unit: %.
Population size (0 = unlimited)
Enter the number of eligible units for simple random sampling without replacement, or 0 to omit the finite population correction.

When is the Sample Size Calculator useful?

Explore survey precision

Enter confidence, margin of error and an expected proportion to inspect the sample requirement.

Account for a finite population

Enter a population size when appropriate to the stated correction. The calculation does not fix biased sampling or nonresponse.

Sample Size Calculator: a practical reference

The fixed “95%, 5% margin” example on this page produces the results below. It illustrates the stated model; your live results above use your current inputs.

Find
Required completed responses
Confidence level
95%
Target margin of error
5 percentage points
Required completed responses
385
Margin at the rounded sample size
4.994451 pp
Review the example inputs and calculation

Use the result in context

Normal approximation for simple random sampling. Small expected event counts can make this approximation unreliable. Coverage, nonresponse, weighting and cluster effects require separate analysis.

Try the Sample Size Calculator·Read the subject guide·Explore a related calculator

Worked example: Sample Size Calculator

95%, 5% margin. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.

View the example inputs
Find
Required completed responses
Confidence level
95%
Target margin of error
5 percentage points
Expected proportion
50 %
Population size (0 = unlimited)
0
Calculated results for the fixed example
Calculated quantityExample result
Required completed responses385
Margin at the rounded sample size4.994451 pp
Normal critical value1.95996398

Plan a survey around completed responses and sampling precision

How many survey responses do I need?

For an expected proportion of 50%, 95% confidence and a five-point margin, the large-population calculation gives 384.15 before rounding. Plan for at least 385 completed responses. If the eligible population contains exactly 1,000 units and you sample randomly without replacement, the same model gives 278.

The size is the number of usable responses. Invitations and partial replies belong in a separate fieldwork plan.

Penn State STAT 506: sampling a population proportion

Estimate a margin from a fixed sample size

Switch to margin mode and enter the completed sample size. For 278 responses from 1,000 eligible units at 95% confidence and an expected share of 50%, the modeled margin is about 4.997 percentage points.

A five-point margin around a 60% estimate spans 55% to 65%. Relative percent change uses a different denominator and answers a different question.

Choose an expected share

An estimate from a similar study or pilot can help set the expected proportion. A 50% share maximizes p(1−p) and gives the largest planned sample size under this formula.

When the expected outcome is rare, a small absolute margin can still allow substantial relative uncertainty. Check the expected counts of both outcomes before relying on a normal approximation.

When does population size affect the answer?

The finite population correction accounts for drawing without replacement from a known list. Once you have sampled a sizable fraction of the list, fewer eligible units remain unobserved. If every eligible unit is measured, the sampling component of the margin is zero.

Use zero for the population input to omit the correction, for example when the population is much larger than the sample or its size is unknown.

Penn State STAT 506: sampling a population proportion

Compare confidence levels before setting the target

Use the chart and comparison table to see the price of tighter sampling precision in completed responses. At fixed confidence in a large population, halving the desired margin multiplies the unrounded sample size by four.

The table recalculates each level with your chosen proportion and population. Its displayed margin uses the whole sample count after rounding.

Separate sampling error from coverage and response bias

An opt-in survey can collect many responses while undersampling an important group. The normal margin formula assumes simple random sampling. Check how respondents were selected and who was missing before interpreting a narrow margin.

Formula and calculation method

Uncorrected sample size n₀ = z² p(1−p)/e². Finite population size N gives n = Nn₀/(N−1+n₀). Round up to whole responses.

The modeled margin is z√[p(1−p)/n] multiplied by √[(N−n)/(N−1)] for a finite population. A full census has zero sampling margin.

Scope and Limitations

  • Normal approximation for simple random sampling. Small expected event counts can make this approximation unreliable. Coverage, nonresponse, weighting and cluster effects require separate analysis.

Reference Sources

Frequently asked questions

Why is the recommended size rounded up?

A partial response cannot be collected. Rounding upward meets the target under the selected sampling model.

What should I enter when I have no estimate for the proportion?

Use 50% for the most conservative sample size under this normal approximation.

Can sample size exceed the population?

With a finite population and sampling without replacement, completed responses are limited to the population size.

Does this calculate experimental power?

This tool plans precision for a single population proportion. Power analysis requires a test, a target effect size and additional design assumptions.