Margin of Error Calculator

Margin of Error Calculator

Find the ± figure for a poll result or a sample average, and check whether the lead between two answers is bigger than its own margin of error.

MoE = z × √(p(1 − p) ÷ n)

Enter a result and the sample size

What Is the Margin of Error?

The margin of error is the ± figure that says how far a sample result could be from the true population value because of random sampling alone. At 95% confidence, 19 polls in 20 land within it.

It shrinks with the square root of the sample size, so quadrupling the sample only halves the margin. That's why polls rarely go far beyond 1,000 to 2,000 people.

The headline margin applies to a single percentage. The gap between two parties in the same poll has a margin nearly twice as wide, which is why "neck and neck" is often the honest reading of a small lead.

Margin of Error Formula

As given in OpenStax Introductory Statistics, chapter 8, and the Pew Research Center's guidance on the margin of error for leads. See Sources.

1. For one percentage

MoE = z × √(p(1 − p) ÷ n)

2. For the lead between two answers

MoE(lead) = z × √((p₁ + p₂ − (p₁ − p₂)²) ÷ n)

The two shares come from the same people, so when one goes up the other tends to go down. That negative link widens the margin.

3. For an average, with a small population

MoE = t(n − 1) × s ÷ √n × √((N − n) ÷ (N − 1))

The last factor applies only when a population size is entered.

Worked Example: Is a 4-Point Poll Lead Real?

Given:
A poll of 1,000 voters puts party A on 44% and party B on 40%.
Step 1:
Margin on party A:
1.96 × √(0.44 × 0.56 ÷ 1,000) = ±3.08 pts
Step 2:
Margin on party B:
1.96 × √(0.40 × 0.60 ÷ 1,000) = ±3.04 pts
Step 3:
Margin on the lead itself:
1.96 × √((0.44 + 0.40 − 0.04²) ÷ 1,000) = ±5.68 pts
Result:
Lead of 4 points, ±5.68 pts

The lead is less than its margin, so the poll can't rule out a tie. Note that the lead's margin is roughly double the ±3 points printed under the poll.

Margin of Error by Sample Size

For a result near 50%, which gives the widest margin.

Margin of error in percentage points for each sample size and confidence level
Sample size90%95%99%
100±8.2±9.8±12.9
400±4.1±4.9±6.4
1,000±2.6±3.1±4.1
2,000±1.8±2.2±2.9
10,000±0.8±1±1.3

Common Margin of Error Mistakes

  • Using the headline margin for a lead. A poll's ±3 applies to each figure on its own. The gap between two of them needs roughly ±6.
  • Applying the full-sample margin to a subgroup. 18–24-year-olds may be 120 of 1,000 respondents, with a margin near ±9 points.
  • Treating it as the total error. It ignores who refused to answer, question wording and online panels that aren't random samples.
  • Comparing two polls as if margins add. The change between two independent polls has a margin of about √2 times one poll's margin, not twice.

Margin of Error FAQs

What does “±3% at 95% confidence” mean?

If the poll were repeated many times, about 95% of the results would land within 3 points of the true figure.

Why is the margin largest at 50%?

Because p(1 − p) peaks at 0.25 when p = 0.5. A result of 10% has a margin about 40% smaller.

How is this different from a confidence interval?

The margin is half the width of the interval. The interval is the result ± the margin.

Why use t for averages?

Because the standard deviation is estimated from the same sample. For samples over about 30 the t and z multipliers are close.

Does a bigger population need a bigger sample?

Barely. Population size only matters when the sample is a noticeable share of it, which the optional field handles.

Can the interval go below 0%?

This simple formula can for results near 0 or 100%. The display caps it, but for such results a Wilson interval is better.

Do online opt-in polls have a margin of error?

Strictly no, as they aren’t random samples. Many report a “credibility interval” from modelling instead.

How do I halve my margin of error?

Quadruple the sample. The sample size calculator works out the exact number for a target margin.

Sources

Related Tools