Margin of Error Calculator
Find the margin of error for your survey or estimate the sample size you need.
📖 What is Margin of Error?
The margin of error (MOE) quantifies the uncertainty in a survey or statistical estimate. It tells you how much the sample result might differ from the true population value, at a specified confidence level. A survey result of "52% ± 3%" means the true proportion is estimated to lie between 49% and 55% with the stated confidence.
Margin of error is central to survey research, opinion polling, scientific experiments, and quality control. It depends on three factors: sample size (larger samples = smaller MOE), population variance (more heterogeneous populations = larger MOE), and confidence level (higher confidence = larger MOE because you need a wider interval to be more certain).
Understanding MOE is critical for interpreting surveys correctly. When two candidates are within each other's margin of error (e.g., Candidate A at 51% and Candidate B at 49% with MOE ±3%), the race is statistically too close to call from that poll alone - the difference is within the range of sampling variability.
📐 Formula
z* = critical value for the confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%)
p = sample proportion (use 0.5 for maximum MOE when unknown)
n = sample size
For a mean (known σ): MOE = z* × σ/√n
Required sample size for target MOE: n = (z*/MOE)² × p(1−p)
Confidence interval: [p̂ − MOE, p̂ + MOE]
📖 How to Use This Calculator
📝 Example Calculations
Example 1 - Political Poll
Example 2 - Clinical Trial
Example 3 - Required Sample Size
Example 4 - Known Proportion
Example 5 - 90% Confidence Level
❓ Frequently Asked Questions
🔗 Related Calculators
What is the margin of error?
The margin of error (MOE) is the maximum expected difference between the sample statistic and the true population parameter, at a given confidence level. For example, a poll showing 54% support with MOE ±3% means the true support is estimated to be between 51% and 57% with the specified confidence (e.g., 95%).
What does 95% confidence level mean?
A 95% confidence level means that if you repeated the survey many times, about 95% of the resulting confidence intervals would contain the true population parameter. It does NOT mean there is a 95% probability that the true value falls in any one particular interval - the true value either is or isn't in the interval.
How does sample size affect margin of error?
Margin of error is inversely proportional to √n. Doubling the sample size reduces MOE by a factor of √2 ≈ 1.41. To halve the MOE, you need 4× the sample size. This is why there are diminishing returns to increasing sample size - large samples are expensive but the improvement in precision gets smaller.
What sample size do I need for a ±3% margin of error?
For a proportion near 0.5 at 95% confidence: n = (1.96/0.03)² × 0.25 ≈ 1068. For ±2%: n ≈ 2401. For ±1%: n ≈ 9604. This is why major national polls use samples of about 1,000 - they give ±3% MOE at 95% confidence.
What is the difference between margin of error and standard error?
Standard error is the standard deviation of the sampling distribution: SE = √(p(1−p)/n). Margin of error is the critical value times the standard error: MOE = z* × SE. The critical value (z*) depends on the confidence level: 1.645 for 90%, 1.96 for 95%, 2.576 for 99%.
Does margin of error depend on population size?
For populations much larger than the sample (usually true for polls of thousands), MOE barely depends on population size. For small populations, apply the finite population correction: MOE_corrected = MOE × √((N−n)/(N−1)) where N is population size. This calculator uses the standard formula without correction.
How do I reduce the margin of error in a survey?
Margin of error = z x sqrt(p(1-p)/n). To halve the margin of error, quadruple the sample size. Other options: increase confidence level (reduces precision) or if you know p is far from 0.5, use that estimate - a proportion of 0.1 or 0.9 gives a smaller margin than assuming p = 0.5.
What is the difference between margin of error and confidence interval?
The margin of error is half the width of a confidence interval. A 95% CI of (42%, 52%) has a margin of error of plus or minus 5% around the 47% point estimate. The confidence interval gives the full range; the margin of error gives the plus-minus range. Both convey the same information, just presented differently.