Menu
numiqo
Statistics made easy

Statistics made easy

8th revised edition (March 2026) - many illustrative examples - only €8.99

Free sample

Confidence Interval

Author: Dr. Hannah Volk-Jesussek
Updated:

What is a Confidence Interval?

A confidence interval (CI) is a range of plausible values for a population parameter, such as the population mean. It is calculated from sample data and reflects the uncertainty in the estimate.

If several samples are taken from a population, it is very likely that each sample will have a different mean value. However, we want to know the mean of the population, not only the mean of the sample. A confidence interval gives a range of plausible values for that population mean.

Confidence Interval

Caution! A 95% confidence level does not mean that there is a 95% probability that the parameter lies in this particular interval. In frequentist statistics, the parameter is fixed, while the interval varies from sample to sample. The precise definition is:

If the same sampling procedure were repeated many times and a 95% confidence interval were calculated from each sample, about 95% of those intervals would contain the true population parameter.

In statistics, parameters of the population are often estimated based on a sample, such as the mean or the variance. However, these are only estimates and will usually differ from the true population values. A confidence interval expresses the uncertainty around an estimate.

Calculating a Confidence Interval

To calculate a confidence interval, the sampling distribution of the estimator is required. When a normal-distribution critical value is appropriate, the confidence interval for the mean is given by:

Confidence interval formula

Where x is the sample mean, n is the sample size and s is the sample standard deviation. Plus and minus indicate the lower and upper limits of the confidence interval respectively.

Confidence interval upper and lower limit

When the population standard deviation is unknown and is estimated by s, the t-distribution is generally used instead of the normal distribution. This distinction is especially important for small samples. The z value is then replaced by a t value with n − 1 degrees of freedom:

Confidence interval with t-distribution Formula

95% Confidence Interval

Before calculating a confidence interval, you choose a confidence level. Common choices are 95% and 99%. In repeated sampling, the confidence level is the proportion of intervals produced by the method that would contain the true population parameter.

For the 95% confidence interval and the 99% confidence interval, the z values are as follows:

Confidence Level 95% 99%
z-value 1.96 2.58

A 95% confidence interval comes from a method that captures the true parameter in about 95% of repeated samples. For one calculated interval, the true parameter either lies within it or it does not.

Confidence interval 95%

Confidence Interval for the t-test

A t-test compares differences in means, e.g. you can use a t-test to test whether there is a difference in salary between men and women.

You actually want to make a statement whether there is a difference in salary in the population. Since you cannot survey the entire population, you use a sample. In that sample, you may observe a difference in salary.

In order to be able to estimate approximately in which range the mean difference in the population lies, you calculate the confidence interval.

In the t-test calculator on numiqo.com you can calculate the confidence interval of the mean difference.

When combining independent study estimates, the meta-analysis calculator displays 95% confidence intervals for the individual studies and the pooled effect in a forest plot. Enter study summary data or effect estimates with their standard errors.


Statistics made easy

  • many illustrative examples
  • ideal for exams and theses
  • statistics made easy on 464 pages
  • 8th revised edition (March 2026)

Only €8.99

Free sample
numiqo

"Super simple written"

"It could not be simpler"

"So many helpful examples"

Cite numiqo: numiqo Team (2026). numiqo: Online Statistics Calculator. numiqo e.U. Graz, Austria. URL https://numiqo.com