Confidence interval calculator
Compute a z-based confidence interval from the sample mean, sample standard deviation, sample size, and confidence level.
What this calculator covers
Use this calculator when you want the interval around a sample mean instead of a single-point estimate.
The page keeps the standard error and z-based margin of error visible so the lower and upper bounds are easy to audit.
Frequently asked questions
- What does a 95% confidence interval actually mean?
- It means that if you repeated your sampling procedure many times and built an interval each time, roughly 95% of those intervals would contain the true population mean. It does not mean there is a 95% probability the true mean falls within this specific interval — the interval either contains it or it does not.
- When should I use a t-distribution instead of a z-distribution?
- A z-based interval is most appropriate when the sample size is large (often cited as 30 or more) or when the population standard deviation is known. For small samples or when population spread is uncertain, a t-distribution produces wider, more conservative intervals that better account for that uncertainty.
- Why does a larger sample size produce a narrower interval?
- Standard error — the spread of the sampling distribution — equals the sample standard deviation divided by the square root of sample size. As sample size grows, the denominator grows too, shrinking the standard error and pulling the interval bounds closer to the mean.
- What confidence level should I use — 90%, 95%, or 99%?
- Higher confidence requires a wider interval. A 95% level is the most common default in applied research. Use 99% when the cost of a wrong conclusion is high and you can tolerate a wider estimate. Use 90% when a narrower interval is more useful and a small miss rate is acceptable for your purpose.
Tool
Run the calculation
Result
RESULT · CONFIDENCE INTERVAL
â„–163
Primary result
48.040036 to 51.959964
With a sample mean of 50 and a 95% z-based interval, the confidence interval runs from 48.040036 to 51.959964.
- Z-score used
- 1.959964
- Standard error
- 1
- Margin of error
- 1.959964
- Lower bound
- 48.040036
- Upper bound
- 51.959964
Step-by-step solution
- 1.Compute the standard error: 10 / √100 = 1.
- 2.Use the 95% z-score 1.959964 to get a margin of error of 1.959964.
- 3.Add and subtract that margin from the sample mean 50 to get [48.040036, 51.959964].
Walkthrough
Visual walkthrough
A confidence interval starts with the sample mean, then widens by a z-based margin of error on both sides.
01
Compute the standard error
10 / √100 = 1
Standard error shrinks as the sample gets larger and grows as the sample standard deviation gets larger.
02
Build the margin of error
1.959964 × 1 = 1.959964
The confidence level selects the z-score multiplier that widens or narrows the interval.
03
Apply the margin around the mean
Subtract the margin for the lower bound and add it for the upper bound.
48.040036 to 51.959964