Confidence Interval Calculator

Enter your sample results and a confidence level to get an interval for the true value.

The mean of your sample.

The standard deviation, which must be more than 0.

How many observations were in the sample.

Confidence level

How sure the interval should be of containing the true value.

Try

Result

You enteredxˉ=50, σ=10, n=25, 95%\bar{x} = 50,\ \sigma = 10,\ n = 25,\ 95\%

(46.080072, 53.919928)\displaystyle \left(46.080072,\ 53.919928\right)

Margin of error

3.919928\displaystyle 3.919928

Critical value

z∗=1.959964\displaystyle z^* = 1.959964

Standard error

2\displaystyle 2

Written as

50±3.919928\displaystyle 50 \pm 3.919928
Show the work
  1. Critical value from the normal distribution

    The critical value z∗z^* marks off the middle 95% of the standard normal curve, leaving 2.5% in each tail, so the area to the left of z∗z^* is 0.975.

    z∗=Φ−1(0.975)≈1.959964z^* = \Phi^{-1}\left(0.975\right) \approx 1.959964
  2. Standard error of the mean

    The standard error measures how much a sample mean would typically vary from sample to sample. Here σ\sigma is the known standard deviation and nn is the sample size.

    SE=σn=1025=2\begin{aligned} SE &= \frac{\sigma}{\sqrt{n}} \\ &= \frac{10}{\sqrt{25}} \\ &= 2 \end{aligned}
  3. Margin of error

    The margin of error is how far the interval reaches on each side of the estimate: the critical value times the standard error.

    ME=z∗×SE=1.959964×2≈3.919928\begin{aligned} ME &= z^* \times SE \\ &= 1.959964 \times 2 \approx 3.919928 \end{aligned}
  4. Confidence interval

    Subtract the margin of error from the estimate for the lower end and add it for the upper end.

    Using xˉ±ME\bar{x} \pm ME

    xˉ±ME=50±3.919928≈(46.080072, 53.919928)\bar{x} \pm ME = 50 \pm 3.919928 \approx \left(46.080072,\ 53.919928\right)
  5. Result

    So the 95% confidence interval for the mean runs from 46.08007246.080072 to 53.91992853.919928.

Worked examples