Margin of Error Calculator
Calculate the margin of error for your survey results based on sample size, confidence level, population size, and expected proportion.
About this calculator
This calculator estimates the Margin of Error for a survey statistic using the standard normal approximation: Margin of Error = z × √(Expected Proportion × (1 − Expected Proportion) / Sample Size) (lines 10, 17-18), then widens or narrows the interval with a Finite Population Correction when a positive Population Size at least as large as Sample Size is supplied (lines 21-25). At the calculator's defaults, Expected Proportion sits exactly at 50%, a stationary point of the p×(1−p) term where the first-order (linear) effect vanishes — a small nudge either side of 50% shifts p×(1−p) only to second order, so Margin of Error still moves, just by a tiny, symmetric amount: 5.00% at p=50%, versus 4.98% at both p=45% and p=55%, and 4.90% at p=60%. It's a stationary point, not a flat region — a symmetric ±10% probe around 50% reads zero because the two directions cancel exactly, not because Expected Proportion is inert; away from 50% the effect is larger and no longer symmetric.
Expected Proportion, not Sample Size, is what shifts the Lower and Upper Confidence Interval Bounds the most, since both are built by adding or subtracting the margin from Expected Proportion directly (lines 28-29). The z-score lookup only has exact entries for confidence levels 1 (90%), 2 (95%), and 3 (99%); anything else silently falls back to the 95% value. This calculator does not account for stratified or cluster sampling designs — it assumes simple random sampling, so a survey built on a clustered or stratified design needs the Design Effect from a calculator like Sampling Frame applied on top of this result.
Inputs
Results
Margin of Error
5%
How to Use This Calculator
- Enter the sample size — the number of completed survey responses you have or plan to collect.
- Select the confidence level: 1 for 90%, 2 for 95%, or 3 for 99%.
- Enter the population size if known, or leave at 0 to treat the population as effectively infinite.
- Input the expected proportion or use 50% (most conservative) if unknown.
- Review the Margin of Error, Confidence Interval bounds, Z-Score used, and Finite Population Correction factor.
- Adjust the sample size or confidence level and compare results on the Margin of Error by Sample Size chart.
How the result changes with Sample Size
| Sample Size | Margin of Error |
|---|---|
| 192 | 7.07% |
| 288 | 5.77% |
| 576 | 4.08% |
| 960 | 3.16% |
What each input means
- Sample Size
- The number of completed survey responses you have or plan to collect.
- Confidence Level
- Select 1 for 90%, 2 for 95%, or 3 for 99%. Higher confidence requires a larger margin of error.
- Population Size
- Total size of the population being studied. Leave at 0 for infinite/unknown population.
- Expected Proportion (%)
- The expected proportion answering a certain way. Use 50% for maximum variability (most conservative estimate).
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersSample Size = 384, Confidence Level = 2, Population Size = 0, Expected Proportion (%) = 50 = 4 input(s) provided
- Calculate Margin of ErrorMargin of Error = m5 = 5
- Calculate Confidence Interval LowerConfidence Interval Lower45 = 45
- Calculate Confidence Interval UpperConfidence Interval Upper55 = 55
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does nudging Expected Proportion near 50% barely move the Margin of Error?
At its default of 50%, Expected Proportion sits at the peak of the p × (1 − p) term inside the standard error formula (line 17) — a stationary point where the first-order effect is zero, so a small nudge either side produces only a second-order change. It's real, just tiny and symmetric: Margin of Error is 5.00% at p=50%, 4.98% at both p=45% and p=55% (identical to each other, which is why a symmetric ±10% probe reads exactly zero there), and 4.90% at p=60%. Away from 50%, the effect grows and is no longer symmetric.
Does selecting a fractional Confidence Level, like 2.5, work correctly?
No — the engine looks up the z-score from a table keyed only by the exact integers 1, 2, and 3 (line 10), so any other numeric value, including 2.5, matches none of those keys and silently falls back to the 95% z-score of 1.96 (line 11) rather than interpolating or raising an error.
Why is the Finite Population Correction always 1 by default?
Population Size defaults to 0, and the correction factor only applies when Population Size is entered as a positive number at least as large as Sample Size (line 22) — with the field left at its default, fpcFactor stays fixed at 1 regardless of what you change Sample Size or Expected Proportion to.
Which input has the largest effect on the Confidence Interval's bounds?
Expected Proportion, since both the Lower and Upper Bound are computed by adding or subtracting the margin of error directly from the Expected Proportion percentage (lines 28-29) — a change to Expected Proportion shifts the whole interval, while Sample Size mainly narrows or widens its width.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Survey Response Rate Calculator
Determine how many survey invitations you need to send to achieve your target number of completed responses, accounting for response and completion rates.
Survey ResearchQuota Sampling Calculator
Calculate the number of survey responses needed from each population stratum using proportional quota sampling. Ensures your sample mirrors the population composition.
StatisticsConfidence Interval Calculator
Calculate the confidence interval for a population mean. Determine the margin of error and range where the true population parameter likely falls.
StatisticsConfidence Interval Calculator
Calculate the confidence interval for a population mean using sample data. Uses z-based approximation suitable for large samples.
Surveying & GISTraverse Calculation
Compute latitude, departure, closure error, precision ratio, and enclosed area for a 4-leg closed survey traverse.
More in Math & Statistics.