Calculateus

Margin of Error Calculator

Calculate the margin of error for a survey result given sample size and confidence level.

Result

Margin of Error
± 3.1%

About the Margin of Error

The Margin of Error Calculator turns a sample size, a sample proportion, and a chosen confidence level into the plus-or-minus percentage that should accompany any poll or survey result. It answers a question every published poll number needs an answer to: how much could this result move if a different sample of the same size had been drawn. Journalists, students, and survey designers use it to check whether a reported gap between two candidates or options is actually larger than the noise in the sample.

How It Works

Enter the number of people sampled, the proportion who gave the response you're measuring (as a percentage), and a confidence level of 90%, 95%, 98%, or 99%. The calculator looks up the z-value tied to that confidence level, plugs it into the margin of error formula along with your sample size and proportion, and returns a single plus-or-minus percentage. A larger sample size or a proportion closer to 0% or 100% both shrink the margin; a higher confidence level widens it.

MOE = z x sqrt(p(1-p) / n), where p is the sample proportion expressed as a decimal, n is the sample size, and z is 1.645 for 90% confidence, 1.96 for 95%, 2.326 for 98%, or 2.576 for 99%.

Formula & Methodology

To compute by hand, convert the proportion to a decimal, multiply it by one minus itself, divide that product by the sample size, and take the square root. Multiply the result by the z-value for the chosen confidence level, then convert back to a percentage - that figure is added to and subtracted from the point estimate to form the reported range.

Examples

Typical Election Poll

A poll surveys 1,000 people and finds 50% support a candidate, at 95% confidence. The calculator returns a margin of error of about ±3.10%, meaning the true support level plausibly falls between roughly 46.9% and 53.1%.

Smaller Sample, Higher Confidence

A 400-person survey finds 30% of respondents prefer a product, and the report wants 99% confidence. The margin of error comes out to about ±5.90%, wider than the first example because of both the smaller sample and the higher confidence requirement.

Advantages

  • Gives an instant, standard-formula estimate of poll precision without requiring a statistics background.
  • Lets readers of a poll compare confidence levels side by side to see how much precision is traded for certainty.
  • Uses the same z-based formula referenced by pollsters and survey methodologists, so results match what's reported in the field.

Common Mistakes

  • Assuming the margin of error applies to differences between two candidates or options, when it actually describes uncertainty around a single proportion.
  • Leaving the proportion at the default 50% for a result that is actually far from even, which produces a margin wider than the data justifies.
  • Ignoring that raising confidence from 95% to 99% widens the margin considerably, and then treating the two figures as if they were interchangeable.

Edge Cases to Watch For

  • Sample size must be greater than zero; the calculator returns an error otherwise, since dividing by n is undefined at zero.
  • The formula assumes a simple random sample from a population large relative to the sample; it does not apply a finite population correction, so results for a small, fully enumerated population will overstate the true margin.
  • p(1-p) is largest at p = 50%, so an unknown or near-even proportion produces the widest margin of error for a given sample size, while a lopsided proportion near 0% or 100% produces an artificially tight margin.

Common Use Cases

  • Journalists checking whether a reported polling gap between two options exceeds the margin of error before calling it a real lead.
  • Students and researchers verifying the precision of a survey-based proportion for a class project or report.
  • Market researchers deciding whether a planned survey sample size is adequate before fielding it.
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Why do political polls usually cite a margin of error around 3%?

A sample size of roughly 1,000-1,100 respondents at a 95% confidence level and 50% assumed proportion produces a margin of error close to ±3%, which is why that figure shows up so often in news coverage of polling - it's a direct consequence of the common polling sample size, not a fixed constant.

Conclusion

The margin of error is only as meaningful as the sampling method behind it, but for a simple random sample it gives a fast, standard way to express how much a poll number could shift. Pair the output with the underlying sample size and proportion whenever the result is reported.