Confidence Interval Calculator (Mean & Proportion, z/t)

Confidence Interval Calculator

Build a confidence interval for a population mean or a proportion using the z score or Student t distribution. See the critical value, standard error, margin of error, and the full low-to-high interval with every step shown.

🎯Real Scenario Presets

📝Interval Inputs

Used only when level is set to custom. Between 50 and 99.99.

Standard deviation of the whole population.

Standard deviation from your sample data.

Enter as a decimal, for example 0.52 for 52%.

Applied only when the correction is on and N is finite.

Confidence interval -- lower to upper bound
Margin of error -- E = critical × SE
Point estimate -- center of the interval
Critical value -- z or t multiplier

🔱Formula Snapshot

SEStandard error
z / tCritical value
EMargin of error
dfn minus 1 for t

📊Critical z Values

ConfidenceAlphaAlpha / 2Two-Tail zOne-Tail z
80%0.200.1001.2820.842
85%0.150.0751.4401.036
90%0.100.0501.6451.282
95%0.050.0251.9601.645
98%0.020.0102.3262.054
99%0.010.0052.5762.326
99.9%0.0010.00053.2913.090

📈Critical t Values (Two-Tail)

dfSample n90% t95% t99% t
126.31412.70663.657
452.1322.7764.604
9101.8332.2623.250
14151.7612.1452.977
19201.7292.0932.861
24251.7112.0642.797
29301.6992.0452.756
49501.6772.0102.680
991001.6601.9842.626
∞large1.6451.9602.576

🗂Method Comparison Grid

MethodUse WhenStandard ErrorCriticalIntervalNotes
Mean zSigma known or n largesigma / sqrt(n)zxbar ± ENormal model
Mean tSigma unknown, use ss / sqrt(n)t, df n–1xbar ± EWider than z
Proportion zCount or percent datasqrt(pq / n)zp ± EWald interval
Small meann under 30, s onlys / sqrt(n)txbar ± EAssumes normal
Large polln over 1000 percentsqrt(pq / n)zp ± ETight margin
Finite popSample near N sizeSE × FPCz or test ± EShrinks SE

⚙Full Formula Breakdown

Alphaalpha = 1 – confidence. For a 95% level, alpha = 0.05 and alpha / 2 = 0.025 in each tail.
Mean, sigma knownSE = sigma / sqrt(n). Interval = xbar ± z × SE. This z method assumes the population sigma is known.
Mean, sigma unknownSE = s / sqrt(n), df = n – 1. Interval = xbar ± t × SE using the Student t critical value.
ProportionSE = sqrt(p × (1 – p) / n). Interval = p ± z × SE. Reliable when n×p and n×(1–p) both exceed 5.
Margin of errorE = critical value × SE. The interval spans from estimate – E up to estimate + E, a total width of 2E.
Finite correctionWhen N is finite, SE is multiplied by sqrt((N – n) / (N – 1)), which shrinks the interval.
InterpretationAbout C% of intervals built this way from repeated samples would capture the true parameter.

📋Margin of Error Reference

ItemTypical RangeEffect on IntervalWhy
Confidence level90% to 99%Higher level, wider CILarger critical value
Sample size n10 to 5000Larger n, tighter CISE falls with sqrt(n)
Spread (s or sigma)Data dependentMore spread, wider CISE grows with spread
Proportion near 0.50 to 1Widest at p = 0.5p(1–p) is maximal
z versus tSmall nt gives a wider CIHeavier t tails

💡Practical CI Tips

z or t tip: Use z only when the population sigma is truly known or n is very large. With a sample standard deviation, the t method with df = n – 1 is the honest choice and gives a slightly wider interval.
Proportion tip: The normal proportion interval assumes n×p and n×(1–p) are both above about 5. Near p = 0.5 the margin of error is largest, so plan your sample size for that worst case.

Uncertainty comes in form of confidence intervals: a range within which it’s likely that true number lies given our small amount of data. The plus or minus three points on a poller saying “52% support” means actual number is probably somewhere between 49 and 55 percent. It is not one thing, but a recognition that we don’t have the exact value for population parameter.

How do you calculate this range? You use z-score or a t-score. If you pick the right option in calculator, it’ll make that decision for you. Under what circumstances should you use a z-distribution instead of a t-distribution? You should use it only if you have access to population standard deviation (which is rare outside of textbook problems). Most of the time you’re estimating that spread based off some sample data.

Understanding Confidence Intervals

The t-curve has fatter tails than normal bell curve. That takes into account the added uncertainty involved with estimating the standard deviation from a small number of observations. That becomes important when your sample size is small. Otherwise, you could wind up with an interval too tight because you used z-score. By contrast, the t-score widens net and keeps you honest.

That net gets wider pretty quickly depending upon which confidence level you choose. You want 99% confidence? Then you’d better make it wide enough to account for way more possibilities. But 90%? It is not so bad. It’s an intuitive trade-off.

You want to know whether or not your method is reliable enough to capture the true parameter, but remember that a 95% confidence interval doesn’t actually mean there’s a 95% chance the parameter is in that specific range. Check out table of critical values on this page. Notice how much the multiplier jumps from 90% confidence (z = 1.645) to 99% confidence (z = 2.576). The bigger number widens your interval considerably. Statistics isn’t broken. It’s expensive to get more certain.

The real lever you have control over is sample size. As your sample increases, the standard error decreases slowly because of its square root relationship. For example, doubling your sample only cuts down the standard error by roughly 41%. This diminishing return throws researchers for a loop. They’d like tighter precision, so they double their sample and expect half the margin of error. Never gonna happen. To cut width of your interval in half, you need four times the amount of data.

It is expensive and slow, which is why you’ll frequently find surveys settling on a sample size of a thousand, no matter if population is ten thousand or ten million. Once your sample gets big enough relative to the population, the math don’t care how big the population is. But it gets interesting in terms of proportion when your guess is around 50%. That’s the point of maximum uncertainty: there’s more room for a split vote than there is for a landslide. The standard error formula use the product of p times q. When both are half, that product is as large as possible.

Plan your study to account for worst-case variance (at 50%) so that your sample size will be sufficient even if actual proportion differs from what you think. Better safe than sorry: it’s better to over-estimate than realize afterwards that your confidence interval is too wide to provide any guidance.

When your sample represents a substantial portion of overall population there’s also the matter of a finite population correction factor: if you’re surveying from staff of 100, and you’re polling 50, then standard formulas don’t apply, as they assume an infinite pool. Since you’ve already encountered half the population, that correction narrows the interval. You know more than the standard model knows. It’s a small adjustment, but important for quality control checks and internal audits where N isn’t huge.

Now we come to the last hurdle: interpreting result. The 95% confidence interval is not saying that there’s a 95% chance parameter falls within this particular interval. There is no probability assigned to the parameter! It either is or it isn’t. The 95% is a statement about the process. If I ran this study thousands of times, 95% of these computed intervals will include the true value.

This confuses both student and execs. We want a probabilistic statement about a single result. But frequentist statistics doesn’t provide this directly. It provides reliability of the process. You get to see how it’s calculating the width for each step (standard error to final bounds), which I think is helpful.

So next time you’re looking at customer satisfaction scores or trying to analyze results of a medical trial, now you know the math behind it all and won’t be tricked into thinking your sample size is representative when it probably isn’t. Margin of error isn’t something to hide. It’s the cost of working with imperfect information. Build the interval. Check the assumptions. Accept that truth is probably within this range, although we don’t know precisely where. You should of used a larger sample for more accuratley results.

Confidence Interval Calculator (Mean & Proportion, z/t)