Confidence Interval Calculator
A confidence interval gives a range of plausible values for a population mean, based on a sample. A 95% interval is built so that, over many samples, about 95% of such intervals would contain the true mean. This calculator finds the standard error, critical value and margin of error, and shades the interval on a bell curve.
How to use the confidence interval calculator
- Enter the sample mean, standard deviation and sample size.
- Choose the confidence level.
- Press Calculate to see the interval and margin of error.
Formula
Worked example: Mean 72.5, σ 8, n 50, 95%
- Sample mean x̄: 72.5
- Standard deviation σ: 8
- Sample size n: 50
- Confidence level: 95%
✓ Answer checked
- Margin of error
- Critical value z*
- Standard error
Step-by-step working (4 steps)
Standard error
How much the sample mean typically varies.
Critical value
For 95% confidence, 95% of the normal curve lies between −z* and z*.
Margin of error
z* × SE.
Interval
Mean ± margin of error.
Formulas used
How this was checked
- ✓ The area between −z* and z* under the normal curve is 95%.
Uses the normal (z) distribution with a known or large-sample standard deviation. For small samples with an estimated σ, a t-interval is slightly wider.
Frequently asked questions
What is the z value for 95% confidence?
About 1.96.
Why is a 99% interval wider than a 95% one?
To be more confident of capturing the true mean, the interval must cover more values.
How do I make the interval narrower?
Use a larger sample. The margin of error shrinks in proportion to 1/√n.
Related calculators
Normal Distribution Calculator
Find normal probabilities P(X < a), P(X > a) or P(a < X < b) from the mean and standard deviation, with z-scores and a shaded bell curve.
Z-Score Calculator
Find the z-score of a value from the mean and standard deviation, plus its percentile under the normal curve, with steps and a shaded bell curve.
Standard Deviation Calculator
Calculate the standard deviation and variance of a data set, for a sample or a population, with the deviations table and every step shown.
