Confidence Interval Calculator
Calculate a confidence interval for a mean (t or z), a proportion (Wilson, Wald, exact Clopper–Pearson) or a difference of two means, from summaries or raw data.
A 95% interval means that, over many repeated samples, about 95% of intervals built this way would contain the true value. It assumes a random sample; t intervals also assume roughly normal data or a large n.
A confidence interval gives a range of plausible values for something you have estimated from a sample, such as an average or a percentage. This calculator builds intervals for a single mean (with the t or z distribution), for a proportion (Wilson, Wald and exact Clopper–Pearson) and for the difference between two group means (Welch's method), from summary numbers or from your raw data.
How to use this tool
- Choose what the interval is for: a mean, a proportion or a difference of two means.
- Pick the confidence level; 95% is the usual choice.
- Enter the summary values (mean, standard deviation and sample size, or successes and trials), or paste raw data.
- Read the interval, the margin of error and the critical value used.
Formula
Mean: x̄ ± t* × s/√n · Proportion (Wilson): [p̂ + z²/2n ± z√(p̂(1−p̂)/n + z²/4n²)] ÷ (1 + z²/n) · Two means: (x̄₁ − x̄₂) ± t* √(s₁²/n₁ + s₂²/n₂)
t* comes from the t distribution with n − 1 degrees of freedom (Welch–Satterthwaite degrees of freedom for two groups); use z* when the population standard deviation is truly known. The Clopper–Pearson limits are the beta-distribution quantiles that make the binomial tail probabilities equal to α/2.
Example
A sample of 25 has mean 50 and SD 10. The standard error is 10 ÷ √25 = 2, and t* for 24 degrees of freedom at 95% is 2.0639, so the interval is 50 ± 4.13 = 45.87 to 54.13. For 40 successes out of 100, the Wilson 95% interval is 30.9% to 49.8%, slightly shifted toward 50% compared with the simple 30.4–49.6%.
Frequently asked questions
When should I use t instead of z?
Use t whenever the standard deviation comes from the sample itself, which is almost always. With large samples t* and z* become nearly equal (at n = 100, 1.984 vs 1.960).
Which proportion interval is best?
The Wilson interval is a good default. The Wald interval can fall below 0% or above 100% and covers the truth less often than claimed for small samples; Clopper–Pearson is exact but wider.
Does a 95% interval have a 95% chance of containing the true value?
Strictly, the 95% describes the method: 95% of intervals built this way from repeated samples would contain the true value. Any one interval either contains it or not.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/confidence-interval-calculator/
Cite or embed this tool
kakaoCalc. (2026, November 8). Confidence Interval Calculator. https://kakao.mobile/tools/confidence-interval-calculator/
“Confidence Interval Calculator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/confidence-interval-calculator/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms