The margin of error is the range, above and below a survey result, within which the true population value is likely to fall at a chosen confidence level. It shrinks as your sample grows and is the “±” you see next to poll results. A confidence interval is that range written out, and its two ends are the confidence limits.
How to use the margin of error calculator
- Enter your sample size: Type the number of completed responses (n) you collected or plan to collect.
- Pick a confidence level: Choose 90%, 95% or 99%. 95% is the standard choice for most surveys and polls.
- Add the population size (optional): If you surveyed a known, limited group such as 2,000 customers or 300 employees, enter it to apply the finite population correction. Leave it blank for large or unknown populations.
- Enter the observed percentage: Type the share of respondents who chose an answer, or keep 50% for the worst-case margin of error.
- Read the margin and interval: The calculator shows the margin of error (±%) and the confidence interval, the range where the true value most likely falls.

The margin of error formula
MOE = z × √(p × (1 − p) ÷ n)
- z is the z-score for your confidence level: 1.645 for 90%, 1.96 for 95% and 2.576 for 99%.
- p is the observed (or expected) proportion as a decimal, for example 0.62 for 62%. Use 0.5 if you don’t know it yet.
- n is the number of completed responses.
The square-root part, √(p × (1 − p) ÷ n), is the standard error of a proportion. When you survey a known, limited population of size N, multiply the result by the finite population correction √((N − n) ÷ (N − 1)). It matters when your sample is a meaningful share of the group, such as 150 out of 400 employees.
The confidence interval is then p − MOE to p + MOE. This is the standard normal-approximation (Wald) interval used for survey percentages; it works well when you have at least 10 responses on each side of the answer.
Worked example
You survey 400 customers and 62% answer “Yes” to “Would you buy from us again?”. At 95% confidence:
- Standard error: √(0.62 × 0.38 ÷ 400) = √0.000589 ≈ 0.0243.
- Margin of error: 1.96 × 0.0243 ≈ 0.0476, so ±4.8%.
- Confidence interval: 62% − 4.8% to 62% + 4.8%, so 57.2% to 66.8%.
If those 400 customers came from a customer base of only 2,000, the finite population correction is √(1,600 ÷ 1,999) ≈ 0.895, and the margin of error drops to about ±4.3%.
Margin of error by sample size
Worst-case margin of error (p = 50%) for a large population:
