Margin of error calculator

How much sample results may differ from the true value

Margin of error — half-width of the confidence interval. How much the sample proportion or mean may differ from the population value.

FAQ about margin of error

Parameters

Number of respondents who completed the survey

Total size of target audience. Leave empty if unknown or very large

Probability that the true value falls within the confidence interval

If unknown, use 50% — gives maximum (conservative) margin of error

50%

Assumptions and limitations

  • Formula is for proportion, not mean
  • p = 50% gives maximum (conservative) margin of error
  • For small samples (n < 30) use the result with caution
  • FPC (finite population correction) applied when N is given
Margin of error
Enter data

In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.

Start free

Data is not stored — calculation runs in your browser.

How margin of error is calculated

Margin of error formula

MOE = z × √(p(1−p)/n) × FPC, where z is the z-value for confidence level (1.645/1.96/2.576), p = proportion, n = sample size, FPC = finite population correction.

Z-values

90% confidence → z = 1.645. 95% confidence → z = 1.96 (standard). 99% confidence → z = 2.576. Higher confidence means wider interval and larger MOE.

FPC correction

FPC = √((N−n)/(N−1)). Used when the sample is a significant part of the population (n/N > 5%). Reduces MOE. For infinite population FPC = 1.

Why p = 50%

At p = 50% the product p(1−p) is maximum (0.25), giving the largest MOE. If the true proportion differs from 50%, the actual MOE will be smaller.

Typical margin of error values

Sample size
MOE (90%)
MOE (95%)
MOE (99%)
100
±8,2%
±9,8%
±12,9%
200
±5,8%
±6,9%
±9,1%
400
±4,1%
±4,9%
±6,4%
1000
±2,6%
±3,1%
±4,1%
2000
±1,8%
±2,2%
±2,9%

* At p = 50% and infinite population

Frequently asked questions about margin of error

Automate your metrics

In SurveyNinja, NPS, CSAT and more are calculated automatically. Create a survey in 5 minutes and get real-time analytics.

Start free