Margin of Error Calculator

Get the plus-or-minus margin for a poll result or an average, test whether one option's lead is real, and see how sample size changes the margin.

Result type
Use 50% for the worst-case (largest) margin.
From the same poll, to test whether the lead is real.
Applies the finite population correction.
Range
48.9% to 55.1%
Standard error
1.58 points
Critical value (z*)
1.96
Worst case (p = 50%)
±3.1 points
Lead
+8 points
Margin on the lead
±6.05 pointslead exceeds it: significant
Margin of error (95% confidence)±3.1%percentage points around 52%
  • Covers random sampling error only, not non-response, wording or coverage bias.

Show the work

  1. Critical value for 95% confidence: z* = 1.96
  2. Standard error: √(p̂(1 − p̂) ÷ n) = √(0.52 × 0.48 ÷ 1,000) = 0.015799
  3. Margin of error: z* × SE = 1.96 × 0.015799 = 0.030965 → ±3.1 percentage points
  4. Plausible range: 52% ± 3.1 = 48.9% to 55.1%
  5. Lead: 52% − 44% = 8 points. Its standard error is √((p₁ + p₂ − (p₁ − p₂)²) ÷ n) = √((0.52 + 0.44 − 0.0064) ÷ 1,000) = 0.03088
  6. Margin of error on the lead: 1.96 × 0.03088 = ±6.05 points, so the lead is statistically significant at 95% confidence
404550556048.903555.09652nd: 44%
Margin of error by sample size
Sample sizeMargin of error
50±13.85%
100±9.79%
200±6.92%
300±5.65%
400±4.9%
500±4.38%
750±3.58%
1,000±3.1%
1,500±2.53%
2,000±2.19%
2,500±1.96%
5,000±1.38%
10,000±0.98%

Every poll headline that says “plus or minus 3 points” is quoting a margin of error. It is half the width of a confidence interval: the distance on either side of a sample result within which the true population value plausibly lies. This calculator finds the margin for a percentage or an average, applies the finite population correction when you sample a large share of a small group, and answers the question readers actually ask: is that lead real?

How to use the margin of error calculator

  1. Pick percentage for a poll or survey share, or average for a mean.
  2. Enter the sample size. For a percentage, enter the reported share; for an average, enter the standard deviation (and the mean, if you want the interval).
  3. To test a lead, enter the second option’s percentage from the same poll.
  4. Choose the confidence level and, for a small population, its size.
  5. The tape shows the margin and plausible range; the table shows how the margin changes with sample size.

Margin of error formulas

For a sample proportion p̂ from n responses:

E = z* × √(p̂(1 − p̂) ÷ n)

For a sample mean with standard deviation s:

E = t* × s ÷ √n

For the lead between two shares from the same poll, the two shares are negatively related (a vote for one is a vote not cast for the other), so the variance of the difference is

Var(p̂₁ − p̂₂) = (p₁ + p₂ − (p₁ − p₂)²) ÷ n

When the sample is a noticeable fraction of a population of size N, multiply any margin by √((N − n) ÷ (N − 1)).

Worked example

A poll of 1,000 likely voters puts Candidate A at 52% and Candidate B at 44%.

  1. Standard error for A: √(0.52 × 0.48 ÷ 1,000) = 0.015799.
  2. Margin of error at 95%: 1.96 × 0.015799 = 0.0310, so A’s support is 52% ± 3.1 points, or 48.9% to 55.1%.
  3. The lead is 8 points. Its standard error is √((0.52 + 0.44 − 0.08²) ÷ 1,000) = 0.03088.
  4. Margin on the lead: 1.96 × 0.03088 = ±6.05 points. Since 8 > 6.05, the lead is statistically significant at 95% confidence.

Notice that the margin on the lead (6.05) is close to double the single-share margin (3.1). Had the lead been 5 points, it would have looked “outside the margin of error” by the naive comparison while actually being too close to call.

How sample size drives the margin

The margin falls with the square root of the sample size, so gains slow down quickly:

Sample size Worst-case margin (95%)
100 ±9.8 points
400 ±4.9 points
1,000 ±3.1 points
2,500 ±2.0 points
10,000 ±1.0 point

Quadrupling the sample only halves the margin. To plan a survey around a target margin, run the numbers backward with the sample size calculator.

Subgroups have bigger margins

A national poll of 1,000 might include only 150 voters under 30. Their results carry a margin of about ±8 points, so swings in subgroup numbers between polls are often noise. Always check the subgroup n before reading much into a breakdown.

Worst case versus actual share

Pollsters often publish one margin for the whole survey, computed at 50%, because that is the largest possible value. A share far from 50% has a smaller margin: at 10% with n = 1,000 it is only ±1.9 points.

For an interval with a choice of methods (Wilson, exact) use the confidence interval calculator. To turn raw vote counts into shares first, use the vote percentage calculator.

The margin of error covers random sampling error only, assuming a probability sample. Online opt-in panels and weighted samples have larger effective margins than these formulas suggest.

Frequently asked questions

What does a margin of error of ±3 points mean?

If a poll of 1,000 people shows 52% and the margin is ±3.1 points at 95% confidence, the method used would capture the true population share in about 95 of 100 repeated polls with intervals like 48.9% to 55.1%. It measures random sampling error only.

Is a lead within the margin of error a tie?

Not exactly. The margin on the gap between two candidates is roughly double the margin on each share, so comparing the lead with the single-share margin is the wrong test. This calculator computes the margin on the lead directly. A lead smaller than that margin is too close to call, not proof the race is tied.

Why do most national polls use about 1,000 people?

Because the margin of error depends on the sample size, not the population size. At 1,000 respondents the worst-case margin is about ±3.1 points; getting to ±2 points takes about 2,400 respondents, a large extra cost for a modest gain.

What does the margin of error not cover?

It ignores every non-random error: people who refuse to answer, leading question wording, an outdated list of phone numbers, or respondents who change their minds. Those biases can be larger than the sampling error and do not shrink with a bigger sample.

Should I use z or t for the margin of error of a mean?

Use t when the standard deviation is estimated from the same sample, which is the default here. With large samples the difference is tiny; with 1,000 observations the 95% critical value is 1.962 for t versus 1.960 for z.

Last reviewed October 2026 by the CalcFluent editorial team. How we check our calculators.