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
How to use this calculator
Free Sample size calculator for a proportion. Estimate how many observations are needed for a chosen margin of error.
- 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.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
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
- Confidence level: Select the two-sided normal critical value z (for example, 1.96 for 95%).
- Margin of error (percentage points): Enter the requested half-width, then convert it to a proportion (5 points becomes 0.05).
- Expected proportion (%): Enter p on a 0–100 percent scale; the formula uses p as a fraction.
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
Read the calculation methodology and privacy policy.
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.