# Confidence Interval Calculator

Use this calculator to compute the confidence interval or margin of error, assuming the sample mean most likely follows a normal distribution. Use the Standard Deviation Calculator if you have raw data only.

### What is the confidence interval?

In statistics, a confidence interval is a range of values that is determined through the use of observed data, calculated at a desired confidence level that may contain the true value of the parameter being studied. The confidence level, for example, a 95% confidence level, relates to how reliable the estimation procedure is, not the degree of certainty that the computed confidence interval contains the true value of the parameter being studied. The desired confidence level is chosen prior to the computation of the confidence interval and indicates the proportion of confidence intervals, that when constructed given the chosen confidence level over an infinite number of independent trials, will contain the true value of the parameter.

Confidence intervals are typically written as (some value) Â± (a range). The range can be written as an actual value or a percentage. It can also be written as simply the range of values. For example, the following are all equivalent confidence intervals:

20.6 Â±0.887

or

20.6 Â±4.3%

or

[19.713 â 21.487]

**Calculating confidence intervals:**

Calculating a confidence interval involves determining the sample mean, XÌ, and the population standard deviation, Ï, if possible. If the population standard deviation cannot be used, then the sample standard deviation, s, can be used when the sample size is greater than 30. For a sample size greater than 30, the population standard deviation and the sample standard deviation will be similar. Depending on which standard deviation is known, the equation used to calculate the confidence interval differs. For the purposes of this calculator, it is assumed that the population standard deviation is known or the sample size is larger enough therefore the population standard deviation and sample standard deviation is similar. Only the equation for a known standard deviation is shown.

XÌ Â± ZĂ | Ï |

ân |

Where Z is the Z-value for the chosen confidence level, XÌ is the sample mean, Ï is the standard deviation, and n is the sample size. Assuming the following with a confidence level of 95%:

X = 22.8

Z = 1.960

Ï = 2.7

n = 100

The confidence interval is:22.8 Â±1.960Ă | 2.7 |

â100 |

22.8 Â±0.5292

**Z-values for Confidence Intervals**

Confidence Level | Z Value |

70% | 1.036 |

75% | 1.150 |

80% | 1.282 |

85% | 1.440 |

90% | 1.645 |

95% | 1.960 |

98% | 2.326 |

99% | 2.576 |

99.5% | 2.807 |

99.9% | 3.291 |

99.99% | 3.891 |

99.999% | 4.417 |