Confidence Interval Calculator

This confidence interval calculator builds a range that is likely to contain the true population mean, based on a sample. Whenever you measure an average from a sample rather than the whole population, the figure you get is an estimate, and a confidence interval is the honest way to express how precise that estimate is. A 95 percent confidence interval, the most common choice, means that if you repeated the sampling process many times, about 95 percent of the intervals built this way would contain the real mean. You enter the sample mean, the standard deviation and the sample size, and choose a confidence level of 90, 95 or 99 percent, and the calculator returns the interval along with the margin of error and the standard error. The interval is the sample mean plus and minus the margin of error, where the margin is the critical z-value for your chosen confidence level multiplied by the standard error, which is the standard deviation divided by the square root of the sample size. A higher confidence level or a smaller sample widens the interval, while a larger sample narrows it. This calculator uses the z-value, which is accurate for larger samples of around 30 or more; for small samples a t-interval is better. Enter your sample details to see the interval straight away.

95.1 to 104.9
confidence interval for the mean
Margin of error4.9
Standard error2.5

How it works

The calculator divides the standard deviation by the square root of the sample size to get the standard error, then multiplies it by the z-value for your confidence level to get the margin of error. The interval runs from the sample mean minus the margin to the sample mean plus the margin.

Worked example

With a mean of 100, a standard deviation of 15 and a sample of 36, the standard error is 15 over 6, which is 2.5. At 95 percent the z-value is 1.96, so the margin is about 4.9 and the interval runs from about 95.1 to 104.9.

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.

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.