Confidence Interval Calculator
Build a confidence interval for a mean, proportion, or difference of two means. Picks z or t, supports 80, 90, 95, 98, 99, and 99.9 percent.
Two-Sided Z Critical Values
| Confidence Level | Z Critical Value | Two-Sided Alpha |
|---|---|---|
| 80% | 1.282 | 0.20 |
| 90% | 1.645 | 0.10 |
| 95% | 1.960 | 0.05 |
| 98% | 2.326 | 0.02 |
| 99% | 2.576 | 0.01 |
| 99.9% | 3.291 | 0.001 |
Frequently Asked Questions about the Confidence Interval Calculator
What does a 95% confidence interval actually mean?
It is a range built from your sample using a procedure that, if repeated on many independent samples, would capture the true population value about 95% of the time. It is not the probability that the true value is inside this one specific interval; the 95% describes the long-run reliability of the method.
When does the calculator use z and when does it use t?
For a single mean, the calculator uses Student's t whenever you enter a sample standard deviation, regardless of sample size, with n - 1 degrees of freedom. A difference between two means uses Welch's t and Welch-Satterthwaite degrees of freedom when at least one sample standard deviation is greater than zero. If both are zero, the standard error is zero and the interval collapses to the observed difference, so the reported critical-value kind does not change the bounds. The proportion mode uses z inside the Wilson score interval because it is a binomial proportion rather than a sample-mean interval.
What is the margin of error?
Margin of error is critical value times standard error, the half-width of the interval. A 95% CI of 100 plus or minus 4 has a margin of error of 4. Shrinking it requires a larger sample, a lower confidence level, or less variability.
How do I pick a confidence level?
Choose the confidence level before analyzing the data and follow the standard for your field. Higher confidence produces a wider interval for the same sample. A lower level produces a narrower interval but lower long-run coverage. Clinical and safety decisions usually require a full study design, not a confidence-level choice alone.
Why warn about small samples for proportions?
This calculator uses the Wilson score interval, which behaves better than the Wald interval near 0% and 100%. It still warns when np or n(1-p) is below about 10 because sparse endpoint data contain limited information. For formal work with very small samples, compare the Wilson result with an exact Clopper-Pearson interval.
Related Calculators
More calculators in "Math"
Octagon CalculatorBinomial Distribution CalculatorP-Value CalculatorExponential Growth CalculatorAntilog CalculatorSpecific Heat Calculator
See all 202 calculators in "Math"