Statistical Concepts

Margin of Error Explained

8 min read

Learn what margin of error means, how to calculate it with the formula, and how it affects survey accuracy in market research and polling.

What Is Margin of Error?

Margin of error is the amount of random sampling error in a survey's results. It tells you how much the results from your sample might differ from what you'd get if you surveyed the entire population. When a poll reports "62% approval, +/-3%," that "+/-3%" is the margin of error, the true approval rating likely falls between 59% and 65%. Every survey that uses a sample instead of a census carries some margin of error, and reporting it is standard practice in polling, market research, and academic studies. The smaller the margin, the more precise your estimate. Larger samples, lower variability, and lower confidence levels all produce tighter margins.

Why Margin of Error Matters in Research

Margin of error separates trustworthy survey findings from misleading ones. A poll showing Candidate A at 48% and Candidate B at 46% with a margin of error of +/-4% isn't showing a real lead, both candidates fall within each other's error range. Reporting results without margin of error makes every numerical difference look definitive when it might not be. It's also critical for planning: knowing your target margin of error before you launch determines how many responses you need to collect.

How Margin of Error Works

The Formula for Proportions

The most common margin of error formula applies to survey percentages (proportions):

MOE = z * sqrt(p-hat * (1 - p-hat) / n)

Where:

  • z is the z-score for your confidence level (1.96 for 95%, 2.576 for 99%, 1.645 for 90%)
  • p-hat is the sample proportion (the percentage you observed, expressed as a decimal)
  • n is the sample size
  • sqrt means square root

When you don't know the expected proportion ahead of time, use p-hat = 0.50. This produces the maximum (most conservative) margin of error for any given sample size.

The Formula for Means

When your survey measures averages (like a satisfaction score) rather than percentages:

MOE = z * (s / sqrt(n))

Where s is the sample standard deviation. This is the same "+/-" portion of the confidence interval formula.

Worked Example: Product Survey

A consumer brand surveys 600 customers and finds that 45% prefer the new packaging design over the old one.

  • p-hat = 0.45
  • n = 600
  • Confidence level: 95% (z = 1.96)

Step 1. Calculate the standard error: SE = sqrt(0.45 * 0.55 / 600) SE = sqrt(0.2475 / 600) SE = sqrt(0.0004125) SE = 0.02031

Step 2. Multiply by the z-score: MOE = 1.96 * 0.02031 MOE = 0.0398, or approximately 4.0%

Result: The margin of error is +/-4.0%. You can report: "45% of customers prefer the new packaging (+/-4 percentage points at 95% confidence)." The true preference rate likely falls between 41% and 49%.

Since the interval includes 50%, you can't confidently say a majority prefers either option. This is exactly the kind of insight margin of error reveals.

Worked Example: Planning Sample Size

Suppose you want a margin of error of +/-3% at 95% confidence. What sample size do you need?

Rearranging the formula: n = (z / MOE)^2 * p-hat * (1 - p-hat)

Using the conservative p-hat = 0.50: n = (1.96 / 0.03)^2 * 0.50 * 0.50 n = (65.33)^2 * 0.25 n = 4,268.44 * 0.25 n = 1,067.11

You'd need at least 1,068 responses for a +/-3% margin of error. If you can accept +/-5%, the requirement drops to about 385 responses.

How Sample Size Affects Margin of Error

The relationship isn't linear. Doubling your sample size doesn't halve the margin of error, it reduces it by about 29% (because of the square root in the formula). Here's a quick reference for 95% confidence with p-hat = 0.50:

Sample Size Margin of Error
100 +/-9.8%
250 +/-6.2%
400 +/-4.9%
600 +/-4.0%
1,000 +/-3.1%
1,500 +/-2.5%
2,000 +/-2.2%

Finite Population Correction

If your sample represents more than 5% of the total population, apply the finite population correction:

MOE_adjusted = MOE * sqrt((N - n) / (N - 1))

Where N is the total population size. For example, surveying 200 employees out of a company of 500 would use this correction, shrinking the margin of error.

When to Use Margin of Error

  • Survey reporting: every time you present poll results, include the margin of error so readers can gauge reliability
  • Comparing two results: check whether the difference between two percentages exceeds the combined margins of error before drawing conclusions
  • Budget planning: calculate the sample size needed for your target precision before committing to data collection costs
  • Evaluating third-party research: if a vendor report doesn't include margin of error, you can't assess how much weight to give it
  • Tracking studies: when monitoring brand metrics over time, margin of error helps you distinguish real trends from noise

Common Mistakes to Avoid

  • Ignoring it when results are close: a 3-point difference with a 5-point margin of error is not a real finding
  • Assuming margin of error covers all errors: it only accounts for random sampling error, not response bias, question wording problems, or non-response bias
  • Applying the overall margin of error to subgroups: if your total sample is 1,000 but only 150 are in the 18-24 age bracket, that subgroup has a much larger margin of error
  • Using the formula with non-random samples: convenience samples, snowball samples, and opt-in panels don't satisfy the assumptions behind the formula
  • Forgetting to report confidence level: a margin of error is meaningless without specifying whether it's at 90%, 95%, or 99% confidence

How Quali-Fi Supports Margin of Error

Quali-Fi displays the margin of error for each question and subgroup in your survey dashboard automatically, adjusting calculations as responses come in so you can track precision in real time. The platform's sample size calculator lets you enter a target margin of error and confidence level before launching a study, then recommends the minimum number of responses needed. For cross-tabulated data, Quali-Fi calculates subgroup-specific margins so you don't accidentally over-interpret small segments.

Frequently Asked Questions

What's a "good" margin of error?

For most business and market research, +/-3% to +/-5% at 95% confidence is considered acceptable. Political polling typically aims for +/-3% or less. The right target depends on the stakes, if a 2-point error could change a major decision, you need tighter precision than if you're doing exploratory research.

Does margin of error apply to online surveys?

The formula assumes random sampling. Most online surveys use convenience or panel-based samples, which technically don't meet this assumption. Many researchers still calculate and report it as a rough guide to precision, but it's more accurate to describe it as the "credibility interval" or "estimated margin of error" in non-probability contexts.

How is margin of error different from standard error?

Standard error is the standard deviation of the sampling distribution, it measures how much your sample statistic would vary across repeated samples. Margin of error is the standard error multiplied by the z-score for your chosen confidence level. Margin of error is always larger than the standard error because it includes the confidence multiplier.

Can margin of error be zero?

Only if you survey the entire population (a census). As long as you're working with a sample, there's always some margin of error. Larger samples reduce it, but it never reaches zero.

Why does using p-hat = 0.50 give the maximum margin of error?

The expression p-hat * (1 - p-hat) is maximized when p-hat = 0.50 (it equals 0.25). Any other proportion, 0.30, 0.70, 0.10, produces a smaller product and therefore a smaller margin of error. Using 0.50 is the safe, conservative choice when you don't know what your results will look like.


Want automatic margin of error reporting in every survey? Start your free 14-day Quali-Fi trial, no credit card required.

Frequently Asked Questions

Related Guides

Put it into practice

Ready to apply this in your research?

Quali-Fi makes it easy to run surveys, conjoint studies, and more, all in one platform.