Margin of error calculator
Find the margin of error for a survey result from its sample size, confidence level and proportion. The calculator adjusts for a small, known population and shows the confidence interval around your result.
With 1,000 responses, 95% confidence and a result of 50%, the margin of error is about ±3.1 percentage points. It shrinks with the square root of the sample size, so quadrupling the sample to 4,000 roughly halves it to ±1.5.
Margin of error
±3.10 percentage points
With 1,000 responses, a result of 50% has a 95% confidence interval of 46.9% to 53.1%.
- Confidence level
- 95% (z = 1.960)
- Sample size
- 1,000
- Proportion
- 50%
- Population
- Not set (treated as very large)
- Standard error
- 1.58 percentage points
- Confidence interval
- 46.9% to 53.1%
Workinge = z × √(p × (1 − p) ÷ n) = 1.960 × √(0.5 × 0.5 ÷ 1,000) = 0.0310e = 3.10 percentage points
How does the margin of error calculator work?
The margin of error is the half-width of a confidence interval for a percentage. It is computed from the standard error of a proportion, scaled by the critical value z for the confidence level:
e = z × √(p × (1 − p) ÷ n)e = z × √(p × (1 − p) ÷ n) × √((N − n) ÷ (N − 1)) (finite population of size N)
Here n is the number of completed responses, p is the proportion (as a fraction) and z is 1.645, 1.960 or 2.576 at 90%, 95% or 99% confidence. The interval for the whole population is the result plus or minus e. Because p × (1 − p) is largest at 50%, a margin of error quoted for a whole survey is normally the one at 50%, the most cautious case.
The second formula applies the finite population correction, which matters when the sample is a sizeable share of a small population (roughly more than 5%). When the sample is the whole population there is no sampling error at all.
What is a worked example?
A survey collects 1,000 responses and a result of 50% at 95% confidence.
standard error = √(0.5 × 0.5 ÷ 1,000) = 0.01581e = 1.960 × 0.01581 = 0.0310, or ±3.10 points
So a reported 50% is likely to be within about 3 points of the true figure for the whole population. If a different result of 40% is found with the same sample, the margin is slightly narrower, ±3.04 points, giving 37.0% to 43.0%.
With a population correction, 278 responses from a population of 1,000 give a margin of ±4.997 points, just under 5, which matches the result of the sample size calculator.
What margin of error does a given sample give?
Margins of error, in percentage points, for a result of 50% from a large population:
| Sample size | 90% confidence | 95% confidence | 99% confidence |
|---|---|---|---|
| 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 |
| 750 | ±3.0 | ±3.6 | ±4.7 |
| 1,000 | ±2.6 | ±3.1 | ±4.1 |
| 1,500 | ±2.1 | ±2.5 | ±3.3 |
| 2,000 | ±1.8 | ±2.2 | ±2.9 |
| 4,000 | ±1.3 | ±1.5 | ±2.0 |
| 10,000 | ±0.8 | ±1.0 | ±1.3 |
Each extra response helps less than the last. Going from 1,000 to 2,000 responses narrows the margin by about 0.9 points; going from 100 to 1,000 narrows it by about 6.7.
When should you not use this calculator?
A margin of error covers sampling error only, and only for a random sample. Do not rely on it when:
- The sample is not random. Opt-in panels and convenience samples have no true sampling margin of error. Some pollsters publish a credibility interval instead, which rests on modelling assumptions. AAPOR advises against quoting a margin of sampling error for non-probability samples.
- Other errors dominate. Coverage gaps, non-response, question wording and weighting add error that the margin of error does not include.
- The data are weighted or clustered. Weighting and clustering widen the real margin. Divide the sample size by the design effect to get an effective sample size, and use that as n.
- You are comparing two results. The margin for the difference between two independent results is larger than for either alone, about 1.4 times larger when the two samples are similar in size. Use the survey significance calculator.
- The sample or the proportion is extreme. For small samples or percentages near 0% or 100%, this normal-approximation interval is unreliable, and a Wilson or exact interval is better.
Frequently asked questions
What is the margin of error in a survey?
It is how far the survey result is likely to be from the true value for the whole population because only a sample was asked. A margin of ±3 points at 95% confidence means that, if the survey were repeated many times, about 95 in 100 intervals built this way would contain the true value.
What is a good margin of error?
That depends on the size of the differences you need to see. A sample of 1,000 gives about ±3.1 points at 95% confidence, which is common in national polls; many commercial studies accept ±5 points (about 385 responses).
Does the margin of error depend on population size?
Hardly at all, unless the sample is more than about 5% of a small population. A sample of 1,000 gives almost the same margin in a population of 100,000 as in the whole country.
How do I halve the margin of error?
Quadruple the sample. The margin shrinks with the square root of the number of responses, so 1,000 responses give about ±3.1 points and 4,000 give about ±1.5.
Can I use the margin of error for subgroups?
Yes, but use the number of responses in the subgroup as n, not the total. A segment of 200 people has a margin of about ±6.9 points at 95% confidence, even if the whole survey has 1,000.
What is the difference between margin of error and confidence level?
The margin of error is the width of the interval; the confidence level is how reliable the procedure is. At a higher confidence level, such as 99%, the margin is wider for the same sample. The sample size calculator turns a target margin into a required sample.
Cite or link this tool
You are welcome to link to this tool or cite it in a report, article, course or blog post. Copy the HTML to link to it with attribution, or use the plain-text citation.
Link with attribution (HTML)
Plain-text citation
Embed this calculator
Put this calculator on your own website, course page or blog post. It is free to embed, on one condition: keep the credit link under the calculator. The credit link is the licence for free use; if you remove it, please remove the embed as well.
Embed code
The embed is a compact version of this calculator that works inside an iframe. It runs in the visitor's browser, and what they type is never sent to PulseLake or anyone else. Change the height if your layout needs it.
Related tools
- Survey sample size calculatorHow many completed responses do you need? Set the confidence level, margin of error, expected proportion and, if you know it, the population.
- Survey significance calculatorIs the gap between two segments or waves real or noise? A two-proportion z-test with the difference, z, p-value and a plain-English reading.
- Van Westendorp price sensitivity calculatorPaste or load answers to the four Van Westendorp price questions and get the four price points, an acceptable range and a chart.
- Gabor-Granger price calculatorEnter the share of respondents who would buy at each price and get the demand curve, the revenue-maximising price and, with a unit cost, the profit-maximising price.
- Survey question bankStandard, widely used survey questions grouped by purpose, with exact wording, scale, when to use each, a common bias to avoid and its source.
- Research brief templateTurn a research request into a clear brief: objective, decision, audience, method, timeline and deliverables, ready to copy.
- All free survey and research calculatorsThe full list, with the formulas each one uses.
Formulas and references
The standard sources behind the formulas on this page:
- Cochran, W. G. (1977). Sampling Techniques (3rd ed.). New York: John Wiley and Sons. Standard error of a proportion and the finite population correction.
- Kish, L. (1965). Survey Sampling. New York: John Wiley and Sons. Design effects and effective sample size.
- Abramowitz, M. and Stegun, I. A. (1964). Handbook of Mathematical Functions. Normal distribution functions (series 26.2.10 and the continued fraction 26.2.14, used to compute the normal distribution).
- Acklam, P. J. (2003). An algorithm for computing the inverse normal cumulative distribution function, with one step of Halley's method (used to find the critical value z).
Run research end to end. Keep the knowledge working.
One AI-native operating system for market research and insight professionals — from study design and evidence generation to agents, institutional knowledge, delivery and action.
