Confidence Interval Calculator
Critical Z-Values
When to Use Each
Sources & Methodology
CI = x̄ ± z × (σ/√n)Confidence interval for mean
How to Use the Confidence Interval Calculator
The confidence interval calculator computes confidence intervals for means and proportions at various confidence levels. Visualize the interval with error bars and determine the sample size needed for your desired margin of error.
What is a Confidence Interval?
A confidence interval is a range of values that likely contains the true population parameter. A 95% confidence interval means: if we repeated the sampling process many times, about 95% of the intervals would contain the true value.
The Formula
Confidence Interval = Sample Statistic ± Margin of Error
Margin of Error = Critical Value × Standard Error
Components
- Sample Mean (x̄): The center of your interval
- Standard Deviation (s): Measure of spread
- Sample Size (n): Number of observations
- Confidence Level: Usually 90%, 95%, or 99%
Critical Values
Common z-values for different confidence levels:
- 90% confidence: z = 1.645
- 95% confidence: z = 1.96
- 99% confidence: z = 2.576
Use t-values instead of z-values for small samples (n < 30).
Interpreting Confidence Intervals
A 95% CI of (42.5, 47.5) means: "We are 95% confident that the true population mean is between 42.5 and 47.5."
Sample Size Determination
To achieve a specific margin of error:
n = (z × σ / E)²
where E is the desired margin of error.
Related Calculators
For p-values and hypothesis testing, use our p-value calculator. For standard deviation, try our standard deviation calculator.
Stay Updated
Get new calculators and tips delivered to your inbox.