CalcWorldHub
Free online calculator · no signup

Sample size calculator for a proportion

Estimate how many observations are needed for a chosen margin of error. Enter your values below for a free estimate, with no account required.

Calculator

4,000 tools
Sample size calculator for a proportion — Confidence level, Margin of error (percentage points), Expected proportion (%) and calculation method
Sample size calculator for a proportion: inputs and calculation method.

How to use this calculator

Free Sample size calculator for a proportion. Estimate how many observations are needed for a chosen margin of error.

  1. Enter Confidence level, Margin of error (percentage points), Expected proportion (%). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Estimate a sample size for one population proportion

This calculator estimates the sample size for a single proportion using a normal-approximation margin of error. It returns the smallest whole-number sample at or above the calculated requirement.

Inputs and units

Formula and method

n = z²p(1−p)/e², where e is the margin of error as a proportion. The calculator rounds n upward because a sample cannot contain a fraction of an observation.

Worked example

At 95% confidence, p = 50%, and a ±5 percentage-point margin, n = 1.96² × 0.5 × 0.5 / 0.05² = 384.16, so the estimate is 385 observations.

Interpreting the result

The result is a planning size under the selected proportion, z value, and margin. If p is unknown, 50% maximizes p(1−p) and gives a conservative largest size under this formula.

Assumptions and limits

This simple Wald approximation does not apply a finite-population correction or adjust for clustering, weighting, nonresponse, or design effects. Those choices can change the required sample and the achieved interval coverage.

Frequently asked questions

Why does 50% give a larger sample?

For p(1−p), the value is greatest at p = 0.5, so it produces the largest size for the same z and margin.

Is 5 the same as 5 percentage points?

Yes, this field is entered in percentage points; the equation converts 5 to e = 0.05.

Does the result guarantee the requested margin?

No. The approximation and sampling design assumptions must fit the study for the nominal margin and confidence to be meaningful.

How do I use the Sample size calculator for a proportion?

Enter Confidence level, Margin of error (percentage points), Expected proportion (%). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Sample size calculator for a proportion?

At 95% confidence, p = 50%, and a ±5 percentage-point margin, n = 1.96² × 0.5 × 0.5 / 0.05² = 384.16, so the estimate is 385 observations .

Sources

Good calculators show their work.

CalcWorldHub is built around clear inputs and visible assumptions. Results are estimates for planning; check official sources or your provider’s terms when exact figures matter.

✓ Results update instantly
✓ No account required
✓ Privacy-friendly by design
✓ US and metric units