Margin of Error Calculator for Surveys and Polls
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free margin of error calculator. Enter the sample size, result and confidence level to get the survey margin of error, with an optional population size.
- Likely range
- 0
- z value
- 0
- Finite population correction
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the margin of error calculator
- Enter the sample size: how many people responded.
- Enter the result as a percentage, for example 50% if half said yes. If you're planning a survey and don't know the result yet, use 50%, which gives the largest, most cautious margin of error.
- Choose the confidence level: 90%, 95% or 99%. 95% is the most common.
- Enter the population size if you surveyed a large share of a small population, such as staff at one company.
The margin of error calculator shows the margin of error, the likely range for the true result, the z value used, the finite population correction if it applied, and a table of margins of error at common sample sizes.
What is the margin of error?
The margin of error tells you how far a survey result might be from the true figure in the whole population, because of random sampling. When a poll says 52% support a policy with a margin of error of ±3 percentage points at 95% confidence, it means that if you repeated the poll many times, about 95% of the intervals from 49% to 55% would contain the true level of support.
Margin of error = z × √(p × (1 − p) ÷ n)
- z depends on the confidence level: about 1.645 for 90%, 1.960 for 95% and 2.576 for 99%.
- p is the result as a proportion, such as 0.5.
- n is the sample size.
For a sample of 1,000 with a result of 50%, at 95% confidence: 1.96 × √(0.5 × 0.5 ÷ 1,000) ≈ 0.031, or ±3.1 percentage points.
How sample size affects the margin of error
The margin of error shrinks with the square root of the sample size. At 95% confidence and a 50% result:
| Sample size | Margin of error |
|---|---|
| 100 | ±9.8% |
| 400 | ±4.9% |
| 1,000 | ±3.1% |
| 2,000 | ±2.2% |
| 5,000 | ±1.4% |
To halve the margin of error, you need four times the sample. That's why many national polls settle on around 1,000 respondents: going much further costs a lot more for only a small gain in precision. The margin of error calculator shows a similar table for the confidence level you choose.
Confidence level
A higher confidence level gives a wider margin of error. With 1,000 respondents and a 50% result, the margin is about ±2.6% at 90% confidence, ±3.1% at 95% and ±4.1% at 99%. There's a trade-off: more confidence that the interval contains the truth, but a less precise interval. Most published polls use 95%.
Why 50% gives the largest margin
The term p × (1 − p) is largest when p = 0.5. As the result moves away from 50%, the margin of error shrinks. With 1,000 respondents, a 30% result has a margin of about ±2.8%, compared with ±3.1% for 50%. When pollsters quote a single margin of error for a whole survey, they usually use the 50% figure, because it's the most cautious.
Finite population correction
The standard formula assumes the population is much larger than the sample. If you survey a big share of a small population, the true margin of error is smaller. The margin of error calculator applies the finite population correction when you enter a population size:
Correction = √((N − n) ÷ (N − 1))
For example, surveying 500 out of 2,000 employees gives a correction of about 0.866, reducing the margin from ±4.4% to ±3.8%. If your sample is under about 5% of the population, the correction makes very little difference.
What the margin of error doesn't cover
The margin of error only measures random sampling error. It doesn't account for:
- Biased samples, such as an online poll that only reaches certain kinds of people.
- Non-response, when the people who don't answer differ from those who do.
- Badly worded or leading questions.
- People giving inaccurate answers.
These errors can be much larger than the margin of error, and no formula can fix them. A small margin of error from a biased sample is still misleading.
Comparing two results
A common mistake is to compare two figures from the same poll, such as 48% for one candidate and 44% for another, and assume the race is "within the margin of error" or not based on the single margin. The margin of error for the difference between two figures is larger than the margin for each figure on its own, roughly 1.7 to 2 times as large for two options in the same poll. Comparing results from two separate surveys also needs its own calculation. The A/B test calculator handles comparisons of two proportions.
A worked example
A company surveys 400 customers and 62% say they'd recommend it.
- Proportion: 0.62.
- Standard error: √(0.62 × 0.38 ÷ 400) ≈ 0.0243.
- Margin of error at 95%: 1.96 × 0.0243 ≈ 0.0476, or ±4.8 percentage points.
- Likely range: about 57.2% to 66.8%.
Enter 400, 62% and 95% in the margin of error calculator to check.
Who uses a margin of error calculator
Pollsters, market researchers and survey teams use it to report how precise their results are. Journalists use it to judge whether poll changes are meaningful. Students use it in statistics and social science courses. Businesses use it to interpret customer surveys, such as satisfaction or net promoter scores; see the NPS calculator and CSAT calculator.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
Planning a survey
If you know the margin of error you want, you can work backwards to the sample size you need. Rearranging the formula gives n = z² × p × (1 − p) ÷ E², where E is the margin as a proportion. For ±5% at 95% confidence and p = 0.5, n = 1.96² × 0.25 ÷ 0.05² ≈ 384. The sample size calculator does this for you and adjusts for small populations. Remember to plan for non-response: if you expect only 20% of people to reply, you'll need to invite about five times as many.
Subgroups
The margin of error for a subgroup, such as only respondents aged 18 to 24, depends on the size of that subgroup, not the whole sample. A survey of 1,000 with ±3.1% overall might have only 120 young respondents, giving a margin of about ±8.9% for that group. Be careful when reporting results for small subgroups, and use the margin of error calculator with each subgroup's own sample size.
Weighting
Many surveys weight responses so the sample matches the population, for example by age, gender or region. Weighting reduces bias but usually increases the margin of error, because some responses count for more than others. Professional pollsters often report an adjusted margin that accounts for this "design effect", which can be noticeably larger than the simple formula suggests.
Common mistakes
- Treating the margin of error as covering all sources of error.
- Applying the overall margin to small subgroups.
- Using the margin for one figure to judge the gap between two figures.
- Ignoring the confidence level when comparing margins from different surveys.
Margin of error for customer surveys
Businesses often run customer surveys with a few hundred responses. With 200 responses and a satisfaction rate of 80%, the margin of error at 95% confidence is about ±5.5 percentage points, so the true figure is likely somewhere between about 74.5% and 85.5%. If next quarter's survey shows 83%, the change is well within that range and may not reflect any real improvement. Running the margin of error calculator before reporting changes in survey results helps avoid celebrating, or worrying about, movements that are just noise.
Margin of error and response rate
A high response rate doesn't shrink the margin of error on its own; only the number of responses does. But response rate matters for bias. If you email 10,000 customers and only 300 reply, the margin of error is about ±5.7% for a 50% result, yet the bigger risk is that those 300 aren't typical of all your customers. Following up with people who didn't reply, or comparing early and late responders, can help you judge whether non-response is distorting the results.
Sources and further reading
- Margin of error on Wikipedia: definition, formula and common misunderstandings.
- Pew Research Center: 5 key things to know about the margin of error in election polls, a clear guide from a leading pollster.
- Finite population correction on Wikipedia: the adjustment for small populations.
Frequently asked questions
How do you calculate the margin of error?
Margin of error = z × √(p × (1 − p) ÷ n). At 95% confidence, z ≈ 1.96.
What is the margin of error for a sample of 1,000?
About ±3.1 percentage points at 95% confidence, for a result near 50%.
What sample size gives a 5% margin of error?
About 385 respondents at 95% confidence, assuming a large population and a result near 50%.
Why is 50% used when the result isn't known?
It gives the largest margin of error, so it's the most cautious assumption.
Does the margin of error include bias?
No. It only covers random sampling error.
Is the margin of error calculator free?
Yes. It's free, needs no sign-up, and works in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.