Margin of Error Calculator

The margin of error tells you how much the results of a survey might differ from the true opinion of the whole population you are studying. When a poll reports that 50% of respondents support a policy with a margin of error of plus or minus 4.90 percentage points, it means the true figure in the population is likely somewhere between 45.10% and 54.90%. Every survey that uses a random sample has a margin of error, because you are only measuring a portion of the population, and that sample may not perfectly represent the whole. The margin shrinks as you survey more people and widens if you use a higher confidence level or if the proportion is close to 50%, which is the point of maximum variability. The confidence level is the probability that the true value falls within the stated interval. At 95%, the standard choice, you accept a 5% chance that the true population value lies outside your interval. At 99% you are more certain but the interval is wider. This calculator uses the standard formula: MOE equals the z-score for your chosen confidence level multiplied by the square root of p times (1 minus p) divided by n, where p is the proportion and n is the sample size. For 95% confidence the z-score is 1.96, for 90% it is 1.645, and for 99% it is 2.576. Enter your sample size, sample proportion, and confidence level and you get the margin of error, the lower and upper bounds of the confidence interval, and the standard error. This tool suits students, researchers, journalists, and anyone interpreting survey or polling results. The formula assumes simple random sampling from a large population and does not apply a finite population correction.

Calculate.co.nz is proud to be partnered with Premium Homes, a recognised leader in eco-friendly, sustainable, and energy-efficient homebuilding. With a dedicated team and award-winning experience, they create homes that prioritise health, comfort, and long-term performance. Their founders, Andrew and Kelly, set out to raise the standard of residential construction in New Zealand by combining practical building expertise with a clear commitment to doing things better for homeowners.
Calculate.co.nz partner: Premium Homes
%
4.90%
margin of error
Lower bound45.10%
Upper bound54.90%
Standard error2.50%

How it works

The calculator reads your sample size n, sample proportion p (converted from a percentage to a decimal), and the z-score matching your confidence level: 1.645 for 90%, 1.96 for 95%, and 2.576 for 99%. Standard error is the square root of p(1-p)/n. Margin of error is z times the standard error, then multiplied by 100 to express the result in percentage points. The confidence interval lower bound is p minus MOE and the upper bound is p plus MOE, both reported as percentages. The formula assumes simple random sampling from a large population.

Worked example

You survey 400 people and 50% say they support a proposed local change. Using a 95% confidence level, z = 1.96. Standard error is the square root of (0.5 x 0.5 / 400) = square root of 0.000625 = 0.025, or 2.50%. Margin of error is 1.96 x 2.50% = 4.90%. The confidence interval runs from 45.10% to 54.90%. These match the default values pre-filled above.

Related calculators

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.