Margin of Error Calculator

Margin of error3.10%
Confidence interval for the result46.90% to 53.10%
Standard error1.58%
Sample size needed for ±0%— (enter a target margin)
How this was calculated
  1. The standard error of a proportion is √(p × (1 − p) ÷ n) = √(0.5 × 0.5 ÷ 1,000) = 1.58%.
  2. With no finite population entered, no population correction applies — the sample is treated as drawn from an effectively unlimited population.
  3. Multiply by the 95% z-value 1.96: the margin of error is 3.10%, so a reported 50% really means somewhere in 46.90% to 53.10%.
  4. The margin is largest at a 50% proportion — planning a survey with p = 50% guarantees the quoted margin whatever the result.

Our margin of error calculator gives you the plus-or-minus figure for any survey result. It uses the standard formula: margin of error = z × sqrt(p(1-p)/n), where z is the critical value for your chosen confidence level and n is your sample size. For example, 1,000 respondents at 50% and 95% confidence yield the classic +/-3.10%, producing an interval from 46.90% to 53.10%. The worst case is p = 50%, meaning proportions near 0% or 100% have smaller standard errors and tighter margins. For finite populations, the calculator applies a correction: 400 respondents from a population of 10,000 give +/-4.80% after the finite-population correction, slightly tighter than the uncorrected 4.90%. At higher confidence, 500 respondents at 60% and 99% confidence give +/-5.64%, and hitting exactly +/-5% at 99% would take 638 respondents.

The formula above is the accepted standard for proportion-based survey estimation because it directly links sample size, observed proportion, and confidence level to a single, interpretable range. Keep in mind that margin of error covers sampling error only — it says nothing about biased questions, non-response, or coverage problems. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.

Worked examples

The classic ±3-point poll

Primary result: 3.10% — why 1,000 respondents is the industry default. (1000 people · 50 % · 95% · 0 · 0 %)

Margin of error3.10%
Confidence interval for the result46.90% to 53.10%
Standard error1.58%
Sample size needed for ±0%— (enter a target margin)

A small town, corrected

Primary result: 4.80% — sampling 400 of 10,000 people earns a small finite-population discount. (400 people · 50 % · 95% · 10000 · 0 %)

Margin of error4.80%
Confidence interval for the result45.20% to 54.80%
Standard error2.45%
Sample size needed for ±0%— (enter a target margin)

What ±5% at 99% confidence costs

Primary result: 5.64% at n = 500 — and 638 respondents would be needed to hit ±5%. (500 people · 60 % · 99% · 0 · 5 %)

Margin of error5.64%
Confidence interval for the result54.36% to 65.64%
Standard error2.19%
Sample size needed for ±5%638

The margin of error formula

The margin of error formula is z x sqrt(p(1-p)/n), where z is the critical value, p is the sample proportion, and n is the sample size. In plain terms, the margin of error equals the critical value times the standard error of the proportion. The critical value z comes from your chosen confidence level, while p and n come from your survey data. When you plug these values into a margin of error calculator, the formula tells you how far your sample result could plausibly swing from the true population value.

The formula's behavior depends heavily on p. The worst case is p = 50%, because proportions near 0% or 100% have smaller standard errors and tighter margins. This is why pollsters often calculate margin of error assuming p = 50% — it gives the most conservative, widest possible interval. A survey showing 90% support naturally has a smaller margin of error than one showing 50% support, even with the same sample size and confidence level.

The famous example: 1,000 respondents at 50% and 95% confidence give the classic +/-3.10%. That means the interval runs 46.90% to 53.10%. This specific result is what journalists and pollsters cite when they describe a typical national poll's precision. It is also why a sample of roughly 1,000 has become an informal industry standard — it balances cost against a margin of error narrow enough for practical interpretation.

Other scenarios illustrate how the formula scales. With 400 respondents from a population of 10,000, the margin of error is +/-4.80% after the finite-population correction, slightly tighter than the uncorrected 4.90%. At 99% confidence, 500 respondents at 60% give +/-5.64%, and hitting exactly +/-5% at 99% confidence would take 638 respondents. Higher confidence demands larger samples to hold the margin steady.

One crucial caveat: margin of error covers sampling error only. It says nothing about biased questions, non-response, or coverage problems. A poll with a tiny margin of error can still be wildly wrong if the sample was not representative or the questions were poorly worded. The formula measures statistical noise from random sampling, not systematic flaws in survey design.

Worked examples

The table below shows three verified scenarios that a margin of error calculator can produce, each built from the same formula: margin of error = z × sqrt(p(1-p)/n), where z is the critical value and the square-root term is the standard error of the proportion. The first row is the classic textbook case: 1,000 respondents at 50% and 95% confidence give the familiar +/-3.10%, placing the true value somewhere between 46.90% and 53.10%. The second row adds a finite-population correction: 400 respondents drawn from a population of 10,000 yield +/-4.80%, just slightly tighter than the uncorrected 4.90% you would get if the population were assumed infinite. The third row shifts to 99% confidence with 500 respondents at 60%, producing +/-5.64% — and hitting exactly +/-5% at that same 99% level would require 638 respondents.

These figures also illustrate why planners treat p = 50% as the worst case. Proportions near 0% or 100% produce smaller standard errors and therefore tighter margins, so using 50% for planning gives you a conservative estimate that will not be too narrow if the real proportion drifts. That is why the 638-respondent figure above is useful as a planning target: it tells you the sample size needed to hold the margin to +/-5% at 99% confidence under the least favorable proportion.

One caution before reading too much precision into any of these numbers: the margin of error covers sampling error only. It says nothing about biased questions, non-response, or coverage problems that can skew results in ways the formula cannot capture. A survey with a tight +/-3.10% interval can still be misleading if the wording pushes respondents or if the people who answered differ systematically from the people who did not. The calculator quantifies one source of uncertainty; it does not audit the survey design.

RespondentsProportion (p)Confidence levelPopulation sizeMargin of errorInterval
1,00050%95%—+/-3.10%46.90% to 53.10%
400——10,000+/-4.80% (corrected) / 4.90% (uncorrected)—
50060%99%—+/-5.64%—
638—99%—+/-5.00%—
The margin of error reflects sampling error alone. Question wording, non-response, and coverage gaps can introduce bias that no sample-size formula will detect.

Confidence levels and z-values

Every margin of error calculator relies on a z-value, the critical value drawn from the standard normal distribution that corresponds to your chosen confidence level. The formula is margin of error = z x sqrt(p(1-p)/n): the critical value times the standard error of the proportion. Most surveys use one of three confidence levels. For 90% confidence the z-value is 1.645, for 95% confidence it is 1.96, and for 99% confidence it is 2.576. As you demand more confidence, the z-value grows, and so does your margin of error.

What does it mean to be 95% confident? It does not promise that the true population value falls within your interval this time. Instead, it means that if you repeated the exact same sampling process many times, about 95% of the resulting intervals would contain the true value. A common benchmark shows this in action: 1,000 respondents at 50% and 95% confidence give the classic +/-3.10%, so the interval runs 46.90% to 53.10%. The worst case is p = 50%, because proportions near 0% or 100% have smaller standard errors and tighter margins.

Higher confidence comes at a cost. At 99% confidence, 500 respondents at 60% give +/-5.64%, and hitting exactly +/-5% at 99% would take 638 respondents. Population size can also matter. With 400 respondents from a population of 10,000, the finite-population correction gives +/-4.80%, slightly tighter than the uncorrected 4.90%. A margin of error calculator applies these adjustments so you see the right interval for your sample.

One crucial limit: margin of error covers sampling error only. It says nothing about biased questions, non-response, or coverage problems. A tight interval cannot rescue a flawed survey design.

  • 90% confidence: z = 1.645
  • 95% confidence: z = 1.96
  • 99% confidence: z = 2.576
Being 95% confident means that if you repeated the same survey many times, about 95% of the intervals would capture the true value. It does not guarantee that your current interval does.

The finite population correction

The standard margin of error formula works well when your sample is a small drop in a large bucket. But when your sample is a visible slice of the population, the formula overstates your uncertainty. That is where the finite population correction comes in. This adjustment shrinks the margin of error to reflect the fact that you have already surveyed a meaningful share of the group, so there is less room for random variation to throw off your results.

The base formula is straightforward: margin of error equals z multiplied by the square root of p(1-p) divided by n, where z is the critical value and the expression under the square root is the standard error of the proportion. A reliable margin of error calculator applies this calculation automatically. The correction factor multiplies that result by a value that accounts for the sampling fraction. When you survey 400 respondents from a population of 10,000, the corrected margin of error comes to 4.80%, slightly tighter than the uncorrected 4.90%. The difference is modest in this case, but it grows as the sampling fraction increases.

The correction matters most when you are working with smaller populations or larger sampling fractions. If you survey 1,000 respondents at 50% and 95% confidence, you get the classic plus or minus 3.10%, with the interval running from 46.90% to 53.10%. That example assumes a large population where the correction has little effect. But when your population is limited and your sample represents a substantial share of it, applying the correction gives you a more honest picture of your precision. The worst case for the proportion is p equal to 50%, because proportions near 0% or 100% have smaller standard errors and tighter margins.

Keep in mind that the correction only refines the sampling error component of your results. Margin of error covers sampling error alone and says nothing about biased questions, non-response, or coverage problems. A tighter corrected margin does not protect you from those sources of error. The correction simply gives you a more accurate statement of the uncertainty that comes from sampling, which is what a margin of error calculator is designed to quantify in the first place.

Planning a sample size

A margin of error calculator is just as useful before data collection as after. If you have a target precision in mind, invert the formula — margin of error = z x sqrt(p(1-p)/n) — and solve for n. The critical value times the standard error of the proportion tells you exactly how many respondents you need to reach a given interval at a chosen confidence level.

The 638-respondent case shows how this works in practice. At 99% confidence with a proportion of 60%, 500 respondents give a margin of error of +/-5.64%. If you want to tighten that to exactly +/-5% at the same confidence level, the formula calls for 638 respondents. That is a meaningful jump — roughly 138 more people — just to shave 0.64 percentage points off the interval. The math is unforgiving because the sample size sits inside a square root, so gains in precision scale with the square of the effort.

That square-root relationship makes halving a margin brutally expensive. Doubling your sample size does not halve the margin of error; it reduces it by a factor of the square root of 2, or about 29%. To cut a margin in half, you need four times the respondents. A survey of 1,000 respondents at 50% and 95% confidence yields the classic +/-3.10%, with the interval running 46.90% to 53.10%. Pushing that margin down to roughly +/-1.55% would require about 4,000 respondents. Every halving multiplies cost by four, which is why most public polling stops near the 1,000-person mark rather than chasing tighter intervals.

Sample size also depends on the proportion you expect. The worst case is p = 50%, because proportions near 0% or 100% have smaller standard errors and tighter margins. Planning for 50% gives you the most conservative — largest — sample estimate, so it is the default when you have no prior data. Population size can matter as well: 400 respondents from a population of 10,000 give +/-4.80% after the finite-population correction, slightly tighter than the uncorrected 4.90%. For large populations the correction barely moves the number, but for small groups it can save fieldwork cost.

  • To halve a margin of error, multiply the sample size by four — the cost scales with the square of the precision gain.
  • Use p = 50% for planning unless you have strong prior data; it produces the largest, safest sample estimate.
  • Finite-population correction helps most when sampling a large share of a small group, as with the 400-of-10,000 case.
Margin of error covers sampling error only. It says nothing about biased questions, non-response, or coverage problems — a precise interval around a flawed sample is still wrong.

What the margin of error leaves out

A margin of error calculator gives you a precise number, but that number captures only one source of uncertainty: sampling error. The formula itself — z times the square root of p(1-p)/n — reflects the random variation that comes from surveying a sample instead of the full population. It says nothing about biased questions, non-response, or coverage problems. If a poll systematically undercounts certain groups or frames questions in a leading way, the reported margin of error will not flag those issues. A survey can have a tight margin and still be wrong because of flaws the formula never attempts to measure.

Subgroup results come with an important caveat that many users overlook. When you break a poll of 1,000 respondents down into smaller groups — say, men and women, or voters in a single age bracket — the sample size for each subgroup shrinks, and the margin of error grows accordingly. A subgroup of 400 respondents drawn from a population of 10,000 carries a margin of +/-4.80% after the finite-population correction, slightly tighter than the uncorrected 4.90%. That is already larger than the overall poll's margin. Very small subgroups can have margins two or three times the size of the headline figure, which is why subgroup differences should be interpreted with caution.

Weighted or clustered survey designs introduce another layer of complexity. Many polls apply weights to match population demographics or use clustering to reduce costs, and both practices can increase the variance of estimates. This design effect means the effective sample size is smaller than the raw number of respondents suggests, widening the true margin beyond what a standard margin of error calculator reports. Analysts adjust for this, but the published margin may not reflect those corrections unless the polling firm states that it does.

Finally, the margin of error is widest when the reported proportion sits at 50%. Proportions near 0% or 100% have smaller standard errors and tighter margins. That means a result reported as 50% at 95% confidence with 1,000 respondents yields the classic +/-3.10% interval, running from 46.90% to 53.10%. Push confidence to 99% with 500 respondents at 60%, and the margin expands to +/-5.64%; hitting exactly +/-5% at that confidence level would require 638 respondents. These numbers describe random sampling variation only, not the full picture of survey quality.

Margin of error covers sampling error only — it says nothing about biased questions, non-response, or coverage problems.

FAQs

What is the margin of error for 1,000 respondents?

About +/-3.10% at 95% confidence for a 50% result — the standard national-poll figure. This is the number you see cited in most major surveys.

How is margin of error calculated?

The formula is z x sqrt(p(1-p)/n). For example, 1.96 x sqrt(0.25/1000) = 3.10%. Here, 1.96 is the z-value for 95% confidence, 0.25 represents a 50% result, and 1000 is the sample size.

Why is 50% the worst case?

The expression p(1-p) peaks at p = 0.5, so a 50/50 result has the largest standard error and the widest margin. Using 50% gives you the most conservative estimate when planning a survey.

How many respondents do I need for +/-5% at 99% confidence?

You need 638 at a 60% expected proportion — the planning calculation inverts the margin formula. This tells you the minimum sample size required to achieve that level of precision and confidence.

Does a bigger population need a bigger sample?

Barely — once the population is large, only the sample size matters; the finite population correction helps only when the sample is a real fraction of the whole, as with 400 of 10,000. For most national surveys, population size has little effect.

Does margin of error cover biased samples?

No — it quantifies random sampling error only; a biased sample of 10,000 can be precisely wrong. Margin of error assumes random sampling and does not account for systematic bias, poor question wording, or non-response issues.

Sources

Related calculators

Standard Deviation Calculator
Mean, sample and population standard deviation and variance for up to eight numbers — with the n versus n−1 difference explained.
Percentile Calculator
The percentile rank of a score in a normally distributed group — with the z-score and the share of the group scoring above you.
Z-Score Calculator
The z-score of any value in a normal distribution, its percentile, and the share of values above and below it — the standardisation behind test scores and quality control.
Probability Calculator
Two independent events, every combination: both happen, at least one, exactly one, or neither — from the two individual probabilities.