Margin of Error Calculator
How Margin of Error Quantifies Survey Precision
Introduction
When a survey, poll, or sample-based study reports a result, it is almost never measuring every person in the full population. Instead, it uses a smaller group and then estimates what the larger population is likely to think, prefer, or experience. The margin of error is a compact way to describe the uncertainty that comes from using a sample instead of a full census. In plain language, it tells you how far the sample result could reasonably differ from the true population value because of random sampling variation alone.
This calculator estimates the margin of error for a proportion, such as the share of respondents who answered yes, supported a candidate, preferred a product, or had a certain characteristic. It uses the familiar proportion-based formula and can also apply a finite population correction when your sample is taken from a relatively small, known population. That makes it useful for public polling, customer surveys, classroom research, employee questionnaires, membership studies, and many other situations where you want a quick sense of statistical precision.
A smaller margin of error means a more precise estimate. A larger margin of error means more uncertainty around the reported percentage. If a poll says 52% of respondents support an option with a margin of error of ±3 percentage points, the result is usually interpreted as meaning the true population proportion is likely to be somewhere around 49% to 55%, assuming the sample was random and the model assumptions are appropriate.
How to Use This Calculator
The form below asks for four inputs. Each one affects the final estimate in a different way. Start with the sample size, which is the number of completed responses or observations in your sample. Larger samples generally reduce the margin of error because they provide more information about the population. The relationship is not linear, though: doubling the sample size does not cut the margin in half. Instead, the improvement follows a square-root pattern, so gains become more gradual as the sample gets larger.
The optional population size field is there for cases where you are sampling from a finite, known group, such as a school with 2,000 students, a company with 850 employees, or a membership list with 5,000 names. If your population is very large relative to the sample, you can leave this field blank and the calculator will use the standard large-population formula. If the sample is a meaningful fraction of the total population, entering the population size lets the calculator apply the finite population correction, which slightly reduces the margin of error.
The proportion input represents the estimated share of the sample with the characteristic of interest, written as a decimal between 0 and 1. For example, 50% should be entered as 0.5, 10% as 0.1, and 72% as 0.72. If you do not have a prior estimate, 0.5 is a conservative default because it produces the largest variability and therefore the largest margin of error. Many survey planners use 0.5 when they want a cautious estimate before collecting data.
The confidence level controls how cautious the interval is. Common choices are 90%, 95%, and 99%. A higher confidence level means you want more assurance that the interval captures the true population value, so the margin of error becomes larger. In practice, 95% is the most common default because it balances caution and usability well for many reporting situations.
After entering your values, select the confidence level and press the compute button. The result appears as a percentage-point margin, such as ±4.90 percentage points. That wording matters: percentage points describe the width around a proportion estimate, not a relative percent change. If your sample estimate is 60% and the margin is ±4.90 points, the implied interval is about 55.10% to 64.90%.
Formula
This calculator uses the standard margin of error formula for a sample proportion. For a large population, the equation is:
Formula: MOE = z × sqrt((p(1 - p)) / n)
In this expression, is the z-score associated with the selected confidence level, is the sample proportion, and is the sample size. The term under the square root is the estimated variance of the sample proportion. As that variance gets smaller, the margin of error gets smaller too.
When the sample is drawn without replacement from a finite population, the calculator multiplies the large-population formula by the finite population correction factor. The full expression is:
Formula: MOE = z × sqrt((p(1 - p)) / n) × sqrt((N - n) / (N - 1))
Here is the population size. If the population is huge compared with the sample, this correction factor is very close to 1, so it has little practical effect. If the sample is a substantial share of the population, the factor becomes smaller than 1 and reduces the margin of error. That reduction reflects the fact that sampling a large fraction of a small population gives you more information than sampling the same number from an effectively unlimited population.
The table below lists the z-scores used for the confidence levels available in the form:
| Confidence | z-score |
|---|---|
| 90% | 1.645 |
| 95% | 1.96 |
| 99% | 2.576 |
One especially important detail is the role of . The product is largest when . That is why a 50/50 split produces the largest margin of error for a given sample size and confidence level. If the estimated proportion is closer to 0 or 1, the margin becomes smaller because the variability is lower.
Example
Suppose a pollster surveys 400 people and wants a 95% confidence level. If the estimated proportion is 0.5, the margin of error is calculated as:
≈ 0.049, or ±4.9 percentage points.
That means if the sample result were 50%, the corresponding confidence interval would be about 45.1% to 54.9%. If the observed result were 62%, the interval would be about 57.1% to 66.9%. The margin itself does not depend on the reported percentage alone; it depends on the sample size, confidence level, and the proportion value used in the formula.
Now imagine increasing the sample size from 400 to 800 while keeping the same 95% confidence level and the same proportion of 0.5. The margin drops to roughly ±3.5 percentage points. This is a good illustration of diminishing returns. You doubled the sample size, but the margin did not get cut in half. That is normal and expected because the formula improves precision at the rate of the square root of the sample size.
The finite population correction can also matter. Suppose the population is only 5,000 and the sample size is 800. Applying the correction multiplies the margin by , reducing the margin from about 3.5 points to about 3.2 points. The difference is not dramatic here, but it is real and can be useful when reporting results from smaller, closed populations.
For comparison, here are typical margins at 95% confidence when and no finite population correction is used:
| Sample Size | Margin of Error |
|---|---|
| 100 | ±9.8% |
| 400 | ±4.9% |
| 1,000 | ±3.1% |
| 10,000 | ±1.0% |
These values help explain why many public polls use samples around 1,000 respondents. That size often yields a margin near ±3 percentage points, which is widely seen as a practical compromise between cost and precision. Reaching ±1 point usually requires a much larger sample, which can be expensive and time-consuming.
The proportion value also changes the result. If you expect only 10% support for an issue and use with , the formula becomes ≈ 0.018, or ±1.8 percentage points. Because the variability is lower than at 0.5, the margin is smaller.
Limitations and Assumptions
Margin of error is useful, but it is not a complete measure of data quality. It only reflects random sampling error under the assumptions of the model. It does not account for biased wording, poor sampling frames, nonresponse bias, weighting problems, interviewer effects, measurement error, or mistakes in data processing. A survey can have a small margin of error and still be misleading if the sample is not representative.
This calculator is designed for proportion estimates and uses a normal-approximation style formula. That approach is common and practical, especially for moderate to large samples, but it is still an approximation. In very small samples, or when the proportion is extremely close to 0 or 1, more specialized interval methods may be preferable. The result should therefore be treated as a standard planning or reporting estimate, not as a guarantee of exact inferential performance in every edge case.
Another important assumption is that the sample is random or close to random. If respondents self-select into a survey, if certain groups are systematically underrepresented, or if the sample design is complex, the simple formula may understate the true uncertainty. Professional survey reports often discuss weighting, design effects, and methodology notes for exactly this reason.
Researchers sometimes reverse the calculation to estimate the sample size needed for a target margin of error. Solving for gives:
That rearranged form is often used in survey planning, but it still relies on the same assumptions described above. In other words, collecting the mathematically required number of responses does not automatically solve problems of bias or poor questionnaire design.
Used appropriately, though, margin of error remains one of the clearest ways to communicate sampling precision. It helps readers compare estimates, understand uncertainty, and avoid overinterpreting small differences. If two survey results differ by less than their margins of error, that difference may not be meaningful. If the difference is much larger, the evidence for a real gap is stronger, though still subject to the broader quality of the study design.
