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.
đąFormula Snapshot
đCritical z Values
| Confidence | Alpha | Alpha / 2 | Two-Tail z | One-Tail z |
|---|---|---|---|---|
| 80% | 0.20 | 0.100 | 1.282 | 0.842 |
| 85% | 0.15 | 0.075 | 1.440 | 1.036 |
| 90% | 0.10 | 0.050 | 1.645 | 1.282 |
| 95% | 0.05 | 0.025 | 1.960 | 1.645 |
| 98% | 0.02 | 0.010 | 2.326 | 2.054 |
| 99% | 0.01 | 0.005 | 2.576 | 2.326 |
| 99.9% | 0.001 | 0.0005 | 3.291 | 3.090 |
đCritical t Values (Two-Tail)
| df | Sample n | 90% t | 95% t | 99% t |
|---|---|---|---|---|
| 1 | 2 | 6.314 | 12.706 | 63.657 |
| 4 | 5 | 2.132 | 2.776 | 4.604 |
| 9 | 10 | 1.833 | 2.262 | 3.250 |
| 14 | 15 | 1.761 | 2.145 | 2.977 |
| 19 | 20 | 1.729 | 2.093 | 2.861 |
| 24 | 25 | 1.711 | 2.064 | 2.797 |
| 29 | 30 | 1.699 | 2.045 | 2.756 |
| 49 | 50 | 1.677 | 2.010 | 2.680 |
| 99 | 100 | 1.660 | 1.984 | 2.626 |
| â | large | 1.645 | 1.960 | 2.576 |
đMethod Comparison Grid
| Method | Use When | Standard Error | Critical | Interval | Notes |
|---|---|---|---|---|---|
| Mean z | Sigma known or n large | sigma / sqrt(n) | z | xbar ± E | Normal model |
| Mean t | Sigma unknown, use s | s / sqrt(n) | t, df nâ1 | xbar ± E | Wider than z |
| Proportion z | Count or percent data | sqrt(pq / n) | z | p ± E | Wald interval |
| Small mean | n under 30, s only | s / sqrt(n) | t | xbar ± E | Assumes normal |
| Large poll | n over 1000 percent | sqrt(pq / n) | z | p ± E | Tight margin |
| Finite pop | Sample near N size | SE à FPC | z or t | est ± E | Shrinks SE |
âFull Formula Breakdown
đMargin of Error Reference
| Item | Typical Range | Effect on Interval | Why |
|---|---|---|---|
| Confidence level | 90% to 99% | Higher level, wider CI | Larger critical value |
| Sample size n | 10 to 5000 | Larger n, tighter CI | SE falls with sqrt(n) |
| Spread (s or sigma) | Data dependent | More spread, wider CI | SE grows with spread |
| Proportion near 0.5 | 0 to 1 | Widest at p = 0.5 | p(1âp) is maximal |
| z versus t | Small n | t gives a wider CI | Heavier t tails |
đĄPractical CI Tips
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.

