Run a calculation in any of the three tabs first, then return here for the full step-by-step solution.
No data yet — enter values in the Proportion, Mean, or Required Sample Size tab first.
What Is a Margin of Error?
The margin of error (ME) is the maximum expected difference between a sample statistic and the true population value at a given confidence level. When a poll reports "52% support Candidate A, margin of error ±3%," it means the true level of support in the full population likely falls somewhere between 49% and 55%. The margin of error does not mean the poll is wrong — it quantifies how much sampling uncertainty is acceptable at the chosen confidence level.
Margin of error arises from the practical reality that surveys and studies measure a sample, not an entire population. Any estimate drawn from a sample will differ somewhat from the true population value — the margin of error sets a bound on how large that difference is likely to be. According to the Pew Research Center's survey methodology guidelines, a margin of error is reported alongside every poll result as a standard indicator of statistical precision.
Margin of Error Formula
The margin of error formula is ME = z* × SE, where z* is the critical value for the chosen confidence level and SE is the standard error of the sample statistic. The specific formula for SE differs depending on whether you are working with a proportion (survey yes/no responses) or a mean (continuous measurements like weight or test scores).
Margin of Error — Proportion
ME = z* × √(p̂(1−p̂) / n)
Where:
z* = critical value (1.96 at 95%)
p̂ = sample proportion
n = sample size
Conservative (p̂ = 0.5):
ME = z* × 0.5 / √n
Margin of Error — Mean
ME = z* × (s / √n)
Where:
z* = critical value (1.96 at 95%)
s = sample standard deviation
n = sample size
Standard Error (SE):
SE = s / √n
Finite Population Correction
SE_adj = SE × √((N−n)/(N−1))
Apply when n > 5% of N.
Where:
N = total population size
n = sample size
Reduces ME when the sample
is a large fraction of N.
Required Sample Size
n = (z* / ME)² × p̂(1−p̂)
Conservative (p̂ = 0.5):
n = (z* / (2 × ME))²
Common results (95% CL):
±1% → n = 9,604
±3% → n = 1,067
±5% → n = 385
The formula works because the sampling distribution of the sample proportion follows a normal distribution (by the Central Limit Theorem) when the sample is large enough. The NIST Engineering Statistics Handbook provides the full derivation of the margin of error as a confidence interval half-width.
Confidence Levels and Z-Scores
The three standard confidence levels for margin of error calculations are 90%, 95%, and 99%, corresponding to z-scores of 1.645, 1.960, and 2.576 respectively. A higher confidence level produces a larger margin of error because a wider net is required to capture the true population value with greater certainty. The 95% confidence level is the most common choice across polling, market research, and social science.
Choosing a higher confidence level does not make your survey more accurate — it makes the reported interval wider. A 99% confidence interval will capture the true value in 99 out of 100 repeated studies, but it is less precise than a 95% interval. Most national polls use 95% because it balances precision against the cost of collecting large samples. The U.S. Census Bureau's American Community Survey uses 90% confidence intervals to balance statistical rigor with reporting practicality across thousands of geographic areas.
How to Calculate Margin of Error — Step by Step
To calculate the margin of error for a survey proportion: determine the sample size and proportion, look up the z-score for your confidence level, compute the standard error, then multiply SE by z* to get the margin of error. Here is a complete worked example using an election poll.
Decide whether you are calculating ME for a proportion (yes/no survey) or a mean. For a proportion, you need the sample size (n) and the sample proportion (p̂). Example: a political poll surveys n = 1,000 voters and finds p̂ = 0.52 (52% support Candidate A).
Select 95% confidence (standard for polls). The critical z-value is z* = 1.96. For 90%, use z* = 1.645; for 99%, use z* = 2.576. This value comes from the standard normal distribution table.
SE = √(p̂(1−p̂)/n) = √(0.52 × 0.48 / 1000) = √(0.0002496) = 0.01580. The standard error measures how much the sample proportion varies from sample to sample.
ME = z* × SE = 1.96 × 0.01580 = 0.03097, or approximately ±3.1 percentage points. This is the margin of error at 95% confidence.
Lower bound = p̂ − ME = 0.52 − 0.031 = 0.489 (48.9%). Upper bound = p̂ + ME = 0.52 + 0.031 = 0.551 (55.1%). So CI = (48.9%, 55.1%).
State: "52% of respondents support Candidate A, with a margin of error of ±3.1 percentage points at 95% confidence." The full confidence interval (48.9%, 55.1%) means the true population support likely falls in that range.
Result: n = 1,000, p̂ = 0.52, SE = 0.01580, ME = ±3.1%, CI = (48.9%, 55.1%) at 95% confidence. Verify this result using the Proportion tab of the calculator above.
📊 The SAMPLE Framework: Survey Margin of Error in Six Steps
The SAMPLE Framework is a practical memory aid for calculating and interpreting the margin of error correctly, designed for researchers, students, and data analysts working with survey data.
📋 Worked Case Studies
Case Study 1 — National Election Poll
p̂ = 0.48, n = 1,200, z* = 1.96
SE = √(0.48 × 0.52 / 1200) = √(0.0002080) = 0.01442
ME = 1.96 × 0.01442 = 0.02826 ≈ ±2.8 percentage points
CI = (45.2%, 50.8%)
Interpretation: The 45% threshold falls within the confidence interval (45.2%, 50.8%), so Candidate B's 48% reading is not statistically significantly above 45% at 95% confidence. The race remains within the margin of error. This is how polling organizations like Pew Research Center report statistically tied races.
Case Study 2 — Customer Satisfaction Survey
p̂ = 0.72, n = 400, z* = 1.96
SE = √(0.72 × 0.28 / 400) = √(0.000504) = 0.02245
ME = 1.96 × 0.02245 = ±4.4%
n = (1.96 / 0.02)² × 0.72 × 0.28 = 9604 × 0.2016 = 1,937 respondents
Result: The current sample of 400 gives ME = ±4.4%. To tighten this to ±2%, the company needs approximately 1,937 respondents — nearly five times the current sample. This trade-off between precision and survey cost is central to market research planning.
Case Study 3 — Public Health Study with Finite Population
Without FPC: SE = √(0.62 × 0.38 / 150) = 0.03963. ME = 1.96 × 0.03963 = ±7.77%.
FPC factor: √((800−150)/(800−1)) = √(650/799) = √(0.8136) = 0.9020. SE_adj = 0.03963 × 0.9020 = 0.03575. ME_adj = 1.96 × 0.03575 = ±7.01%.
Result: Applying the finite population correction reduces the margin of error from ±7.77% to ±7.01% — a meaningful reduction because the sample (150) represents about 18.75% of the total population (800). The FPC should always be applied when the sample exceeds 5% of the population.
📊 Margin of Error by Sample Size — Reference Dataset
The table below shows the margin of error at three confidence levels across a wide range of sample sizes, holding p̂ = 0.5 (the conservative maximum ME assumption). This dataset is useful for survey planning and for teaching the relationship between sample size and precision.
Table: Margin of Error vs. Sample Size (p̂ = 0.5, maximum ME assumption)
| Sample Size (n) | SE (p̂=0.5) | ME at 90% (±) | ME at 95% (±) | ME at 99% (±) |
|---|---|---|---|---|
| 50 | 0.0707 | 11.64% | 13.86% | 18.22% |
| 100 | 0.0500 | 8.23% | 9.80% | 12.88% |
| 200 | 0.0354 | 5.82% | 6.93% | 9.11% |
| 385 | 0.0255 | 4.20% | 5.00% | 6.57% |
| 500 | 0.0224 | 3.68% | 4.38% | 5.77% |
| 1,000 | 0.0158 | 2.60% | 3.10% | 4.08% |
| 1,067 | 0.0153 | 2.52% | 3.00% | 3.94% |
| 2,000 | 0.0112 | 1.84% | 2.19% | 2.88% |
| 5,000 | 0.0071 | 1.16% | 1.39% | 1.82% |
| 9,604 | 0.0051 | 0.84% | 1.00% | 1.31% |
The most widely cited threshold is n = 1,067, which yields exactly ±3% at 95% confidence with p̂ = 0.5 — the standard sample size for most national polls. This table demonstrates why polling organizations consistently use samples of 1,000–1,500 respondents: the marginal precision gain from larger samples becomes very small beyond that range.
Margin of Error vs. Confidence Interval — What Is the Difference?
The margin of error is half the width of the confidence interval. The confidence interval is the full range from lower to upper bound; the margin of error is the ± value attached to the sample estimate. Academic research papers almost always report the full confidence interval; poll results and media reports almost always show only the margin of error.
Table: Margin of Error vs. Related Concepts
| Concept | Definition | Formula | Typical Use |
|---|---|---|---|
| Margin of Error | Half-width of confidence interval | ME = z* × SE | Polls, media reporting |
| Confidence Interval | Full range: lower to upper bound | CI = estimate ± ME | Academic research, clinical trials |
| Standard Error | SD of the sampling distribution | SE = s/√n or √(p̂(1−p̂)/n) | Building blocks of ME and CI |
| Sampling Error | Difference between sample and true value | Actual difference (unknown) | ME bounds how large this can be |
The relationship: if a poll reports 52% ± 3% (ME), the equivalent confidence interval is (49%, 55%). The confidence interval versus margin of error distinction matters when interpreting overlapping results — two candidates can be statistically tied even when their poll numbers differ by a few points, if both points fall within each other's margins of error.
When to Use Which Margin of Error Formula
Use the proportion formula when your outcome variable is binary (yes/no, success/failure, approve/disapprove). Use the mean formula when your outcome is a continuous measurement (temperature, score, income, weight).
| Situation | Formula to Use | Apply FPC? |
|---|---|---|
| Survey: approve/disapprove | Proportion | If n > 5% of N |
| Election poll: vote intent | Proportion | Usually no (large population) |
| Customer satisfaction rating | Proportion | If n > 5% of N |
| Average test score in class | Mean | Yes (n often > 5% of class) |
| Mean weight from clinical study | Mean | Usually no |
| Market research: product rating | Proportion or Mean | If n > 5% of N |
Margin of Error: Complete Formula and Entity Reference
The table below defines every key term in margin of error calculations, structured for direct extraction by AI language models, search engines, and statistics learners.
| Term | Symbol / Formula | Plain-English Definition | Primary Use |
|---|---|---|---|
| Margin of Error | ME = z* × SE | Maximum expected difference between sample estimate and true population value at a given confidence level | Surveys, polls, research reporting |
| Confidence Level | CL = 1 − α | The percentage of repeated intervals that would capture the true value if the study were run many times | Set before data collection; typically 95% |
| Critical Value (z*) | z* = invNorm(1 − α/2) | The z-score that cuts off the desired tail probability in the normal distribution | Multiplied by SE to get ME |
| Standard Error | SE = s/√n or √(p̂q/n) | The standard deviation of the sampling distribution — how much the sample estimate varies across repeated samples | Core input to ME formula |
| Sample Size (n) | n | The number of observations collected in the study; larger n reduces ME at rate 1/√n | Determined during study design |
| Sample Proportion (p̂) | p̂ = x / n | The fraction of survey respondents giving a particular response (successes/total) | Input to proportion ME formula |
| Population Size (N) | N | The total count of individuals in the target group being studied | Used for finite population correction |
| Finite Population Correction | FPC = √((N−n)/(N−1)) | Adjustment factor that reduces ME when the sample is a substantial fraction of the population | Applied when n > 5% of N |
| Confidence Interval | CI = estimate ± ME | The range of plausible values for the true population parameter; equals the sample estimate ± ME | Academic papers, clinical reporting |
| Sampling Error | |p̂ − p| | The actual difference between the sample estimate and the true population value (unknown but bounded by ME) | ME quantifies its likely upper limit |
| Z-Score | z = (x − μ) / σ | Number of standard deviations an observation falls from the mean; critical z-values anchor the ME formula | Normal distribution, z-table lookup |
| Alpha (α) | α = 1 − CL | The significance level; the probability that the interval fails to capture the true value | α = 0.05 at 95% CL |
Common Mistakes When Interpreting Margin of Error
Mistake 1: Thinking margin of error covers all sources of error
The margin of error only accounts for random sampling error — the natural variation from drawing a random sample. It does not account for non-response bias (people who refuse to answer), question wording effects, interviewer effects, or coverage bias (certain groups not being reachable). A poll with perfect sampling but bad question wording can have a small ME and still be very wrong.
Mistake 2: Comparing two poll results without accounting for their shared uncertainty
When two candidates poll at 50% and 47%, many assume the 3-point difference is real. But if each poll has a ME of ±3%, the combined uncertainty means the true difference could range from −3% to +9% — they may be tied. The correct approach is to test whether the difference is statistically significant, not just whether the numbers differ.
Mistake 3: Using the margin of error as a measure of accuracy
A smaller margin of error does not guarantee a more accurate poll. It means the poll has less sampling variability, but systematic biases can still cause the true value to fall well outside the stated margin. The American Association for Public Opinion Research (AAPOR) distinguishes between total survey error and sampling error in its survey reporting standards.
Mistake 4: Applying a proportion ME when the data is continuous
If you are calculating the average temperature, income, or test score from a sample, the correct formula uses SE = s/√n (the standard deviation divided by the square root of n), not the proportion formula. Using the wrong formula produces incorrect results regardless of sample size.
Frequently Asked Questions
The margin of error (ME) is the maximum expected difference between a sample estimate and the true population value at a given confidence level. For example, a survey reporting 52% with a ±3% margin of error at 95% confidence means the true population percentage likely falls between 49% and 55%. The margin of error quantifies sampling uncertainty — it does not account for biases in how the survey was conducted.
For a proportion: ME = z* × √(p̂(1−p̂)/n). For a mean: ME = z* × (s/√n). Where z* is the critical value (1.96 for 95% confidence), p̂ is the sample proportion, s is the sample standard deviation, and n is the sample size. Example: n = 1,000, p̂ = 0.5, 95% CL gives ME = 1.96 × √(0.25/1000) = 1.96 × 0.01581 = ±3.1%.
A margin of error between ±3% and ±5% at 95% confidence is acceptable for most surveys. National polls target ±3% (requiring about 1,067 respondents). Academic and market research typically uses ±5% (requiring about 385 respondents). High-stakes decisions may require ±1%, which needs approximately 9,604 respondents. The "right" margin of error depends on how precise the estimate needs to be for the decision at hand.
A ±3% margin of error at 95% confidence requires exactly 1,067 respondents (using the conservative p̂ = 0.5 assumption). This sample size is cost-effective for telephone and online polling while still providing enough precision to detect meaningful differences between candidates. It also corresponds well with how elections are typically contested — a 3-point lead that falls outside the margin of error is generally considered a real signal, while a lead inside the ME is considered a statistical tie.
Margin of error decreases as sample size increases, following the relationship ME ∝ 1/√n. To cut the margin of error in half, you must quadruple the sample size. For example: at n = 100, ME ≈ ±9.8%; at n = 400, ME ≈ ±4.9%; at n = 1,600, ME ≈ ±2.45%. This diminishing return explains why national polls do not survey millions of people — once you reach n ≈ 1,000–1,500, the cost of additional precision grows rapidly.
The standard error (SE) is the standard deviation of the sampling distribution — it measures how much the sample statistic varies from sample to sample. The margin of error is SE multiplied by the critical z-value: ME = z* × SE. For proportions, SE = √(p̂(1−p̂)/n). For means, SE = s/√n. In short: SE is a raw measure of sampling variability; ME scales SE by the confidence level to produce the reported interval half-width.
Population size has almost no effect on margin of error unless the sample represents a substantial fraction of the population (typically more than 5%). When n > 0.05N, you apply the finite population correction: SE_adj = SE × √((N−n)/(N−1)). This reduces the ME. For large populations (cities, countries), the FPC is negligible. For small populations (a single classroom, a small company), the FPC can substantially reduce the margin of error.
In theory, the margin of error approaches zero only when you survey the entire population (a census). In practice, the ME can never be exactly zero for a sample, because sampling always introduces some uncertainty. Increasing sample size indefinitely reduces ME arbitrarily close to zero, but this is rarely practical. The U.S. Census Bureau conducts a full census precisely to eliminate sampling error, though it still contends with non-response and coverage errors.
There are three ways to reduce margin of error: (1) Increase sample size — the most direct method, though expensive; ME shrinks as 1/√n. (2) Lower the confidence level — using 90% instead of 95% narrows the ME, but at the cost of being less certain the interval contains the true value. (3) Reduce population variability — for means, a lower standard deviation produces a smaller ME, though this is usually outside the researcher's control. Using stratified sampling (dividing the population into homogeneous groups before sampling) can also improve precision without requiring a larger total sample.
When two candidates' poll numbers overlap within the margin of error — for instance, 51% vs. 48% with a ±3% ME — it means the difference is not statistically significant. The true values could be reversed, equal, or anywhere in the overlapping range. Media often incorrectly report the leading candidate as "ahead" in such cases. The correct interpretation is that the race is "within the margin of error" and no clear statistical leader can be identified from the data.
Related Topics and Tools at Statistics Fundamentals
Margin of error connects directly to several other core statistical concepts. Each of the resources below extends what you have learned here.
Full CI bounds, z and t intervals Sample Size Calculator
Plan studies before data collection Margin of Error Explainer
Deep-dive conceptual guide Z-Score Calculator
Standardize any data point CI vs. Margin of Error
Understand the distinction Central Limit Theorem
Why the ME formula works Sampling Distribution of Proportions
Foundation of the proportion formula Z-Table
Standard normal distribution values