Confidence Interval Calculator

Confidence interval for a mean or a proportion.

  • Free, no sign-up
  • Runs in your browser — files stay private

What is the Confidence Interval Calculator?

A confidence interval gives a range of plausible values for a population parameter based on your sample. A 95% CI means that if you repeated the study many times, about 95% of such intervals would contain the true value. Means use the t-distribution; proportions use the Wilson score method, which stays accurate for small samples.

How to use the Confidence Interval Calculator

  1. Choose mean or proportion and the confidence level.
  2. Enter the sample size and either the mean and SD or the number of successes.
  3. Report the interval with your estimate.

Formula and method

Mean: x̄ ± tα/2, n−1 × s/√n
Proportion (Wilson): [p + z²/2n ± z√(p(1−p)/n + z²/4n²)] ÷ (1 + z²/n)

Frequently asked questions

Why not use p ± 1.96√(p(1−p)/n)?

That simple (Wald) interval is inaccurate for small samples and proportions near 0 or 100%. Wilson is recommended.

Last updated · Part of Statistics & Research