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.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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.

Political Poll Accuracy
1,200 likely voters surveyed, 95% confidence level
Your poll has a ±2.8% margin of error. If 52% support a candidate, the true support could be anywhere from 49.2% to 54.8%. This is precise enough for most election polling.
Customer Satisfaction Survey
450 customers surveyed from 5,000 total customers, 95% confidence level
Your survey has a ±4.4% margin of error. The finite population correction reduces it slightly from the infinite population case. If 78% are satisfied, true satisfaction is between 73.6% and 82.4%.
Academic Research Study
85 participants surveyed, 99% confidence level
Your study has a ±14.0% margin of error. This wide range means results should be interpreted cautiously. Consider increasing sample size or accepting lower confidence for more precise estimates.
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?

What sample size do I need for accurate results?
For most surveys, 400 responses gives you ±5% margin of error, while 1,000 responses gives you ±3%. Going beyond 1,000 produces diminishing returns unless you need very high precision. The population size rarely matters unless you're surveying more than 10% of the total group.
Should I use 95% or 99% confidence level?
Use 95% confidence for most business and research applications. It means you can be 95% certain the true value falls within your margin of error. Use 99% only when the cost of being wrong is extremely high, but expect to need much larger sample sizes for the same precision.
Why is my margin of error so large with a small sample?
Margin of error improves with the square root of sample size, not proportionally. Doubling your sample size only reduces margin of error by about 30%. Small samples under 100 responses typically have margins over ±10%, making them unreliable for most decision-making.

Need something this doesn't cover?

Suggest a tool — we'll build it →