Confidence interval calculator
A single measured mean is never the answer on its own; it comes with a range. This calculator builds the confidence interval from the mean, the standard deviation and the sample size, and shows how quickly the interval narrows — and how much it costs in samples to narrow it further.
| n | Margin | Interval |
|---|---|---|
| 10 | ±9.30 | 90.7 – 109.3 |
| 25 | ±5.88 | 94.1 – 105.9 |
| 50 | ±4.16 | 95.8 – 104.2 |
| 100 | ±2.94 | 97.1 – 102.9 |
| 400 | ±1.47 | 98.5 – 101.5 |
Quadrupling the sample halves the margin — precision is expensive.
SE = σ/√n · Uncertainty of the estimated mean.
x̄ ± z·SE · z from the confidence level.
2·z·SE · Halves when n quadruples.
A clear path from inputs to results.
A single measured mean is never the answer on its own; it comes with a range. This calculator builds the confidence interval from the mean, the standard deviation and the sample size, and shows how quickly the interval narrows — and how much it costs in samples to narrow it further.
How to use
- Enter the sample mean.
- Enter the standard deviation.
- Enter the sample size and confidence level.
- Read the interval and the margin.
The formula
Reference: Normal approximation to the sampling distribution of the mean.
Worked example
Mean 100, σ 15, n 25
- Mean 100.
- Standard deviation 15.
- Sample size 25.
- 95% confidence.
- 1
Standard error: 15/√25 = 3.
- 2
Margin: 1.96 × 3 = 5.88.
- 3
Interval: 94.12 to 105.88.
95% CI 94.12 – 105.88 (±5.88).
Interpreting the result
The interval is about the estimate, not the population: 95% of intervals built this way contain the true mean. Quadrupling the sample halves the width, which is the practical limit on how precise a small study can be.
Assumptions & limitations
- Normal approximation; use t below about 30 observations.
- Independent observations.
- Known or well-estimated standard deviation.
- No measurement bias.
Frequently asked questions
What does 95% mean?
If the study were repeated many times, 95% of the intervals would contain the true value.
Should I use t or z?
Use t for small samples; the difference is small above 30.
Why is my interval so wide?
Small samples and high variability both widen it.
Methodology last reviewed 2026-10-21. Results are informational and not financial or engineering advice — see our disclaimer.