Margin of Error Calculator

Enter your sample results and a confidence level to find the margin of error.

A proportion from 0 to 1.

How many observations were in the sample.

Confidence level

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

Try

Result

You enteredp^=0.5, n=1000, 95%\hat{p} = 0.5,\ n = 1000,\ 95\%

0.03099\displaystyle 0.03099

As a percentage

3.098975%\displaystyle 3.098975\%
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 a proportion

    The standard error measures how much a sample proportion would typically vary from sample to sample.

    SE=p^(1−p^)n=0.5×0.51000=0.00025≈0.015811\begin{aligned} SE &= \sqrt{\frac{\hat{p}\left(1 - \hat{p}\right)}{n}} \\ &= \sqrt{\frac{0.5 \times 0.5}{1000}} \\ &= \sqrt{0.00025} \approx 0.015811 \end{aligned}
  3. Margin of error

    The margin of error is how far either side of the sample proportion the true proportion could plausibly be, at this confidence level.

    E=z∗×SE=1.959964×0.015811≈0.03099\begin{aligned} E &= z^* \times SE \\ &= 1.959964 \times 0.015811 \approx 0.03099 \end{aligned}
  4. Result

    So the margin of error is 0.030990.03099, which is 3.098975%.

Worked examples