Margin of Error Calculator

Calculate margin of error from sample data or find required sample size for a desired MOE. Supports proportions and means with finite population correction.

Margin of Error Calculator

Common: 0.90, 0.95, 0.99
0 to 1 (e.g., 0.52 for 52%)
Margin of Error
±3.10%
At 95% confidence
Confidence Interval
[48.90%, 55.10%]
95% CI for the proportion
Standard Error
0.015799
SE of the estimate
Critical z
1.9604
z* for 95% confidence
Sample Size
1000
Number of observations
FPC
Not applied
No population size specified

MOE at Different Confidence Levels

Confidencez*Margin of Error
80.0%1.282±2.02%
90.0%1.645±2.60%
95.0%1.960±3.10%
98.0%2.327±3.68%
99.0%2.576±4.07%
99.9%3.291±5.20%

MOE vs Sample Size (n)

n=50
±13.85%
n=100
±9.79%
n=200
±6.93%
n=400
±4.90%
n=600
±4.00%
n=800
±3.46%
n=1000
±3.10%
n=1500
±2.53%
n=2000
±2.19%
n=5000
±1.39%
Planning notes, formulas, and examples

About the Margin of Error Calculator

The margin of error (MOE) quantifies the uncertainty in a survey or poll result. When a poll reports "52% ± 3%," the 3% is the margin of error, meaning the true population value is likely between 49% and 55%. Understanding and calculating MOE is essential for interpreting any survey, poll, or sample-based estimate.

This calculator works in two modes: (1) calculate the margin of error from a given sample, or (2) determine the sample size needed to achieve a desired margin of error. It handles both proportion estimates (surveys, polls) and mean estimates (continuous measurements), with optional finite population correction for sampling from known-size populations.

The calculator also shows how MOE varies with confidence level and sample size, making it easy to explore trade-offs between precision, confidence, and data collection cost. Use the sample-size view to see how much larger your survey needs to be to narrow the interval, and use finite population correction when sampling from a relatively small known population.

When This Page Helps

Every sample-based estimate has uncertainty. The margin of error makes that uncertainty concrete and interpretable. This calculator handles both directions — from sample to MOE, and from desired MOE to required sample size — saving time in study planning. The interactive tables let you see how changing confidence level or sample size affects precision.

How to Use the Inputs

  1. Choose the mode: calculate MOE from sample or find required sample size.
  2. Enter the confidence level (commonly 0.95 for 95%).
  3. For MOE calculation, enter sample size and proportion (or mean/SD).
  4. For sample size calculation, enter desired MOE and expected proportion.
  5. Optionally enter population size for finite population correction.
  6. Review the margin of error and confidence interval.
  7. Use the comparison tables to explore different scenarios.
Formula used
Margin of Error (Proportion): MOE = z* × √(p̂(1−p̂)/n) Margin of Error (Mean): MOE = z* × (s/√n) With Finite Population Correction: MOE_adj = MOE × √((N−n)/(N−1)) Required Sample Size: n = (z*/MOE)² × p̂(1−p̂) With FPC: n_adj = n / (1 + (n−1)/N) Where z* is the critical value for the confidence level

Example Calculation

Result: MOE = ±3.10%

A survey of 1,000 people finding 52% support has a margin of error of ±3.1% at 95% confidence. The 95% CI is [48.9%, 55.1%]. Since this interval includes 50%, the lead is not statistically significant.

Tips & Best Practices

  • Use p = 0.5 when the expected proportion is unknown — this gives the most conservative (largest) sample size and MOE.
  • The margin of error decreases with the square root of n: to halve the MOE, you need 4× the sample size.
  • Finite population correction matters when sampling more than ~5% of the population.
  • MOE only covers random sampling error — not response bias, non-response bias, or measurement error.
  • Higher confidence levels require larger margins of error (or larger samples). 99% CI is wider than 95% CI.
  • For proportions near 0 or 1, the normal approximation may be poor. Use Wilson or Clopper-Pearson intervals instead.

Understanding the ±3% in News Polls

When media reports a poll with "margin of error ±3%," this means at the stated confidence level (usually 95%), the true population proportion is expected to fall within 3 percentage points of the reported figure. If Candidate A polls at 48% ± 3%, the true support is likely between 45% and 51%. If the race is within the margin, it's a statistical tie.

The Sample Size Sweet Spot

There's a diminishing returns relationship between sample size and precision. Going from n=100 to n=400 cuts MOE in half. But going from n=1,000 to n=4,000 also only cuts MOE in half. Most surveys find n=1,000-1,500 a practical sweet spot, yielding ±3% at 95% confidence. Beyond that, additional precision comes at steep cost.

MOE for Subgroup Analysis

The margin of error increases for subgroups within a sample. If you survey 1,000 people but analyze only the 200 who are age 18-24, the MOE for that subgroup is much larger (based on n=200, not n=1,000). Always check whether subgroup analyses have adequate sample sizes.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • It's the maximum expected difference between the sample statistic and the true population parameter at a given confidence level. A MOE of ±3% means the true value is likely within 3 percentage points of the sample estimate.