Skip to main content
Confidence interval calculator

Put an honest range around your average.

Enter your sample mean, standard deviation and sample size, then see the confidence interval, the margin of error and how the range widens as you ask for more confidence.

Your sample

95% confidence interval
0 to 0
the range likely to contain the true mean

What this interval is telling you

    The interval on a number line

    Point estimate with the confidence band

    Interval scorecard

    Same data at every confidence level

    The standard error stays the same. Asking for more confidence uses a larger z value, so the interval gets wider.

    Confidencez valueMargin of error Lower boundUpper boundWidth

    Confidence intervals, explained

    What Is a Confidence Interval?

    A confidence interval is a range of values that is likely to contain the true population parameter. A 95% confidence interval means that if you repeated the sampling process many times, about 95% of the intervals would contain the true population mean. It quantifies the uncertainty in your estimate.

    How Confidence Intervals Are Calculated

    The formula is: CI = x̄ ± z × (σ / √n), where x̄ is the sample mean, z is the z-score for the chosen confidence level, σ is the standard deviation, and n is the sample size. The margin of error is z × (σ / √n). Larger samples and lower confidence levels produce narrower intervals.

    Choosing a Confidence Level

    Common confidence levels are 90%, 95%, and 99%. A 95% level is the most widely used in research. Higher confidence levels give wider intervals (more certainty but less precision). The choice depends on the consequences of being wrong and the cost of wider intervals.

    Common Misconceptions

    A 95% confidence interval does NOT mean there is a 95% probability the true mean is in the interval. The true mean is either in the interval or it is not. The 95% refers to the long-run frequency of intervals that capture the true mean across repeated sampling.

    Common questions

    How does sample size affect the confidence interval?

    Larger sample sizes produce narrower confidence intervals because the standard error (σ/√n) decreases as n increases. Quadrupling the sample size cuts the margin of error in half.

    What is the margin of error?

    The margin of error is the "± " part of the confidence interval. It equals z × (σ / √n) and represents the maximum expected difference between the sample mean and the true population mean at the chosen confidence level.

    When should I use a t-distribution instead?

    Use the t-distribution when sample size is small (typically n < 30) and the population standard deviation is unknown. For large samples, the t and z distributions are nearly identical.

    Can the confidence interval include negative numbers?

    Yes. If your sample mean is close to zero and the margin of error is large, the lower bound can be negative. This is valid and simply reflects the uncertainty in the estimate.

    Estimates for planning only. This uses the normal (z) approximation with your sample standard deviation. For small samples (n under 30) a t-distribution gives a slightly wider, more accurate interval. Confidence intervals describe sampling uncertainty, not measurement error or bias.