Calculate the confidence interval around a sample mean. Enter the sample size, sample mean, standard deviation, and confidence level to see the critical Z-score, margin of error, and lower and upper bounds.
Formula
The normal confidence interval is:
CI = x̄ ± Z × s / √n
Here, x̄ is the sample mean, s is the standard deviation, n is the sample
size, and Z is the two-sided critical value for the chosen confidence level.
A higher confidence level produces a wider interval. A larger sample size produces a narrower interval, all else equal.
Examples
95% interval for the default sample
With n = 50, mean = 20.6, and standard deviation = 3.2, the 95% critical value is 1.9600. The result is 20.6 ± 0.887, or [19.713, 21.487].