This calculator tells you how many responses you need to collect to achieve a target margin of error at a chosen confidence level. Before you run a survey, conduct an experiment, or commission a poll, you need to know the minimum sample size that will make your results statistically meaningful. Too small a sample and your margin of error will be too wide to draw reliable conclusions; too large and you waste time and money collecting more data than necessary. The required sample size depends on three things: the confidence level (how certain you want to be that your interval captures the true value), the margin of error (how wide a range you are willing to accept around your estimate), and the estimated proportion of the population with the characteristic you are measuring. When you have no prior estimate of the proportion, using 0.5 gives the most conservative and largest sample size, which ensures your results will be reliable regardless of what the true proportion turns out to be. The formula is n = (z squared times p times (1 minus p)) divided by e squared, where z is the critical value for your chosen confidence level and e is your desired margin of error as a decimal. Enter the confidence level, your target margin of error as a percentage, and the estimated proportion, and the calculator rounds the result up to the nearest whole number. This tool is useful for researchers designing studies, business analysts planning surveys, and students learning statistical methods. This calculator does not apply a finite population correction.
The formula for sample size when estimating a proportion is n = z² × p × (1 − p) ÷ e², where z is the critical value corresponding to the confidence level, p is the estimated proportion, and e is the margin of error expressed as a decimal. The result is always rounded up to the nearest whole number because you cannot survey a fraction of a person. The critical z-values are 1.6449 for 90%, 1.9600 for 95%, and 2.5758 for 99% confidence.
You want to survey customers with 95% confidence and a 5% margin of error, and you have no prior estimate of the proportion so you use p = 0.5. The critical z is 1.96. Applying the formula: n = (1.96² × 0.5 × 0.5) ÷ 0.05² = (3.8416 × 0.25) ÷ 0.0025 = 0.9604 ÷ 0.0025 = 384.16, rounded up to 385. You need at least 385 completed responses.
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.
Calculate.co.nz is the sister site of CalculatorHub.com, the world's largest calculator website by tool count.
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.
About & trust: Why Calculate is NZ's most comprehensive · By the Numbers · How we compare · Editorial standards · How we keep data current · NZ finance glossary · Research & data · Financial literacy NZ · About · Privacy policy · Terms of use
Reviewed and maintained. Last reviewed 2026-07-02 and checked on a twice-monthly cycle against IRD, RBNZ and Stats NZ. How we keep data current.
© 2026 Calculate.co.nz. All rights reserved. Building free NZ calculators since 2011.