Confidence Interval Formula

A confidence interval is a range of values, calculated from sample data, constructed so that the procedure captures the true population parameter a specified percentage of the time (eg, 95%).

The Formula

estimate±margin of error

Ask yourself: Is the goal to report a range of plausible values for an unknown population mean or proportion, built from one sample?

Quick example

Poll: 52% support candidate, margin of error ±3%. 95% CI: 49%-55%. Every value from 49% to 55% is a plausible level of true support.

Notation

CI is the confidence interval. zα/2 is the critical z-value (1.96 for 95%). α is the significance level. The margin of error is E=zα/2⋅SE.

What this formula means

A confidence interval is a range of values, calculated from sample data, constructed so that the procedure captures the true population parameter a specified percentage of the time (e.g., 95%). It quantifies the uncertainty inherent in using a sample to estimate a population value.

Ring toss with a peg you cannot see: the peg (the true value) never moves, and each sample throws a ring (the interval) centered on its own estimate. A 95% method rings the peg on about 95 throws out of 100. Once a ring has landed, it either circles the peg or it doesn't; the 95% describes the thrower, not that throw.

Formal view

A (1−α)100% confidence interval for μ is xˉ±zα/2⋅σn. When σ is unknown, use xˉ±tα/2,n−1⋅sn.

Worked examples

Example 1

medium
From n=64 samples, xˉ=120, σ=16 known. Find the 99% CI for μ.
Show solution

Answer

[114.85, 125.15]

First step

1.
SE=16/8=2; z∗=2.576.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

medium
How large should n be so that a 95% z-CI for μ (with σ=12) has margin ≤2?

Example 3

hard
xˉ=68, s=12, n=9. Construct a 95% t-CI for μ. Use t∗=2.306 (df =8).

Common mistakes

  • Thinking 95% CI means 95% of data falls there
  • Interpreting as probability for one interval
  • Confusing confidence with probability

Why this formula matters

A single estimate hides its own uncertainty. "3.1 hours of screen time a day" sounds exact, but from 100 students the true school average could easily be 2.8 or 3.4. The interval makes that visible, lets you compare two groups honestly, and answers questions like "is 3 hours plausible?". Misread the 95% as the share of students inside the range, or as the chance this one interval is right, and you will claim more than the sample shows.

Frequently asked questions

What is the Confidence Interval formula?

A confidence interval is a range of values, calculated from sample data, constructed so that the procedure captures the true population parameter a specified percentage of the time (e.g., 95%). It quantifies the uncertainty inherent in using a sample to estimate a population value.

How do you use the Confidence Interval formula?

Build a confidence interval when a question asks for a range of plausible values for a population mean, proportion or difference, or pairs an estimate with a confidence level such as 90%, 95% or 99%. You need the sample statistic, its standard error and a critical value. If only the ± half-width is wanted, that is the margin of error; if the question asks whether one claimed value can be rejected, run a hypothesis test. A two-sided test at α=0.05 rejects roughly the same values that fall outside a 95% interval.

What do the symbols mean in the Confidence Interval formula?

CI is the confidence interval. zα/2 is the critical z-value (1.96 for 95%). α is the significance level. The margin of error is E=zα/2⋅SE.

Why is the Confidence Interval formula important in Statistics?

A single estimate hides its own uncertainty. "3.1 hours of screen time a day" sounds exact, but from 100 students the true school average could easily be 2.8 or 3.4. The interval makes that visible, lets you compare two groups honestly, and answers questions like "is 3 hours plausible?". Misread the 95% as the share of students inside the range, or as the chance this one interval is right, and you will claim more than the sample shows.

What do students get wrong about Confidence Interval?

Students often know a procedure related to confidence interval but skip the recognition step: Is the goal to report a range of plausible values for an unknown population mean or proportion, built from one sample? That leads to a calculation or graph that looks reasonable but answers a different question.

What should I learn before the Confidence Interval formula?

Before studying the Confidence Interval formula, you should understand: standard error, sampling distribution.