Margin of Error Calculator
Calculate the margin of error for a sample estimate at a chosen confidence level.
Calculate the margin of error for a sample estimate at a chosen confidence level.
How Margin of Error Calculator Works
The margin of error combines how spread out your data is (standard deviation) with how large your sample is — larger samples shrink the margin of error, and higher confidence levels (which demand more certainty) widen it, since a critical z-value scales the whole calculation.
Who Uses Margin of Error Calculator and Why
- Reporting the margin of error alongside a survey result so readers understand the range the true value likely falls within.
- Estimating the sample size needed before running a survey, by working backward from a target margin of error.
- Sanity-checking a poll's precision claims by recomputing the margin of error from its stated sample size and confidence level.
Mistakes to Avoid
- Assuming margin of error accounts for every source of inaccuracy in a survey — it only reflects random sampling variability, not bias from a poorly worded question, a non-representative sample, or low response rates.
- Expecting doubling the sample size to cut the margin of error in half — margin of error shrinks with the square root of sample size, so doubling the sample only reduces the margin by a factor of about 1.41; roughly quadrupling the sample is needed to actually halve it.
- Choosing a confidence level without understanding the tradeoff — a higher confidence level (like 99% instead of 95%) widens the margin of error, since it demands more certainty that the true value falls within the range.
Tips for Best Results
- If you're planning a survey and have a target margin of error in mind, work the calculation backward to estimate the sample size you'll need before collecting data.
- Remember the margin of error describes sampling precision only — a survey can have a small, reassuring margin of error and still be badly biased for other reasons.
Fixing Common Problems
I doubled my sample size but the margin of error barely changed. — This is expected — margin of error scales with the square root of sample size, not sample size directly. To meaningfully shrink the margin, you generally need a much larger increase in sample size than you might expect.
Terms Explained
Margin of error: The range above and below a sample estimate within which the true population value is likely to fall, at a given confidence level.
Confidence level: The probability that the calculated margin of error actually contains the true population value, commonly set at 90%, 95%, or 99%.