Confidence Interval Formula

Confidence interval is a range of values, computed from sample data, that is likely to contain the true population parameter with a specified level of confidence.

The Formula

xˉ±z∗⋅sn

Ask yourself: Am I building a range from a sample that likely contains the true population value at a stated confidence?

Quick example

Sample: xˉ=82, s=10, n=64. For 95% CI (z∗=1.96): 82±1.96⋅1064=82±2.45=(79.55,  84.45)

Notation

z∗ is the critical value (e.g., 1.96 for 95% confidence); s is the sample standard deviation.

What this formula means

A range of values, computed from sample data, that is likely to contain the true population parameter with a specified level of confidence.

A confidence interval is a ring toss around a peg you can't see. The peg is the true value, and your sample decides where the ring lands. A 95% method uses a ring sized so that 95% of tosses catch the peg. A bigger ring catches more often but says less about where the peg is, and a ring that has landed either holds the peg or doesn't.

Formal view

xˉ±z∗⋅sn where P(−z∗<Z<z∗)=1−α for confidence level 1−α

Worked examples

Example 1

medium
A sample of n=64 has xˉ=85 and s=16. Construct a 95% confidence interval for the population mean.
Show solution

Answer

95% CI: (81.08,88.92). We are 95% confident the population mean is in this interval.

First step

1.
Standard error: SE=sn=1664=168=2

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

hard
Compare 90% and 99% confidence intervals for xˉ=100, s=15, n=36. Calculate both and explain the trade-off between confidence and precision.

Example 3

hard
A factory needs a 95% CI for mean bolt length with E≤0.5mm. Known σ=4mm, z∗=1.96. Smallest n?

Common mistakes

  • Saying '95% chance the true value is in THIS interval' - the parameter is fixed; 95% refers to the procedure over many samples.
  • Using the data's SD as the spread of the estimate - the interval uses the standard error sn, not s alone.
  • Picking the wrong critical value - z∗=1.96 for 95%, not for 90% or 99%; match z∗ to the confidence level.

Why this formula matters

A single number from a sample, like "average sleep is 7.1 hours," hides how far off it might be. An interval like 6.8 to 7.4 hours shows how precise the survey was, and lets readers judge whether two groups really differ. Misreading it is common: the 95% describes how often the method captures the truth across many samples, not the chance for one interval already computed.

Frequently asked questions

What is the Confidence Interval formula?

A range of values, computed from sample data, that is likely to contain the true population parameter with a specified level of confidence.

How do you use the Confidence Interval formula?

Use a confidence interval when a question asks you to estimate a population mean or proportion from a sample and to show the uncertainty, often with words like "95% confident" or "plausible values." If the question gives a claimed value and asks whether the data contradict it, use a hypothesis test. If it asks only for the plus-or-minus part, that is the margin of error. If it asks how spread out individual values are, that is the standard deviation.

What do the symbols mean in the Confidence Interval formula?

z∗ is the critical value (e.g., 1.96 for 95% confidence); s is the sample standard deviation.

Why is the Confidence Interval formula important in Math?

A single number from a sample, like "average sleep is 7.1 hours," hides how far off it might be. An interval like 6.8 to 7.4 hours shows how precise the survey was, and lets readers judge whether two groups really differ. Misreading it is common: the 95% describes how often the method captures the truth across many samples, not the chance for one interval already computed.

What do students get wrong about Confidence Interval?

The procedure for confidence interval is the easy part; the trap is saying '95% chance the true value is in THIS interval'. Asking "Am I building a range from a sample that likely contains the true population value at a stated confidence?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Confidence Interval formula?

Before studying the Confidence Interval formula, you should understand: sampling distribution, central limit theorem, z score.