This calculator builds a confidence interval for a population mean using the z-interval method and returns the lower and upper bounds, the margin of error and the standard error. A confidence interval gives you a range of plausible values for an unknown population mean based on a sample you have collected. Rather than reporting only the sample mean as a single estimate, the interval acknowledges that samples vary and provides the range within which the true mean is likely to fall at your chosen level of confidence. The confidence level you select (90%, 95% or 99% are the most common) determines the critical z-value used to compute the width of the interval. A 95% confidence level uses z = 1.96, meaning the interval stretches roughly two standard errors either side of the sample mean. The standard error is the population or sample standard deviation divided by the square root of the sample size, so larger samples produce narrower, more precise intervals. To use the calculator, enter your sample mean, the standard deviation, the sample size and the confidence level. You receive the lower bound, upper bound, margin of error and standard error instantly. This tool is suited to students learning inferential statistics, researchers reporting survey results, and analysts communicating uncertainty in their estimates. The z-interval is most appropriate when the sample size is large (typically above 30) or when the population standard deviation is known; for small samples with unknown SD, a t-interval is preferable.
The standard error (SE) is the standard deviation divided by the square root of n. The margin of error (MOE) is the critical z-value multiplied by the SE. The critical z-values used are: 90% confidence gives z = 1.645; 95% gives z = 1.960; 99% gives z = 2.576. The lower bound is the sample mean minus the MOE and the upper bound is the sample mean plus the MOE. Increasing the sample size shrinks the standard error and narrows the interval, while increasing the confidence level widens it.
A survey of 100 people finds a mean score of 50 with a standard deviation of 10. The standard error is 10 divided by the square root of 100 = 1.00. At 95% confidence, the critical z is 1.96, so the margin of error is 1.96 times 1.00 = 1.96. The confidence interval runs from 50 minus 1.96 = 48.04 to 50 plus 1.96 = 51.96. You can report this as 50 plus or minus 1.96 at the 95% confidence level.
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.