Skip to content

Math

Confidence Interval

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

I have
Common levels

95% confidence interval

62.4 ± 2.082

The true mean is likely between 60.318 and 64.482.

Interval
[60.318 – 64.482]
Margin of error
±2.082
Margin as a share of the mean
±3.3%
Standard error, s/√n
1.0625
Critical value
Z = 1.9600
60.31862.464.482
Error bar: the mean 62.4 with the interval from 60.318 to 64.482.

CI = X̄ ± Z × s / √n

= 62.4 ± 1.9600 × 8.5 / √64

= 62.4 ± 2.082

The same data at other confidence levels

Interval at other confidence levels
Z valueMarginLowHigh
70%1.036±1.10161.29963.501
75%1.150±1.22261.17863.622
80%1.282±1.36261.03863.762
85%1.440±1.53060.87063.930
90%1.645±1.74860.65264.148
95%1.960±2.08260.31864.482
98%2.326±2.47259.92864.872
99%2.576±2.73759.66365.137
99.5%2.807±2.98259.41865.382
99.9%3.291±3.49658.90465.896
99.99%3.891±4.13458.26666.534
99.999%4.417±4.69357.70767.093

How to use

  1. Choose whether you have a sample size, mean and standard deviation, or a list of numbers.
  2. Enter the confidence level (95% is the usual choice) and pick the method: normal (Z) when the standard deviation is known or the sample is large, or Student t when you estimated it from a small sample.
  3. Read the interval, the margin of error, the margin as a share of the mean and the critical value, with the working shown underneath.
  4. The table lists the same data at other confidence levels, so you can see how much wider a more certain interval gets.

Formula

Interval = mean ± critical value × s ÷ √n. The critical value is Z (1.96 at 95%) for the normal method, or t with n − 1 degrees of freedom for the t method (2.262 at 95% when n = 10). The part after the ± is the margin of error.

Example

A sample of 64 students has a mean mark of 62.4 and a standard deviation of 8.5. At 95% the margin is 1.96 × 8.5 ÷ √64 = 2.08, so the interval is 62.4 ± 2.08, from 60.32 to 64.48.

A 95% interval does not mean there is a 95% chance that this particular interval holds the true mean; it means that 95% of intervals built this way would. The method assumes a random sample from a roughly normal population, or a large enough sample for the mean to be roughly normal.