Confidence Interval Calculator
Confidence intervals for a mean or a proportion at 90%, 95% or 99% — with margin of error, standard error and a number-line drawing.
Confidence interval
Note: Uses the normal (z) method, appropriate for larger samples. For small samples the t distribution gives slightly wider, more honest intervals.
A Confidence Interval Is an Estimate With Its Error Bars
A sample gives a point estimate; a confidence interval gives the honest range around it: estimate ± z* × standard error. For a mean, the standard error is s / √n; for a proportion, it is √(p(1 − p) / n). The multiplier z* comes from the confidence level — 1.645 for 90%, 1.96 for 95%, 2.576 for 99% — which is why the interval widens when you demand more confidence or shrinks, slowly, with the square root of the sample size. The number-line under the result draws your interval to scale.
Worked Examples
A sample mean of 50 with s = 10 and n = 100 at 95%: standard error 10 / 10 = 1, margin 1.96 × 1 = 1.96, interval 48.04 to 51.96. A proportion of 0.6 from n = 100 at 95%: standard error √(0.24 / 100) = 0.049, margin ≈ 0.096, interval 0.504 to 0.696. Quadrupling n would only halve these margins — the square root is the tax on precision, and it is why polls cluster around n = 1,000 (a ±3% margin) rather than 10,000.
What 95% Confidence Actually Means
Not "there is a 95% chance the truth is in this interval" — the truth is fixed and either in or out. It means the procedure captures the truth in 95% of repeated samples. The practical reading most people intend — "values inside are plausible, outside are unlikely" — is close enough for honest reporting, as long as the interval is reported at all. A point estimate with no interval is a number pretending to be certain; the interval is the certainty, quantified.
Frequently Asked Questions
What does 95 percent confidence mean?
The procedure captures the true value in 95 percent of repeated samples. Practically, values inside the interval are plausible and values outside are unlikely — report the interval, not just the estimate.
Why does the interval shrink so slowly with sample size?
The standard error divides by the square root of n. Quadrupling the sample only halves the margin — precision is bought at square prices.
Mean or proportion — which mode do I need?
Mean for measurements (heights, times, scores); proportion for yes/no counts (votes, conversions, defects). The standard error formula differs between them.
Should I use z or t for small samples?
t, ideally — it widens the interval to price in estimating the standard deviation. This calculator uses the z method, standard for larger samples, and says so on the page.