Worked ExampleStatisticsIntroConfidence Interval Calculator

Build and interpret a confidence interval for a population mean

A confidence interval turns a sample mean into a range of plausible values for the population mean. The width of that range depends on the sample size, the variability in the data, and the chosen confidence level.

Primary Tool

Confidence Interval Calculator

Open calculator

The confidence interval calculator takes sample mean, standard deviation, sample size, and -value and reports the interval directly. It also makes it easy to see how the interval width responds to changes in or the confidence level.

Problem

A sample of students produces a mean exam score of with sample standard deviation . Construct a 95% confidence interval for the population mean .

This is a standard inference problem. The sample is large enough to use the -interval, and the numbers are chosen to make each step of the calculation clear.

Where the interval comes from

The sample mean estimates , but any single sample produces a slightly different . The standard error measures how much that variation is expected to be.

The 95% confidence interval is , where is the -score that puts 95% of the standard normal distribution between and .

Step-by-step walkthrough

The four steps follow directly from the formula.

  1. 1Compute the standard error: .
  2. 2Identify the critical value for 95% confidence: .
  3. 3Compute the margin of error: .
  4. 4Build the interval: .
  5. 5State the result: the 95% confidence interval for the population mean is approximately .

What the interval does and does not say

The correct interpretation is about the procedure, not this specific interval: if the same study were repeated many times with samples of the same size, 95% of the resulting intervals would contain the true .

The true mean is fixed — it does not have a probability of being in any interval. Either it is inside or it is not. You cannot assign a 95% probability to that specific interval after observing the data.

A narrower interval is not automatically better. To get a narrower interval at the same confidence level you need a larger , which costs more data. Lowering the confidence level also narrows the interval but makes the coverage guarantee weaker.

Common Pitfall

A 95% confidence interval does not mean there is a 95% probability that the true mean lies in this particular interval. It means that the procedure that produced this interval captures the true mean in 95% of repeated samples. The distinction matters because is a fixed number, not a random variable.

Try a Variation

Keep the same sample mean and standard deviation but double the sample size to . How does the interval width change? What does that tell you about the relationship between sample size and precision?

Related Pages

Keep moving through the cluster

Back to Learn Math →