Margin of Error Calculator

Calculate margin of error for surveys.

Sample size must be at least 2

Examples:

Enter sample size and parameters to calculate margin of error

What Is the Margin of Error?

The margin of error (MOE) is the "plus or minus" in poll results:

"52% of voters support the candidate (±3%)"

This means the true level of support is estimated to be between 49% and 55%. The margin of error quantifies sampling uncertainty—how much the sample result might differ from the true population value.

The Formula

For proportions (polls, surveys):

MOE=z∗×p(1−p)nMOE = z^* \times \sqrt{\frac{p(1-p)}{n}}

For means:

MOE=t∗×snMOE = t^* \times \frac{s}{\sqrt{n}}

Where:

  • z∗z^* = critical z-value (1.96 for 95% confidence)
  • t∗t^* = critical t-value for the sample size
  • pp = sample proportion
  • ss = sample standard deviation
  • nn = sample size

The margin of error is half the width of the confidence interval.

Interpreting Poll Results

When you see "48% support, margin of error ±3%":

  1. The sample showed 48% support
  2. We're 95% confident true support is between 45% and 51%
  3. If the interval includes 50%, the race is a statistical tie

Close Races

Candidate A: 48% (±3%) → Range: 45-51% Candidate B: 46% (±3%) → Range: 43-49%

These ranges overlap substantially. Despite A leading by 2 points, the difference isn't statistically significant.

Why Margin of Error Matters

It Captures Uncertainty

A sample is just a snapshot. The margin of error reminds us that another sample would give slightly different results.

It Enables Informed Decisions

"Product approval: 62% (±4%)" tells managers that true approval likely falls between 58% and 66%—useful for planning.

It Reveals Sample Quality

Large margins indicate imprecise estimates. Small margins suggest the sample is adequate.

Factors Affecting Margin of Error

Sample Size (n)

The dominant factor. MOE∝1/nMOE \propto 1/\sqrt{n}

Sample SizeApproximate MOE (95%, p=0.5)
100±10%
400±5%
1,000±3.1%
2,500±2%
10,000±1%

Key insight: Quadrupling sample size halves the margin of error. Getting very precise estimates requires very large samples.

Proportion Value (p)

MOE is largest when p = 0.5 and decreases toward 0 or 1:

ProportionMOE (n=1000, 95%)
50%±3.1%
30% or 70%±2.9%
10% or 90%±1.9%
5% or 95%±1.4%

For planning, assume p = 0.5 (conservative approach).

Confidence Level

Higher confidence = wider margin:

Confidence Levelz*MOE (relative to 90%)
90%1.6451.00
95%1.9601.19
99%2.5761.57

Most polls use 95% confidence.

Population Size (for small populations)

For sampling from finite populations, apply the finite population correction:

MOEadjusted=MOE×N−nN−1MOE_{adjusted} = MOE \times \sqrt{\frac{N-n}{N-1}}

This only matters when you're sampling more than 5-10% of the population.

Applications

Political Polling

Every major poll reports margin of error. Understanding it prevents overinterpreting small leads.

Market Research

"Brand awareness: 34% (±4%)"

Marketers can assess whether changes are real or within the margin of error.

Quality Control

"Defect rate: 2.1% (±0.5%)"

Engineers know the true rate likely falls between 1.6% and 2.6%.

Medical Studies

"Treatment success: 72% (±6%)"

Clinicians understand the precision of the estimate.

Common Misconceptions

"The Margin of Error Covers All Errors"

Wrong. MOE only covers random sampling error. It doesn't include:

  • Non-response bias
  • Question wording effects
  • Sampling frame problems
  • Interviewer effects

A poll can have ±3% margin of error but be off by 10% due to these other factors.

"Bigger Sample = Better Quality"

Not necessarily. A large biased sample is worse than a small random sample. The Literary Digest poll of 1936 surveyed 2.4 million people and predicted Landon would beat Roosevelt—Roosevelt won in a landslide.

"Margin of Error Applies to All Subgroups"

The reported MOE is for the full sample. Subgroup analyses (by age, region, etc.) have larger margins because they use smaller portions of the sample.

Calculating Required Sample Size

Working backward: if you want a specific margin of error, what sample size do you need?

n=(z∗MOE)2×p(1−p)n = \left(\frac{z^*}{MOE}\right)^2 \times p(1-p)

Example: For ±3% at 95% confidence with p = 0.5:

n=(1.960.03)2×0.5×0.5=1,067n = \left(\frac{1.96}{0.03}\right)^2 \times 0.5 \times 0.5 = 1,067

You need about 1,067 respondents.

Historical Context

The margin of error concept emerged as polling developed in the early 20th century.

George Gallup pioneered scientific polling in the 1930s, using random sampling and probability theory. His successful 1936 presidential prediction (when Literary Digest failed) demonstrated the importance of proper sampling over sheer sample size.

The term "margin of error" became standard in poll reporting, though statisticians often prefer "margin of sampling error" to clarify what it covers.

Modern polling faces challenges from declining response rates, but margin of error calculations remain fundamental to interpreting results.

Margin of Error vs. Confidence Interval

These are closely related:

  • Confidence Interval: A range (e.g., 45% to 51%)
  • Margin of Error: Half the CI width (e.g., ±3%)

CI = Point Estimate ± MOE

They contain the same information in different formats.

Total Survey Error

Professional pollsters distinguish:

  • Sampling error: What MOE measures
  • Coverage error: Missing parts of the population
  • Non-response error: People who refuse to participate
  • Measurement error: Question wording, interviewer effects

Total survey error encompasses all of these. MOE is just one component—often not even the largest.

Related Calculations

Summary

The margin of error quantifies the precision of sample-based estimates. It depends primarily on sample size (larger = smaller MOE), with confidence level and proportion value as secondary factors. While commonly reported for polls, MOE only captures random sampling error—not other sources of survey error. Understanding margin of error enables proper interpretation of poll results: close races may be statistical ties, and subgroup analyses have larger uncertainties. Always remember that ±3% means a range of 6 percentage points, not a guarantee of accuracy.