Professional Confidence Interval Calculator

Calculate confidence intervals for population means and proportions. Supports z-interval and t-interval with step-by-step solutions.

For learning and homework help — verify critical calculations independently.

Reviewed by CalculatorDrive Math Editorial Board · Last updated

Calculator

Enter your data to calculate the confidence interval for population mean or proportion.

The short answer

A confidence interval is a range built around a sample statistic that's likely to contain the true population value: interval = point estimate ± (critical value × standard error). A 95% confidence interval means that if you repeated the sampling process many times, about 95% of the intervals you'd build would contain the true population parameter — not that there's a 95% chance the true value sits inside this one specific interval.

Key takeaways

  • A wider confidence level (99% vs. 90%) always produces a wider interval — you're trading precision for certainty, not getting a "more correct" answer.
  • Use the z-distribution when the population standard deviation is known or the sample is large (n ≥ 30); use the t-distribution when σ is estimated from a small sample.
  • Quadrupling the sample size only halves the margin of error, since standard error shrinks with the square root of n, not with n itself.
  • "95% confidence" describes the long-run reliability of the method across repeated sampling, not the probability that this specific interval contains the true value.

The confidence interval formula

Mean (σ known): CI = x̄ ± z × (σ / √n)

Proportion: CI = p̂ ± z × √(p̂(1 − p̂) / n)

Confidence level z critical value
90%1.645
95%1.96
99%2.576

z vs. t: which critical value to use

Condition Use Why
σ known, any sample sizezStandard normal distribution applies exactly
σ unknown, n ≥ 30z (approx.)Large samples make t nearly identical to z
σ unknown, n < 30tFatter tails account for extra uncertainty in estimating σ

Worked example: 95% interval for a sample mean

Sample mean x̄ = 50.5, sample size n = 100, standard deviation σ = 10.5, confidence level = 95%.

Standard error = σ / √n = 10.5 / √100 = 1.05

Margin of error = 1.96 × 1.05 ≈ 2.06

95% CI = 50.5 ± 2.06 = [48.44, 52.56]

We'd say we are 95% confident the true population mean falls between 48.44 and 52.56 — meaning this method captures the true mean in about 95% of samples drawn the same way, not that this specific interval has a 95% chance of being right.

Common mistakes to avoid

  • Interpreting "95% confidence" as "95% probability the true value is in this interval" — it's a statement about the long-run method, not this one computed interval.
  • Using z when the sample is small and σ is unknown — the t-distribution's fatter tails exist specifically to account for that extra uncertainty.
  • Assuming doubling the sample size halves the margin of error — it actually takes quadrupling n to halve the margin, since standard error shrinks with √n.
  • Forgetting proportion confidence intervals need p̂ between 0 and 1, and can behave poorly near 0 or 1 with small samples.

Frequently Asked Questions

What is a confidence interval?

A confidence interval is a range of values that likely contains the true population parameter, such as a mean. A 95% interval means that if you repeated sampling many times, about 95% of intervals would capture the true value.

What does 95% confidence actually mean?

It describes the method, not a single interval. You cannot say there is a 95% probability the true mean lies in one computed interval — the parameter is fixed; the interval is random.

When do you use z versus t for confidence intervals?

Use the z distribution when population standard deviation is known or sample size is large. Use the t distribution when σ is unknown and estimated from a small sample.

How does sample size affect interval width?

Larger samples produce narrower intervals because the standard error shrinks. More data means more precision.

How do I use this confidence interval calculator?

Enter sample mean, standard deviation, sample size, and confidence level, then click Calculate to see the interval endpoints and margin of error.

Why is a 99% confidence interval wider than a 95% one?

Higher confidence requires a wider net to be more certain of capturing the true value. The critical value grows with confidence level — about 1.645 for 90%, 1.96 for 95%, and 2.576 for 99% — so the margin of error, and therefore the interval, gets wider as confidence increases.

More math calculators