tooldeb Online Tools
Categories
Finance & Investing Interest, savings, returns, and inflation. Loans & Property Mortgages, repayment, DSR/DTI/LTV, and jeonse. Tax & Payroll Take-home pay, severance, insurance, and taxes. Shopping & Pricing Discounts, tips, unit price, and margins. Health & Fitness Body metrics, nutrition, and training. Math Percentages, fractions, algebra, and sequences. Geometry Area, volume, and surface of plane and solid shapes. Statistics & Probability Averages, spread, combinations, and odds. Unit Conversion Length, weight, temperature, pressure, and more. IT & Digital Data size, screens, color, and network speed. Engineering & Electronics Circuits, resistance, PCB, and signals. Date & Time Ages, D-day, date math, and time zones. Home & Interior Paint, tile, wallpaper, flooring, and concrete. Automotive Fuel cost, economy, tires, and vehicle tax. Everyday Bills, delivery, photos, and odds and ends.
EN
한국어 English

Confidence Interval Calculator

Enter a sample mean, sample standard deviation, sample size, and confidence level to get the confidence interval and margin of error.

Inputs
Confidence interval
[95.100, 104.900]
Margin of error
± 4.900
Lower bound
95.100
Upper bound
104.900
Uses the z (standard normal) approximation, which assumes a large enough sample and a known or well-estimated standard deviation. For n below about 30, the t-distribution gives a more accurate (wider) interval — treat this result as an approximation in that case.

How the confidence interval is calculated

A confidence interval estimates a range likely to contain the true population mean, built from the sample mean plus and minus a margin that depends on how much the sample varies and how large it is.

SE = s / √n margin of error = z × SE CI = x̄ ± margin of error
  • — sample mean
  • s — sample standard deviation
  • n — sample size
  • z — critical value for the confidence level (90% → 1.645, 95% → 1.96, 99% → 2.576)

More detail

Why a higher confidence level widens the interval

A 99% confidence interval has to be wider than a 95% one to capture the true mean more often across repeated samples — there's a direct trade-off between how confident you are and how precise (narrow) the range can be. Confidence level is about the method's long-run reliability, not the probability that this one interval contains the true mean.

Sample size matters. The margin of error shrinks with √n, not n — quadrupling your sample size only halves the margin of error. If you need a much tighter interval, check whether a larger sample is actually feasible before assuming it will help as much as expected.

Frequently asked questions

What's the 95% confidence interval for a sample mean of 100, standard deviation 15, and n = 36?

Standard error = 15/√36 = 2.5, margin of error = 1.96 × 2.5 = 4.9, giving a 95% CI of [95.1, 104.9]. Enter these exact numbers above to confirm.

How does the 90% interval compare to the 95% interval for the same data?

For mean 100, s = 15, n = 9, the 90% interval uses z = 1.645: SE = 15/√9 = 5, margin = 1.645 × 5 = 8.225, giving [91.775, 108.225] — narrower than the 95% interval would be for the same data, since a lower confidence level allows a tighter range.

Why does the calculator warn me when n is small?

The z-based formula assumes the sample standard deviation closely approximates the true population standard deviation, which only holds well for larger samples. Below roughly n = 30, the t-distribution (which has heavier tails) gives a wider, more honest interval — this calculator flags that but still shows the z-based estimate.

Does a wider confidence interval mean the estimate is worse?

Not necessarily — it usually means either the sample is small, the data is more variable, or you chose a higher confidence level (e.g. 99% instead of 90%). A wider interval trades precision for a stronger guarantee that the method captures the true mean.

Related calculators

Browse all Statistics calculators