Primary Tool
Confidence Interval 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.
- 1Compute the standard error: .
- 2Identify the critical value for 95% confidence: .
- 3Compute the margin of error: .
- 4Build the interval: .
- 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
What a -value means and what it does not mean
A -value is a measure of how surprising the observed test statistic would be if the null hypothesis were true. It is not the probability that the null hypothesis itself is true.
Open explanation →
Calculate the expected value and variance of a discrete random variable
Expected value is the probability-weighted average of a distribution's outcomes. Variance measures how spread out those outcomes are around that average. Both are computed from the same probability table.
Open worked example →