Survey planning

Sample Size Calculator

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

Study assumptions

Enter confidence and precision

n
%
%
%
Sampling summary

Required responses

The required sample size will appear here

Leave population blank to use the large-population calculation.

A population group narrowing to a representative survey sample with confidence and margin of error labels
Higher confidence and a smaller margin of error generally require more completed responses.

What Does a Survey Sample Size Mean?

This Sample Size Calculator estimates the completed responses needed to measure a population proportion, such as the share of eligible customers who use a service. Enter a confidence level, an absolute margin of error and an expected proportion. Add a known population size to apply a finite population correction.

The result is a planning estimate under a normal approximation for simple random sampling. It covers one proportion, not an average, a comparison between groups or the power of an experiment. The tool reports the rounded-up response count, its critical z value and the assumptions you entered.

How to Use the Sample Size Calculator

  1. Enter Confidence level as a percentage, such as 95. This sets the central coverage used to choose the two-sided normal critical value.
  2. Enter Margin of error as percentage points on either side of a proportion. For a target of ±4 percentage points, enter 4.
  3. Enter Expected proportion as a percentage. Use relevant prior information when available; 50 gives the largest variance term when the proportion is unknown.
  4. Enter Population size (optional) only when you know the number of eligible members in the population being sampled without replacement. Clear the field for the large-population calculation.
  5. Select Calculate sample size. Read the Required sample size as completed usable responses, and check the critical value, margin, expected proportion and population cards.

Confidence must be above 50% and below 100%. Margin and expected proportion must each be above 0% and below 100%; population, if supplied, must be a positive whole number. These are software limits, not a check that every accepted combination suits the approximation.

Sample Size Formula for a Population Proportion

z = Φ⁻¹((1 + C) ÷ 2)

n₀ = z² × p × (1 − p) ÷ e²

n = n₀ ÷ [1 + (n₀ − 1) ÷ N]

Required responses = round n up to the next whole number

C is confidence as a decimal, p is the expected proportion divided by 100, and e is the entered margin divided by 100. Φ⁻¹ means the inverse standard normal cumulative distribution: at 95% confidence it gives approximately 1.959964. The calculator obtains the critical value numerically and retains its precision for the calculation.

Use n₀ when Population size is blank. With a known N, apply the correction to the unrounded n₀, then round the final result upward. The University of Florida sample-size guide presents these proportion and finite-population formulas. The correction assumes sampling without replacement from the specified finite population.

The critical-value card shows at most four decimals. Recalculating from that rounded card can change a final digit near a rounding boundary, so keep unrounded values until the last step.

Survey Inputs and Sample Size Results

Confidence level, C
The chosen repeated-sampling coverage, entered as a percent and converted to a decimal for the critical value.
Margin of error, e
Desired absolute precision for a proportion. An entry of 4 means ±4 percentage points; the formula uses 0.04.
Expected proportion, p
Planning estimate of the share with the characteristic of interest. An entry of 50 means p = 0.5.
Population size, N
Optional positive whole-number count of eligible members. A blank uses the large-population model.
Critical z value
The positive two-sided standard normal cutoff selected from the confidence level, not a standardized score for one observed person.
Initial sample estimate, n₀
The large-population result before any finite-population adjustment; explained here but not shown in its own result card.
Required sample size
Final response count after any population adjustment and upward rounding. The Required sample card repeats the featured result.

Survey Sample Size Calculation Example

Illustrative example. A hypothetical organization has 2,400 eligible members. It wants to estimate a service-use proportion with 95% confidence and a margin of ±4 percentage points. With no reliable prior proportion, it enters 50%.

Use z ≈ 1.959963985, p = 0.5 and e = 0.04. The initial calculation is n₀ = z² × 0.5 × 0.5 ÷ 0.04² ≈ 600.22794. The population correction gives n = 600.22794 ÷ [1 + (600.22794 − 1) ÷ 2,400] ≈ 480.30596. Round upward to 481 completed responses.

Clearing Population size for the same assumptions gives 601 responses. The smaller finite-population result assumes a suitable sampling design and that 2,400 is the actual eligible population, not the number of invitations you hope to send.

Calculation check. An independent normal-quantile calculation and the calculator results confirm these figures. The example illustrates planning arithmetic rather than a guarantee of survey quality.

Additional illustrative comparison. These hypothetical cases use the assumptions stated in the caption.

Hypothetical population 2,400; 95% confidence and expected proportion 50%
Margin (points)Unrounded adjusted nRequired responses
±3738.86885739
±4480.30596481
±5331.26187332

Confidence, Precision and Survey Invitations

Choose precision for the decision you need to make, and distinguish response targets from contacts. Narrower margins require more completed observations. Higher confidence also increases the target when the other assumptions stay fixed.

Hypothetical population 2,400; margin ±4 percentage points and expected proportion 50%
ConfidenceCritical z (approx.)Required responses
90%1.644854360
95%1.959964481
99%2.575829725

The 481-response example still needs a contact plan. If you separately assume that 60% of invited eligible members will provide usable responses, 481 ÷ 0.60 ≈ 801.67 suggests at least 802 invitations under that assumption. This is additional planning arithmetic; the calculator has no response-rate field.

That invitation estimate does not correct nonresponse bias or guarantee 481 completions. A subgroup analysis also needs its own precision assessment: obtaining 481 responses overall says little about a subgroup with only a handful of respondents. A cluster or weighted survey can need a design-specific calculation beyond this form.

How to Interpret the Response Target

Treat the displayed number as a response target under the stated assumptions. It is not the invitation count and does not establish that respondents represent people who never respond. A larger convenience sample can still have selection bias.

A 95% confidence level describes the long-run coverage of intervals built by the chosen method across repeated samples. It does not mean that 95% of answers are correct or that a particular respondent has a 95% chance of answering honestly. OpenStax explains this repeated-sampling interpretation.

Normal-approximation planning needs extra care for rare outcomes, very small counts or extreme settings. OpenStax’s population-proportion chapter discusses the approximation and its conditions. The form does not assess those conditions, design effects, clustering, weighting or separate subgroup precision. Use a method suited to the actual study when those features matter.

Common Sample Size Planning Mistakes

  • Entering 0.04 instead of 4 for a four-percentage-point margin.
  • Confusing the expected proportion with the response rate or confidence level.
  • Using a desired contact count as Population size instead of the total eligible population.
  • Treating the faint 10,000 placeholder as supplied population data. It is an example; a blank field omits the correction.
  • Rounding n₀ before applying the population correction, or rounding the final answer down.
  • Treating a precise sample size as proof that a volunteer sample has no bias.
  • Using a one-proportion formula to plan a mean, an experiment or every subgroup in a survey.

Sample Size Questions

How many survey responses do I need?

The count depends on confidence, desired precision, the expected proportion and, when relevant, population size. This tool calculates a one-proportion planning estimate from those inputs instead of recommending the same count for every survey.

Why use an expected proportion of 50%?

The product p × (1 − p) is largest at p = 0.5. For fixed confidence and margin, that produces the largest sample-size estimate within this formula when no better prior proportion is available.

Does a 5% margin mean five percent of my estimate?

Here it means five percentage points. If an estimate were 40%, a margin of ±5 points would give 35% to 45%, rather than a relative five-percent change around 40%.

When should I leave population size blank?

Leave it blank when you intend to use the large-population formula or do not have a justified eligible-population count. The faint 10,000 shown in the empty field is only a placeholder, not an entered value.

Is the sample size the number of people I should invite?

No. It is the target number of completed usable responses. Planning contacts requires a separate response-rate assumption and attention to nonresponse bias; the form has no response-rate input.

Does a larger sample remove survey bias?

No. More responses can improve random sampling precision, but a larger sample alone does not correct poor coverage, leading questions or systematic differences between respondents and nonrespondents.

Can I use this result to plan an A/B test or clinical trial?

This form has no effect-size, power, group-allocation or outcome-variance inputs. Use a study-specific design and sample-size method for a comparison or experiment.

Why can another sample-size calculator give a different number?

Check the population correction, confidence convention, proportion estimate, normal critical value and rounding order. This tool uses n₀ − 1 in the finite-population denominator and rounds up only after that adjustment.

Sources and References