Queendom Tools

Margin of Error Calculator for Surveys

This calculator gives the margin of error of a survey proportion in percentage points and the confidence interval around it. Enter the number of completed responses, the share found in the sample in percent and a confidence level of 90 or 95 percent; the results update as you type.

The method assumes a simple random sample from a large population: it applies no finite population correction and no design effect. When you plan a survey, enter an estimated proportion; the margin of error is then a planning figure, and the interval is not an observed interval.

Calculator

Margin of error
± 3.099 percentage points
Confidence interval
46.90 percent to 53.10 percent
Normal approximation
np and n(1-p) are both greater than 5: the condition is met

E = 100 × 1.96 × √((50/100) × (1 − 50/100) / 1000) = 3.099 percentage points; lower limit = 50 − 3.099 = 46.90 percent; upper limit = 50 + 3.099 = 53.10 percent

Simple random sample of a large population: no finite population correction, no design effect. The interval limits are not clipped to 0 to 100 percent.

Theory: the margin of error of a proportion

E = z × [ p (1 − p) / n ]1/2

Epp = 100 × E    interval: p% − Epp to p% + Epp

Where the formula comes from

For a proportion p from a simple random sample of size n, OpenStax gives the error bound for a proportion as z × [p(1 − p)/n]1/2, where p = x/n is the proportion found in the sample, and the confidence interval as p plus and minus that value. The sources print z = 1.96 for 95 percent and z = 1.645 for 90 percent; the 99 percent value is not printed there, and the page does not offer it. The product p(1 − p) is largest at p = 50 percent, the figure pollsters usually use (AAPOR).

When it does not hold

The interval needs the number of successes np and the number of failures n(1 − p) both greater than 5; the calculator shows a note when this is not met. A weighted survey needs the design effect in the margin of error (Pew), and a finite population needs a correction; the page has neither. If p is an estimate chosen for planning, the margin of error is a planning figure, and p plus and minus it is not an observed interval.

Worked example

Example 8.10 of OpenStax: 500 adults are asked, 421 answer yes, 95 percent confidence, so z = 1.96.

p = 421/500 = 0.842 (84.2 percent) and 1 − p = 0.158.

p(1 − p) = 0.842 × 0.158 = 0.133036; divided by n = 500: 2.66072 × 10-4.

[2.66072 × 10-4]1/2 = 0.0163117; × 1.96 = 0.0319710, so E = 0.0319710 and Epp = 3.19710 percentage points.

Interval: 84.2 − 3.19710 = 81.0029 and 84.2 + 3.19710 = 87.3971, that is 81.00 to 87.40 percent; OpenStax prints (0.81003, 0.87397).

Margin of error: 3.197 percentage points

AAPOR says a poll of 1,000 adults has a margin of about plus or minus 3 points; for 1,000 responses, p = 50 percent and 95 percent confidence the page gives 3.099 percentage points.

Sources: OpenStax, Introductory Statistics 2e, section 8.3. AAPOR, Margin of Sampling Error/Credibility Interval. Pew Research Center, NPORS 2023 methodology.

How to use the calculator

  1. Enter the sample size n: the number of completed responses, a whole number of 1 or more.
  2. Enter the sample proportion p in percent: the share found in the sample. When you plan a survey and the share is not known yet, enter 50.
  3. Choose the confidence level: 90 percent or 95 percent.
  4. Read the margin of error in percentage points and the confidence interval in percent; the results recompute on every change.
  5. Check the normal approximation note: if np or n(1-p) is 5 or less, the interval is not reliable.
  6. Read the formula line under the results to see the typed values in the formula.

Frequently asked questions

What is the margin of error for 1,000 responses at 95 percent confidence?

With a sample proportion of 50 percent, the margin of error is 3.099 percentage points, and the interval is 46.90 to 53.10 percent. AAPOR gives about plus or minus 3 points for a poll of 1,000 adults.

Does a bigger sample always reduce the margin of error?

Yes, but the margin of error falls with the square root of n, not with n itself: four times as many responses halve it. AAPOR notes that beyond 1,000 responses it falls only slightly.

What proportion should I enter when it is not known yet?

Enter 50 percent. The product p(1 − p) is largest at 50 percent, so the result is the largest margin of error for that sample size, a planning figure. The interval shown is then not an observed interval.

Why is a sample size of 0 not accepted?

The formula divides p(1 − p) by n, and a division by 0 has no result. The sample size must be a whole number of 1 or more.

Disclaimer

For preliminary estimation only. This calculator is not a substitute for a survey design or a review by a qualified statistician.