Confidence Interval Calculator
Calculate a confidence interval for a mean from the sample mean, standard deviation and sample size, using the t-distribution, or for a proportion from successes and sample size, using the Wilson score interval. Choose any confidence level from 50% to 99.99%.
Frequently asked questions
What does a 95% confidence interval mean?
If you repeated the sampling many times and computed an interval each time, about 95% of those intervals would contain the true value. It does not mean the true value has a 95% chance of lying in this one interval.
Why does the mean interval use the t-distribution?
Because the standard deviation is estimated from the sample. The t-distribution with n - 1 degrees of freedom accounts for that extra uncertainty, which matters for small samples.
What is the Wilson score interval?
A confidence interval for proportions that stays within 0% and 100% and works better than the simple normal approximation for small samples or proportions near 0 or 1.
What is the margin of error?
Half the width of the interval: the critical value times the standard error. Surveys usually report it as plus or minus a few percentage points.
How do I make the interval narrower?
Increase the sample size or lower the confidence level. Quadrupling the sample size roughly halves the width.
Which standard deviation should I enter?
The sample standard deviation, computed with n - 1 in the denominator, as spreadsheet functions such as STDEV.S return it.