Sample Size (Proportion)

Approximate n for a desired margin of error at a given confidence (normal approx.).

CalcHub

Sample Size (Proportion)

Full page
Live

Preview

1.96

Mirrors whichever field is focused below.

Add to workspace

Run up to six calculators on one board. You can try without an account—your board stays on this device until you sign in to save it.

Add to workspace

No account needed—build a local board (one workspace on this device). Sign in later to save it to your account.

Open My workspace →

The Sample Size (Proportion) calculator estimates the minimum number of observations needed to measure a population proportion within a chosen margin of error at a given confidence level. It uses the normal approximation, so it is best suited to planning surveys, polls, and studies where a proportion or percentage is the main outcome.

This tool is especially useful when you need a defensible sample size before collecting data. A conservative expected proportion of 0.5 is often used when no prior estimate is available, because it produces the largest required sample size. The result is an approximation, and it does not apply finite population correction or adjustments for design effects, so real-world studies may require a larger target.

How This Calculator Works

The calculator takes three main inputs: the z-score for your chosen confidence level, the expected proportion p, and the acceptable margin of error E. It then applies the standard proportion sample-size approximation to estimate the minimum n needed so that the estimated proportion is likely to fall within E of the true population value under normal approximation assumptions.

Because the formula is driven by p(1−p), the required sample size is largest near p = 0.5 and smaller when p is closer to 0 or 1. That is why 0.5 is often used as a planning default when no prior estimate exists.

Formula

Sample size for a proportion: n ≈ z² × p(1−p) ÷ E²

Variable definitions:

SymbolMeaningNotes
nRequired sample sizeRound up to the next whole number
zZ-score for the desired confidence levelFor example, 1.96 for about 95% confidence
pExpected population proportionEnter as a decimal from 0 to 1
EMargin of errorEnter as a decimal from 0 to 1

This is an approximate formula based on the normal approximation to the binomial proportion. It does not include continuity correction, finite population correction, or complex sampling adjustments.

Example Calculation

  1. Choose a 95% confidence level, which corresponds to z = 1.96.
  2. Use an expected proportion of p = 0.5 if no better estimate is available.
  3. Set the margin of error to E = 0.05.
  4. Substitute into the formula: n ≈ (1.96)² × 0.5(1−0.5) ÷ (0.05)².
  5. Compute the result: n ≈ 384.16, then round up to 385.

So, for this setup, you would plan for at least 385 completed responses.

Where This Calculator Is Commonly Used

  • Survey research and public opinion polling
  • Market research for product preference or brand awareness
  • Clinical and health studies estimating response rates or prevalence
  • Quality assurance and process monitoring
  • Academic research in social science, education, and behavior studies

How to Interpret the Results

The returned sample size is the minimum number of completed observations needed under the stated assumptions. If you expect non-response, incomplete surveys, clustering, or other field losses, the number you recruit should be higher than the calculated n.

A smaller margin of error requires a much larger sample, and a higher confidence level also increases the required n. If your estimate of p is uncertain, using 0.5 is a conservative planning choice because it maximizes variability and therefore maximizes sample size.

If your population is small and sampling is without replacement, the true required sample may be lower after finite population correction, but that adjustment is not part of this calculator's approximation.

Frequently Asked Questions

Why is p = 0.5 often recommended when I do not know the expected proportion?

Using p = 0.5 is a conservative planning choice because it makes p(1−p) as large as possible. That produces the largest sample size for a given z-score and margin of error, reducing the risk that you under-sample when no prior estimate is available.

Do I enter the margin of error as a percentage or a decimal?

Enter the margin of error as a decimal between 0 and 1. For example, 5% should be entered as 0.05. The same applies to the expected proportion p, which should also be entered as a decimal.

Why does a smaller margin of error increase the sample size so much?

The margin of error is squared in the denominator of the formula. That means reducing E has a strong effect on n. For example, halving the margin of error does not just double the sample size; it can increase it by about four times, depending on the other inputs.

Is this formula exact?

No. It is an approximation based on the normal approximation for a proportion. It is useful for planning, but real studies may need additional adjustments for finite populations, non-response, weighting, stratification, or clustered sampling designs.

What does the z-score represent here?

The z-score reflects the confidence level you want for the estimate. A higher confidence level uses a larger z-score, which increases the required sample size because the estimate must be more precise to meet a stricter standard.

Should I round the answer up or to the nearest whole number?

Round up. Since the calculator gives the minimum sample size needed to meet your precision target, rounding down could leave you short of the requirement. Always plan for at least the next whole number.

What if my study uses a complex sampling method?

If you use clustering, stratification with unequal weights, or other complex designs, the simple formula may underestimate the sample you need. In those cases, you often apply a design effect or use a more specialized sample size method.

FAQ

  • Why is p = 0.5 often recommended when I do not know the expected proportion?

    Using p = 0.5 is a conservative planning choice because it makes p(1−p) as large as possible. That produces the largest sample size for a given z-score and margin of error, reducing the risk that you under-sample when no prior estimate is available.

  • Do I enter the margin of error as a percentage or a decimal?

    Enter the margin of error as a decimal between 0 and 1. For example, 5% should be entered as 0.05. The same applies to the expected proportion p, which should also be entered as a decimal.

  • Why does a smaller margin of error increase the sample size so much?

    The margin of error is squared in the denominator of the formula. That means reducing E has a strong effect on n. For example, halving the margin of error does not just double the sample size; it can increase it by about four times, depending on the other inputs.

  • Is this formula exact?

    No. It is an approximation based on the normal approximation for a proportion. It is useful for planning, but real studies may need additional adjustments for finite populations, non-response, weighting, stratification, or clustered sampling designs.

  • What does the z-score represent here?

    The z-score reflects the confidence level you want for the estimate. A higher confidence level uses a larger z-score, which increases the required sample size because the estimate must be more precise to meet a stricter standard.

  • Should I round the answer up or to the nearest whole number?

    Round up. Since the calculator gives the minimum sample size needed to meet your precision target, rounding down could leave you short of the requirement. Always plan for at least the next whole number.

  • What if my study uses a complex sampling method?

    If you use clustering, stratification with unequal weights, or other complex designs, the simple formula may underestimate the sample you need. In those cases, you often apply a design effect or use a more specialized sample size method.