Margin of Error Calculator

Find the margin of error and confidence interval for your survey from the sample size, result and confidence level.

Number of completed responses.
How sure you want to be. 95% is the standard in most research.
%
Observed percentage. 50% if unknown.
Only matters for small populations.
Margin of error
—

Margin of error at other sample sizes
Show the calculation

				

The margin of error tells you how far your survey result can be from the true value in the whole population. If 62% of your respondents agree with a statement and your margin of error is ±4%, the real percentage is most likely somewhere between 58% and 66%. Enter your sample size above to find your margin of error, or read on to learn how it is calculated and how to report it.

What is the margin of error?

When you survey a sample instead of everyone, your result will almost never match the population exactly. The margin of error measures that sampling uncertainty. It is always tied to a confidence level: a ±4% margin of error at 95% confidence means that if you repeated the survey many times, about 95 out of 100 of the resulting intervals would contain the true value.

The margin of error depends on three things:

  • Sample size (n) – more responses give a smaller margin of error.
  • Confidence level – higher confidence gives a larger margin of error.
  • The result itself (p) – results near 50% have the largest margin of error, results near 0% or 100% the smallest.

Margin of error formula

MOE = z × √(p × (1 − p) / n)
  • z = the critical value for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%)
  • p = your observed proportion as a decimal (use 0.5 if unknown)
  • n = your sample size

When your sample is a large part of a small population, multiply by the finite population correction:

FPC = √((N − n) / (N − 1))

Enter a population size in the calculator and the correction is applied automatically.

Example: margin of error step by step

You surveyed 400 people and 50% said yes. What is the margin of error at 95% confidence?

  1. Find z. For 95% confidence, z = 1.96.
  2. Calculate p × (1 − p). 0.5 × 0.5 = 0.25.
  3. Divide by n. 0.25 / 400 = 0.000625.
  4. Take the square root. √0.000625 = 0.025. This is the standard error.
  5. Multiply by z. 1.96 × 0.025 = 0.049, so the margin of error is ±4.9%.

Your confidence interval is 50% ± 4.9%, or 45.1% to 54.9%.

Margin of error by sample size

This table shows the maximum margin of error (p = 50%) for common sample sizes and a large population.

Sample size90% confidence95% confidence99% confidence
50±11.6%±13.9%±18.2%
100±8.2%±9.8%±12.9%
200±5.8%±6.9%±9.1%
300±4.7%±5.7%±7.4%
400±4.1%±4.9%±6.4%
500±3.7%±4.4%±5.8%
1,000±2.6%±3.1%±4.1%
1,500±2.1%±2.5%±3.3%
2,000±1.8%±2.2%±2.9%

The square root rule: to halve your margin of error you need four times as many responses. Going from 100 to 400 respondents takes you from ±9.8% to ±4.9%.

How to report the margin of error

Always mention the margin of error together with the confidence level and the sample size. For example:

“62% of respondents agreed (n = 400, margin of error ±4.8% at a 95% confidence level).”

Use the margin of error for your actual result rather than the maximum one at 50%. In the example above, p = 0.62 gives a slightly smaller margin of error (±4.8%) than p = 0.50 (±4.9%).

What the margin of error does not cover

The margin of error only measures random sampling error. It assumes a random sample and says nothing about:

  • Non-response bias – if the people who did not answer think differently from those who did.
  • Coverage errors – if part of the population could never be selected, for example people without internet in an online survey.
  • Question wording and order – leading or unclear questions distort results in ways no formula can correct.
  • Convenience samples – for a self-selected sample a margin of error is not strictly valid, even though it is often reported.

Also be careful when comparing subgroups. If you split 400 respondents into men and women, each group has about 200 responses and a margin of error closer to ±7%.

Planning a new survey?

Work the other way around: choose the margin of error you want and calculate how many responses you need with our sample size calculator. For thesis work that requires a specific formula, see the Slovin’s formula calculator or the Cochran’s formula calculator.

Frequently Asked Questions

What is a good margin of error?

For most surveys and student research, ±5% at 95% confidence is the accepted standard. Professional opinion polls usually aim for ±3%. Anything above ±10% is generally too imprecise to draw firm conclusions.

How can I reduce my margin of error?

Collect more responses. Because the sample size is under a square root, you need four times as many responses to halve the margin of error. Lowering the confidence level also reduces it, but makes your conclusion less certain.

Does population size affect the margin of error?

Only when your sample is a noticeable part of the population (roughly more than 5%). For large populations the margin of error depends almost entirely on the sample size, which is why a national poll of 1,000 people is as precise as a city poll of 1,000 people.

What is the difference between the margin of error and a confidence interval?

The margin of error is the ± amount. The confidence interval is the range you get when you add and subtract it from your result. A result of 60% with a ±4% margin of error gives a confidence interval of 56% to 64%.

Why is the margin of error largest at 50%?

Because p × (1 − p) reaches its maximum when p = 0.5. That is why 50% is used when you do not know the result in advance: it gives the most conservative, largest margin of error.

More statistics calculators