# Margin of Error Calculator

URL: https://hifreetools.com/calculators/margin-of-error-calculator

> Calculate the margin of error for a survey or poll from your confidence level, sample size, and the observed proportion, using the standard normal-approximation formula MoE = Z·√(p(1−p)/n).

## Quick answer

The margin of error is MoE = Z·√(p(1−p)/n), where Z is the critical value for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%), p is the sample proportion, and n is the sample size. For a 95% confidence level with n = 1000 and the worst-case p = 0.5, MoE = 1.96·√(0.5·0.5/1000) ≈ 0.03099, or about ±3.10 percentage points. Larger samples shrink the margin of error in proportion to 1/√n.

## Formula

- Margin of error (proportion): MoE = Z · √( p(1 − p) / n )

## Examples

- Standard national poll (95%, n = 1000): Confidence = 95% (Z = 1.96), n = 1000, p = 50% → MoE ≈ 3.099%
- Smaller sample at 90% confidence: Confidence = 90% (Z = 1.645), n = 600, p = 50% → MoE ≈ 3.358%
- Tight 99% estimate with a skewed proportion: Confidence = 99% (Z = 2.576), n = 1500, p = 40% → MoE ≈ 3.258%

## FAQ

**What is a good margin of error for a survey?**
For most market research and political polling, a margin of error of ±3% to ±5% at 95% confidence is considered acceptable. Below ±3% usually requires more than 1,000 respondents, while a margin above ±5% signals the sample may be too small to draw firm conclusions. The right target depends on how small a difference you need to detect.

**Why is the margin of error largest when the proportion is 50%?**
The formula contains p(1 − p), which reaches its maximum value of 0.25 exactly at p = 0.5. Any proportion further from 50% — say 20% or 80% — produces a smaller p(1 − p) and therefore a smaller margin of error. Because of this, pollsters often use p = 0.5 as a conservative, worst-case assumption when the true proportion is unknown.

**How does sample size affect the margin of error?**
The margin of error is proportional to 1/√n, so it shrinks slowly as the sample grows. Doubling the sample size reduces the margin only by a factor of √2 (about 29%), and you must quadruple n to cut the margin in half. This is why polls rarely exceed a few thousand respondents — the precision gains become expensive.

**What Z-score should I use for 90%, 95%, and 99% confidence?**
The critical Z-values are 1.645 for 90% confidence, 1.96 for 95% confidence, and 2.576 for 99% confidence. These correspond to the two-sided cutoffs of the standard normal distribution that leave 10%, 5%, and 1% of the probability in the tails, respectively. This calculator selects the correct Z automatically from the confidence level you choose.

**Is margin of error the same as a confidence interval?**
They are closely related but not identical. The margin of error is the half-width of the interval, while the confidence interval is the full range p − MoE to p + MoE. So if a poll reports 52% support with a ±3% margin of error at 95% confidence, the confidence interval is 49% to 55%.

**Does this calculator account for population size?**
No — it uses the standard formula that assumes the population is large relative to the sample, which is true for almost all real surveys. If you are sampling a meaningful fraction of a small, finite population, you would apply a finite population correction factor, which slightly reduces the margin of error.


## Sources

- [Wikipedia — Margin of error](https://en.wikipedia.org/wiki/Margin_of_error)
- [NIST/SEMATECH e-Handbook — Confidence intervals for proportions](https://www.itl.nist.gov/div898/handbook/prc/section2/prc241.htm)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Margin of Error Calculator", https://hifreetools.com/calculators/margin-of-error-calculator
