logic.codes

Margin of Error Calculator

What is the margin of error of my survey result?

Single calculationv1.0.0Verified 2026-11-01Runs in your browser

Spec sheet

moe_proportion · v1.0.0
Method

Normal-approximation margin of error

  1. 01e = z · √(p(1 − p)/n) · √((N − n)/(N − 1))
  2. 02CI = p ± e
Limits — read before relying on it
  • Normal approximation; for very small samples or proportions near 0 % / 100 % use a Wilson interval.
Sources
  • Cochran, W. G. (1977). Sampling Techniques (3rd ed.). Wileytextbook

Worked example

computed by the same formula

n = 1,000, 50 %, 95 %

Inputs
Sample size
1000
Observed proportion
50 %
Confidence level
95 %
Result
Margin of error
3.1 %
Confidence interval
46.9 % to 53.1 %

Questions

How is the margin of error calculated?

›

Normal-approximation margin of error. e = z · √(p(1 − p)/n) · √((N − n)/(N − 1)) · CI = p ± e

Example: n = 1,000, 50 %, 95 %?

›

Margin of error: 3.1 %; confidence interval: 46.9 % to 53.1 %.

What does this calculator not cover?

›

Normal approximation; for very small samples or proportions near 0 % / 100 % use a Wilson interval.

Where do the numbers come from?

›

Sources: Cochran, W. G. (1977). Sampling Techniques (3rd ed.). Wiley. The formula is versioned (moe_proportion v1.0.0) and covered by automated tests.

Is my data stored?

›

No. The calculation runs in your browser and nothing is sent unless you choose to save a shareable link.

Also searched asmargin of error calculator · survey margin of error · confidence interval for proportion · plus or minus percent poll

Related

More research & statistics calculators