This calculator works out how large a sample you need to estimate a proportion to a chosen margin of error, the essential planning step before running a survey or study. When you measure a proportion from a sample, your estimate carries a margin of error that shrinks as the sample grows. Turning that around, if you decide in advance how precise you want to be, you can calculate the minimum sample size required to achieve it. This is the calculation behind every well-designed opinion poll and survey, and getting it right avoids both under-sampling, which leaves your result too imprecise to be useful, and over-sampling, which wastes time and money. This calculator does it. You enter the confidence level, your target margin of error as a percentage, your best estimate of the proportion (use 50 percent if unsure, as it requires the largest sample and so is the safe choice), and optionally the size of the population you are sampling from, and it returns the required sample size, the size without any population correction, the z-value used, and the margin of error. The results update as you type. Use it to plan a survey, to size a study, or to check whether a sample is large enough for the precision you need. The base sample size is the z-value squared, times the proportion times one minus it, divided by the margin of error squared. If you enter a population, a finite population correction reduces the required size, since sampling a meaningful fraction of a small population gains precision; for very large populations the correction makes little difference. Using a proportion estimate of 50 percent gives the most conservative, largest sample, which is why pollsters default to it when the true proportion is unknown. Round the result up, since you cannot survey a fraction of a person.
Sample size = z² x p(1-p) / E². A finite population correction reduces it if a population is entered. Use 50% proportion if unsure (largest, safest). Round up.
The base sample size is the z-value for the confidence level, squared, times the estimated proportion times one minus it, divided by the square of the margin of error. If a population is entered, a finite population correction divides this by one plus the base size minus one over the population, reducing the required sample for smaller populations. The result is rounded up.
For 95 percent confidence, a 5 percent margin of error and an unknown proportion taken as 50 percent, the sample size is 1.96 squared times 0.5 times 0.5, divided by 0.05 squared, which is about 384.16, rounded up to 385. With no population entered, no correction applies, so 385 respondents are needed.
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.