Confidence Interval Calculator
Last reviewed: June 2026 by the InvNorm Calculator Editorial Team. Report an issue
Use this Confidence Interval Calculator to construct a confidence interval for a population mean using the Z-based method. Enter the sample mean, standard deviation (or standard error), sample size, and your desired confidence level. The calculator will compute the margin of error, critical Z value, and the lower and upper bounds of the interval.
What Is a Confidence Interval?
A confidence interval provides a range of plausible values for a population parameter based on sample data. When you compute a 95% confidence interval for a population mean, you are constructing an interval such that if you repeated the sampling process many times, approximately 95% of the resulting intervals would contain the true population mean. The confidence level reflects how often the method produces an interval that captures the parameter, not the probability that any single interval contains it.
Confidence intervals are more informative than point estimates alone because they convey the precision of the estimate. A narrow interval suggests high precision (typically from a large sample or low variability), while a wide interval indicates substantial uncertainty. Researchers, analysts, and decision-makers use confidence intervals to quantify uncertainty in estimates of means, proportions, differences, and other parameters.
Confidence Interval Formula
The Z-based confidence interval for a population mean is:
CI = x̄ ± z* · SE
where:
- x̄ is the sample mean
- z* is the critical Z value for the chosen confidence level, computed as z* = Φ−1(1 − α/2)
- SE is the standard error of the mean, calculated as SE = σ / √n
- α = 1 − confidence level (e.g., α = 0.05 for 95% confidence)
The margin of error (ME) is the quantity z* · SE. The lower bound is x̄ − ME and the upper bound is x̄ + ME.
Worked Example
A researcher measures the systolic blood pressure of 64 patients and finds a sample mean of 120 mmHg with a known population standard deviation of 16 mmHg. Construct a 95% confidence interval.
- Identify values: x̄ = 120, σ = 16, n = 64, confidence level = 95%
- Find the critical value: α = 0.05, z* = Φ−1(0.975) ≈ 1.95996
- Calculate standard error: SE = 16 / √64 = 16 / 8 = 2.0
- Calculate margin of error: ME = 1.95996 × 2.0 = 3.920
- Construct the interval: 120 ± 3.920 = (116.080, 123.920)
- Interpret: We are 95% confident that the true mean systolic blood pressure lies between 116.08 and 123.92 mmHg.
Confidence Interval Calculator FAQs
A 95% confidence interval means that if the sampling process were repeated many times, approximately 95% of the resulting intervals would contain the true population mean. It does not mean there is a 95% probability that this specific interval contains the true mean.
The margin of error equals the critical Z value (z*) multiplied by the standard error: ME = z* × SE, where SE = σ / √n. This calculator computes the margin of error automatically from your sample mean, standard deviation, sample size, and chosen confidence level.
Use the Z-based method (as in this calculator) when the population standard deviation is known or the sample size is large (typically n ≥ 30). Use the t-distribution method when the population standard deviation is unknown and the sample size is small, since the t-distribution accounts for the extra uncertainty from estimating the standard deviation.
Related Calculators
InvNorm Calculator
Find X values and Z scores from normal probabilities.
Critical Value Calculator
Find critical Z values for hypothesis tests.
Normal Distribution Calculator
Compute probabilities and values for any normal distribution.
Z Score Calculator
Convert raw values to standardized Z scores.
Standard Normal Calculator
Work with the standard normal distribution (μ=0, σ=1).
Return to the InvNorm Calculator to run your own calculation.