Margin of Error Calculator
How accurate are your survey results?
Find out how accurate your survey results are by calculating the margin of error. Essential for interpreting polls, market research, and academic studies with statistical confidence.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Picture trying to estimate the average height of all adults by measuring people at a shopping mall. Your margin of error tells you how far off your mall average might be from the true population average. The more people you measure, the closer you get to the real answer, but the improvement follows a predictable mathematical curve.
Margin of error combines two key factors: how many people you surveyed and how confident you want to be in your result. The calculation assumes your sample represents the broader population randomly, which is often the hardest part to achieve in practice. Even perfect random sampling cannot eliminate uncertainty completely.
The formula divides a confidence multiplier by twice the square root of your sample size. This square root relationship explains why getting more precise results requires dramatically more responses. Going from ±6% to ±3% margin of error requires four times as many survey responses, not twice as many.
When To Use This
Right tool, right situation
Use margin of error calculations when you have genuinely random sampling from a defined population. This works well for scientific polls using probability sampling, customer satisfaction surveys with random selection from customer databases, or employee surveys with complete staff lists. The math assumes everyone in your target population had an equal chance of being selected.
Avoid relying on margin of error for convenience samples like social media polls, voluntary website surveys, or street interviews. These methods introduce selection bias that margin of error cannot measure or correct. The calculated precision will be misleadingly optimistic because the sample is not representative.
Margin of error is most useful when comparing results across time or between groups. If two surveys with ±4% margins show a 12-point difference, you can be confident the difference is real. But if the difference is only 3 points, it could be due to sampling variation rather than actual change.
Common Mistakes
Why results sometimes look wrong
The biggest mistake is assuming margin of error accounts for all survey problems. Margin of error only measures random sampling error, not bias from poorly worded questions, non-response patterns, or unrepresentative samples. A perfectly calculated ±3% margin means nothing if your sample systematically excludes key demographics.
Many people misinterpret confidence levels as the probability their specific result is correct. A 95% confidence level means that if you repeated the same survey 100 times, 95 of those surveys would produce results within the margin of error of the true value. It does not mean there is a 95% chance your particular result is accurate.
Oversampling without proper weighting creates misleading precision. Surveying 2,000 people from one city does not give you a ±2.2% margin of error for national opinions. The geographic bias matters more than the sample size. Similarly, online surveys that attract primarily engaged respondents may have large margins of error despite thousands of responses.
The Math
Worked examples and deeper derivation
The margin of error formula starts with the standard error of a proportion: the square root of (p × (1-p)) divided by sample size. For maximum margin of error, we assume p equals 0.5, giving us the largest possible standard error. This conservative approach means your actual margin of error might be smaller if responses are more lopsided.
The confidence level determines the z-score multiplier: 1.96 for 95% confidence, 2.576 for 99% confidence. These numbers come from the standard normal distribution and represent how many standard deviations contain the desired percentage of all possible outcomes. Higher confidence requires casting a wider net, increasing your margin of error.
Finite population correction applies when you survey more than 5% of your target population. The correction factor is the square root of ((N-n)/(N-1)), where N is population size and n is sample size. This adjustment can meaningfully reduce your margin of error when surveying smaller, defined groups like company employees or club members.
Expert Unlock
The thing most explanations skip
Professional pollsters often use design effects to adjust margin of error for complex sampling methods. Clustering respondents by geography or stratifying by demographics changes the effective sample size. A survey of 1,000 people might have an effective sample size of only 600 after accounting for design effects, increasing the true margin of error significantly.
What does margin of error mean for my survey?
Need something this doesn't cover?
Suggest a tool — we'll build it →