Confidence Interval for a Proportion Calculator NZ
This calculator works out a confidence interval for a proportion, the range within which the true population proportion is likely to lie, from a sample. Proportions are everywhere in research and everyday life: the share of voters backing a party, the percentage of customers who are satisfied, the fraction of items that pass a quality check. When you measure a proportion from a sample rather than the whole population, your result is only an estimate, and a confidence interval tells you how precise that estimate is. It is built from the sample proportion plus or minus a margin of error, and the margin depends on the sample size and the confidence level you choose. Larger samples give tighter intervals, and a higher confidence level, say 99 percent rather than 90, gives a wider one, because being more certain means casting a wider net. This tool does the standard calculation. You enter the number of successes, the people or items with the characteristic you are measuring, the total sample size, and the confidence level. The calculator returns the margin of error and the lower and upper bounds of the interval, along with the sample proportion itself. The results update as you type, so you can see how a bigger sample shrinks the margin. Use it to report survey results properly, to judge whether a difference is meaningful, or to plan a sample size. It uses the normal approximation, which is reliable when the sample is reasonably large and the proportion is not too close to zero or one. The familiar margin of error quoted in opinion polls is exactly this calculation at the 95 percent level.
Uses the normal approximation: margin = z x sqrt(p(1-p)/n). Reliable for reasonably large samples. The 95% level is the usual poll margin of error.
How it works
The sample proportion is the successes divided by the sample size. The standard error is the square root of the proportion times one minus the proportion, divided by the sample size. The margin of error is a z-value for the chosen confidence level (1.645, 1.96 or 2.576) times that standard error. The interval is the proportion plus or minus the margin.
Worked example
With 320 successes out of 400, the sample proportion is 0.80, or 80 percent. The standard error is the square root of 0.8 times 0.2 divided by 400, which is 0.02. At 95 percent confidence the margin is 1.96 times 0.02, about 3.92 percent, giving an interval from 76.08 percent to 83.92 percent.
Related calculators
- Confidence Interval (Mean): interval for a mean.
- Sample Size: plan a survey.
- Standard Error: precision of a mean.
- Z-Score: standardised scores.
- Trig Equation Solver: solve sin x = k, cos x = k, tan x = k.
- Trig Identity Solver: sin, cos, tan and Double Angles.