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.
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.
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.
If you've found a bug, or would like to contact us, or learn more about James Graham and Calculate.co.nz.
Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is proudly part of the Realtor.co.nz group, New Zealand's leading property transaction literacy platform, helping Kiwis understand the home buying and selling process from start to finish. Whether you're a first home buyer navigating your first property purchase, an investor evaluating your next acquisition, or a homeowner planning to sell, Realtor.co.nz provides clear, independent, and trustworthy guidance on every step of the New Zealand property transaction journey.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.
Calculate.co.nz is hosted in Auckland via SiteHost new Zealand.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
© 2019 to 2026 Calculate.co.nz. All rights reserved.