Margin of Error Calculator
Margin of error for a survey proportion or a sample mean — with confidence level, optional finite-population correction, auto Z/t switch and a shaded normal-curve diagram.
Margin of Error — Proportion (survey / poll)
MoE = z × √(p(1 − p) / n), optionally multiplied by the finite-population correction √((N − n) / (N − 1)).
Margin of Error — Mean
MoE = critical × s / √n. Auto-switches to Student's t for small samples (n < 30), matching the Confidence Interval Calculator.
Margin of error explained, step by step
Margin of error is the ± range a poll or study reports at a given confidence level. Each card below covers one piece the calculator uses on the proportion and mean tools.
1. What margin of error is — critical × standard error
Margin of error is the ± half-width added to a sample estimate to express sampling uncertainty at a chosen confidence level. It combines two ingredients: the standard error (how noisy the estimate is) and a critical value (how confident you want to be).
2. Proportion formula — √(p(1 − p)/n)
For yes/no survey questions the standard error is √(p(1 − p)/n). When the true p is unknown, use p = 0.5 to get the widest (most conservative) MoE for planning. Add the finite-population correction if the sample is a large fraction of the population.
3. Mean formula — t for small n, Z for large n
For continuous measurements the standard error is s/√n. Use the Student t critical value with df = n − 1 when the sample is small; once n ≥ 30 the t and Z critical values almost agree and Z is a fine shortcut.
4. Sample size effect — shrinks with √n
Because n sits under a square root, halving MoE requires quadrupling the sample. Going from n = 400 to n = 1600 only halves the ± width. That's why polls hit a sharp diminishing return around 1,000–2,000 respondents.
Features of this calculator
- Proportion and mean tools on the same page.
- Preset confidence levels (80/85/90/95/98/99/99.5/99.9%) plus a custom-level input.
- Finite-population correction on the proportion tool for surveys of small populations.
- Auto-switches between t (small n) and Z (n ≥ 30) on the mean tool.
- Critical-value curve visualising the α/2 tails and a horizontal ± bar for the estimated MoE.
- Show / hide step-by-step working covering the SE, critical value and multiplication.