STATISTICS CALCULATOR

Confidence Interval Calculator

Estimate a two-sided confidence interval for a sample mean using the z-critical-value method. Enter the mean, standard deviation, sample size and critical z value.

Enter valid values and calculate the interval.

Formula and calculation method

The calculator first estimates the standard error as SE = s / √n, where s is the standard deviation entered and n is the sample size. It then calculates the margin of error, E = z × SE. The lower endpoint is the sample mean minus E; the upper endpoint is the sample mean plus E.

This is a z-based interval. A z value of 1.96 is commonly used for a two-sided 95% interval. Other confidence levels require a different critical value; this tool does not infer the confidence level automatically.

Practical worked example

Suppose a sample has a mean of 50, standard deviation of 10, and 100 observations. With z = 1.96, SE = 10 / √100 = 1, and E = 1.96 × 1 = 1.96. The resulting interval is 48.04 to 51.96. The units remain the same as the original measured variable.

How to use the result

  1. Enter a sample mean and the standard deviation for the same variable and sample.
  2. Enter the number of observations as a positive whole number.
  3. Use the critical z value appropriate to your confidence level and whether the interval is one- or two-sided.
  4. Review the assumptions before reporting or comparing the interval.

Interpretation and limitations

A 95% confidence procedure means that, across repeated samples and under its assumptions, about 95% of intervals constructed by that procedure would contain the fixed population parameter. It is not best described as a 95% probability that the true value lies inside this one interval after the data have been observed.

This page uses the entered standard deviation in a z-based standard-error formula. If the population standard deviation is unknown and the sample is small, a t critical value with the appropriate degrees of freedom is often more suitable. Non-random sampling, strong skew, outliers, dependence between observations or a complex survey design can also make a simple interval misleading. This calculator does not diagnose those conditions.

Frequently asked questions

What does a confidence interval tell me?

It gives a range produced by a statistical procedure to estimate a population parameter, while reflecting sampling uncertainty under the procedure's assumptions.

What z value should I enter for a 95% interval?

For a common two-sided 95% z interval, use approximately 1.96. A different confidence level or a one-sided interval uses a different critical value.

Does a larger sample make the interval narrower?

Usually, if variability and the method stay the same, a larger sample reduces the standard error because it is divided by the square root of the sample size. Bias and poor sampling design are not fixed by increasing sample size alone.

Related calculators

Standard Error Calculator · Statistics Calculator · Standard Deviation Calculator · Math Calculator Hub