Confidence Interval Calculator

Build confidence intervals for proportions and means with step-by-step solutions, margin of error, and critical values.

  • Proportion — CI for a population proportion using z*
  • Mean (σ known) — z-interval when the population standard deviation is known
  • Mean (σ unknown) — t-interval when using the sample standard deviation

CI for a population proportion using z*

Formulas Used

CI for proportion

CI for mean (σ known)

CI for mean (σ unknown)

How to Use This Calculator

  1. Select a mode — proportion, mean with known σ, or mean with unknown σ
  2. Choose a confidence level — 90%, 95%, or 99%
  3. Enter your values — sample statistic, spread measure, and sample size
  4. See the result with the full interval, margin of error, and step-by-step work

When to Use Each Mode

  • Proportion — you have a sample percentage (e.g., “42% of 500 surveyed voters support the policy”) and want to estimate the true population proportion
  • Mean (σ known) — you know the population standard deviation from prior research and want to estimate the population mean from a sample
  • Mean (σ unknown) — you only have the sample standard deviation (the most common real-world scenario) and want to estimate the population mean

Common Confidence Levels

Levelz*Use
90%1.645Screening, preliminary analysis
95%1.960Standard for most research
99%2.576High-stakes decisions, medical research