Margin of Error Calculator
Settings
Inputs
Results
Action
Use this Margin of Error Calculator to find the confidence-interval margin of error for a mean or a proportion. It is useful for survey reporting, statistics homework, confidence interval planning, polling interpretation, and quick checks when you want to see how sample size and confidence level affect precision.
Reviewed by: AjaxCalculators Editorial Team
Last updated: May 2, 2026
Method source: Standard z-based confidence-interval margin-of-error formulas for a population mean with known or assumed σ, and for a population proportion under the normal approximation
Editorial standards: AjaxCalculators Editorial Policy
What This Margin of Error Calculator Calculates
This calculator estimates the margin of error for two common confidence-interval settings:
- Mean mode: when you have a known or assumed population standard deviation estimate, written as σ
- Proportion mode: for surveys, yes/no outcomes, rates, shares, and percentage-style estimates
It can also show the result as a percentage for easier interpretation in survey-style use cases.
What Margin of Error Means
Margin of error is the “plus or minus” amount around an estimate in a confidence interval.
For example, if a survey estimate is 52% and the margin of error is 4 percentage points, a simple confidence interval is:
52% ± 4%
That gives an interval from about:
48% to 56%
A smaller margin of error means a more precise estimate, assuming the sampling method and formula assumptions are appropriate.
How the Margin of Error Calculator Works
This calculator uses z-based confidence-interval formulas. The z value depends on the confidence level. Higher confidence levels use larger z values, which produce wider intervals and larger margins of error.
The basic structure is:
Margin of error = critical value × standard error
The standard error depends on whether you are estimating a mean or a proportion.
Margin of Error for a Mean
When estimating a population mean with a z-based interval and known or assumed population standard deviation σ, the margin of error is:
MoE = z × σ / √n
Where:
- MoE = margin of error
- z = confidence-level multiplier
- σ = population standard deviation estimate
- n = sample size
The result is in the same units as the standard deviation and the variable being measured. For example, if σ is measured in dollars, the margin of error is also measured in dollars.
Margin of Error for a Proportion
For a proportion using the normal approximation, the margin of error is:
MoE = z × √[p(1 − p) / n]
Where:
- MoE = margin of error
- z = confidence-level multiplier
- p = estimated proportion
- n = sample size
If you do not know p, using 0.50 is the conservative choice because it produces the largest margin of error for the standard proportion formula.
Formula Summary
| Calculation | Formula | Use |
|---|---|---|
| Mean margin of error | MoE = z × σ / √n | Estimate uncertainty around a sample mean |
| Proportion margin of error | MoE = z × √[p(1 − p) / n] | Estimate uncertainty around a sample proportion |
| Confidence interval for a mean | Sample mean ± MoE | Build an interval around a mean estimate |
| Confidence interval for a proportion | Sample proportion ± MoE | Build an interval around a percentage estimate |
| Conservative proportion choice | p = 0.50 | Use when the expected proportion is unknown |
Common Confidence Levels and z Values
The confidence level controls the z multiplier. A higher confidence level gives a larger margin of error when sample size and variability stay the same.
| Confidence Level | Approximate z Value | Effect on Margin of Error |
|---|---|---|
| 90% | 1.645 | Smaller than 95% |
| 95% | 1.960 | Common reporting choice |
| 98% | 2.326 | Larger than 95% |
| 99% | 2.576 | Larger than 95% and 98% |
Choosing a higher confidence level means accepting a wider interval unless the sample size is increased.
Mean Mode vs Proportion Mode
Choose the calculator mode based on what kind of estimate you are reporting.
| Mode | Use When Estimating | Example | Key Input |
|---|---|---|---|
| Mean mode | An average numeric value | Average income, average score, average delivery time | Standard deviation σ |
| Proportion mode | A percentage, share, or yes/no outcome | Approval rate, conversion rate, satisfaction percentage | Estimated proportion p |
Using the wrong mode can produce a misleading result.
Why p = 0.50 Gives the Largest Proportion Margin of Error
In proportion mode, the variability term is p(1 − p). This value is largest when p = 0.50.
| p | p(1 − p) | Margin of Error Effect |
|---|---|---|
| 0.10 | 0.09 | Smaller than p = 0.50 |
| 0.25 | 0.1875 | Moderate |
| 0.50 | 0.25 | Largest margin of error |
| 0.75 | 0.1875 | Same as p = 0.25 |
| 0.90 | 0.09 | Same as p = 0.10 |
When you do not have a good estimate of the proportion, p = 0.50 is often used as a conservative planning value.
Worked Example A: Proportion Margin of Error
Suppose you have:
- Sample size: 600
- Confidence level: 95%
- z value: 1.96
- Estimated proportion: 0.50
Step 1: Use the proportion formula
MoE = z × √[p(1 − p) / n]
Step 2: Substitute the values
MoE = 1.96 × √[0.50 × 0.50 / 600]
Step 3: Calculate inside the square root
0.50 × 0.50 / 600 = 0.25 / 600 = 0.0004167
Step 4: Take the square root
√0.0004167 ≈ 0.02041
Step 5: Multiply by z
MoE ≈ 1.96 × 0.02041 ≈ 0.0400
Result: The margin of error is about 0.04, or 4.0 percentage points.
Worked Example B: Mean Margin of Error
Suppose you have:
- Sample size: 100
- Confidence level: 95%
- z value: 1.96
- Population standard deviation estimate: 12
Step 1: Use the mean formula
MoE = z × σ / √n
Step 2: Substitute the values
MoE = 1.96 × 12 / √100
Step 3: Calculate the square root
√100 = 10
Step 4: Calculate margin of error
MoE = 1.96 × 12 / 10 = 2.352
Result: The margin of error is about 2.35 units.
Worked Example C: Confidence Interval From Margin of Error
Suppose a survey estimate is 52% and the margin of error is 4 percentage points.
Step 1: Write the estimate and margin of error
52% ± 4%
Step 2: Calculate the lower bound
52% − 4% = 48%
Step 3: Calculate the upper bound
52% + 4% = 56%
Result: The confidence interval is about 48% to 56%.
Worked Example D: Effect of Sample Size
Increasing sample size lowers margin of error, but the improvement follows the square-root rule. Doubling the sample size does not cut the margin of error in half.
For a 95% confidence proportion estimate with p = 0.50:
| Sample Size | Approx. Margin of Error | Interpretation |
|---|---|---|
| 400 | 4.90 percentage points | Less precise |
| 600 | 4.00 percentage points | Moderate precision |
| 1,000 | 3.10 percentage points | More precise |
| 2,400 | 2.00 percentage points | Much larger sample for smaller MoE |
Result: To reduce the margin of error substantially, the sample size often needs to increase by much more than the desired percentage reduction.
How Sample Size, Confidence, and Variability Affect Margin of Error
| Change | Margin of Error Usually Does This | Reason |
|---|---|---|
| Sample size increases | Decreases | The standard error gets smaller |
| Confidence level increases | Increases | The z multiplier gets larger |
| Standard deviation increases | Increases in mean mode | More variability means less precision |
| p moves closer to 0.50 | Increases in proportion mode | p(1 − p) is largest at 0.50 |
| p moves closer to 0 or 1 | Decreases in proportion mode | p(1 − p) becomes smaller |
Normal Approximation Caveat for Proportions
The proportion formula uses a normal approximation. This approximation is most appropriate when the sample size is large enough and the expected number of successes and failures is not too small.
A common rule of thumb is to check:
- np ≥ 10
- n(1 − p) ≥ 10
If these conditions are not reasonably satisfied, an exact method or another interval method may be more appropriate than the simple normal-approximation margin of error.
Margin of Error Does Not Measure All Error
Margin of error is often misunderstood. It mainly reflects random sampling uncertainty under the selected confidence-interval model. It does not include every possible source of error.
| Issue | Included in Simple MoE? | Why It Matters |
|---|---|---|
| Random sampling error | Yes, under model assumptions | This is what margin of error is designed to summarize |
| Nonresponse bias | No | People who respond may differ from people who do not |
| Poor question wording | No | Bad questions can bias results even with a large sample |
| Non-random sampling | No | A large convenience sample may still be biased |
| Measurement error | No | Inaccurate measurement can distort the estimate |
| Weighting and complex survey design | Not in this simple formula | Complex designs may require adjusted calculations |
For public reporting, survey research, or high-stakes decisions, margin of error should be interpreted alongside sampling method, response rate, questionnaire quality, and study design.
How to Use This Margin of Error Calculator
- Select Mean or Proportion mode.
- Choose a confidence level or enter a custom z value.
- Enter the sample size n.
- If using Mean mode, enter the population standard deviation estimate σ.
- If using Proportion mode, enter the estimated proportion p. If unknown, use 0.50 for a conservative margin of error.
- Click Calculate if the tool requires it.
- Review the raw margin of error and percentage view.
- Check whether the formula assumptions are reasonable for your data.
How to Interpret the Result
The margin of error tells you the size of the “plus or minus” part of a confidence interval.
For example:
Estimate ± margin of error
If a survey estimate is 52% with a margin of error of 4%, the rough confidence interval is about 48% to 56%.
| Result Pattern | Possible Meaning | What to Check |
|---|---|---|
| Margin of error is large | Sample size may be small, confidence may be high, or variability may be high | Consider whether more data is needed |
| Margin of error is small | Estimate is more precise under the formula assumptions | Still check sampling quality and bias |
| Proportion result uses p = 0.50 | Conservative or worst-case estimate | Use a better p estimate if credible prior data exists |
| Mean result is in raw units | The MoE uses the same unit as the measurement | A percentage display may need careful interpretation |
When This Calculator Is Useful
This calculator is useful when you want a quick confidence-interval precision estimate.
- Check the precision of survey percentages
- Understand how confidence level affects uncertainty
- Estimate confidence-interval half-width for a mean
- Plan whether a sample size is large enough for a reporting goal
- Compare worst-case proportion uncertainty using p = 0.50
- Compare different confidence levels for the same sample
- Show why larger samples reduce uncertainty
- Support statistics homework and educational examples
When You May Need More Than This Calculator
This calculator uses simple z-based confidence-interval formulas. Use a more advanced method or statistical guidance when your situation involves:
- small samples
- unknown population standard deviation with small sample size
- t-based confidence intervals
- exact binomial intervals
- weighted surveys
- clustered or stratified samples
- complex survey design
- non-random sampling
- low response rates
- rare proportions close to 0 or 1
- multiple comparisons
- medical, legal, policy, research, or financial decisions
Common Mistakes to Avoid
- Thinking margin of error includes all survey error: it usually does not include bias, nonresponse, wording problems, or measurement error.
- Using the wrong mode: use Mean mode for averages and Proportion mode for percentages or yes/no outcomes.
- Entering percentages incorrectly: in proportion mode, 52% should be entered as 0.52 if the tool expects a decimal proportion.
- Ignoring sample size limits: the normal approximation may be weak for small samples or rare proportions.
- Confusing confidence level with probability the interval is true: confidence level describes the long-run method, not a guarantee for one interval.
- Lowering confidence only to reduce MoE: lower confidence gives a narrower interval but less confidence in the interval procedure.
- Assuming a large sample removes bias: large biased samples can still produce misleading results.
- Interpreting mean-mode percentage output without context: raw units are usually clearer for mean margin of error.
Assumptions and Important Notes
- This calculator is for confidence-interval margin of error, not hypothesis testing or full power analysis.
- Mean mode assumes you have a reasonable estimate of the population standard deviation σ.
- Proportion mode uses the normal approximation, which is most appropriate when the sample is large enough for that approximation to be reasonable.
- The same sample size gives a larger margin of error at higher confidence levels because the z multiplier is larger.
- Increasing sample size decreases margin of error, but the reduction is not linear because the formula uses √n.
- In mean mode, the raw margin of error is usually more meaningful than the percentage display unless you define what that percentage is relative to.
- The calculator does not automatically adjust for finite population correction, design effects, clustering, weighting, or nonresponse.
- The result should not be treated as a complete measure of study quality.
Practical Uses of a Margin of Error Calculator
- Estimate survey margin of error
- Compare margin of error at 90%, 95%, and 99% confidence
- Check how sample size changes precision
- Find mean confidence-interval half-width
- Find proportion confidence-interval half-width
- Use p = 0.50 for conservative survey planning
- Explain polling uncertainty in percentage points
- Support statistics homework and reporting checks
References
- Penn State STAT 415: Z-Interval for a Population Mean with Known σ
- Penn State STAT 200: Confidence Intervals for a Population Proportion Using the Normal Approximation
- Penn State STAT 100: Confidence Intervals and Margin of Error for a Proportion
- Penn State STAT 415: Estimating a Proportion for a Large Population
- NIST/SEMATECH e-Handbook of Statistical Methods: Confidence Intervals
- NIST/SEMATECH e-Handbook of Statistical Methods: Confidence Intervals for Large Sample Sizes
Related Calculators
- Sample Size Calculator
- Power Analysis Calculator
- t-test Calculator
- t-statistic Calculator
- Standard Deviation Calculator
- Variance Calculator
- Mean Median Mode Calculator
Frequently Asked Questions
What does this Margin of Error Calculator calculate?
It calculates the confidence-interval margin of error for a population mean or population proportion using z-based formulas.
What is margin of error?
Margin of error is the plus-or-minus amount around an estimate in a confidence interval. It describes random sampling uncertainty under the formula assumptions.
How do I calculate margin of error for a mean?
Use MoE = z × σ / √n, where z is the confidence-level multiplier, σ is the population standard deviation estimate, and n is sample size.
How do I calculate margin of error for a proportion?
Use MoE = z × √[p(1 − p) / n], where p is the estimated proportion and n is the sample size.
What does p = 0.50 mean?
In proportion mode, p = 0.50 is a conservative choice when the true proportion is unknown because it gives the largest margin of error.
What is a confidence level?
A confidence level describes the long-run reliability of the confidence interval method. Common choices include 90%, 95%, and 99%.
Why does higher confidence increase margin of error?
Higher confidence uses a larger z multiplier, which makes the interval wider when sample size and variability stay the same.
Why does larger sample size reduce margin of error?
Larger samples reduce the standard error. However, the decrease follows the square-root rule, so very large reductions in margin of error require much larger samples.
Does margin of error include survey bias?
No. Simple margin of error formulas usually do not include nonresponse bias, poor question wording, measurement error, or non-random sampling problems.
What is the difference between margin of error and standard error?
Standard error estimates the sampling variability of the statistic. Margin of error multiplies the standard error by a confidence-level critical value.
What is the normal approximation caveat for proportions?
The normal approximation is most appropriate when the expected number of successes and failures is large enough, often checked with conditions such as np ≥ 10 and n(1 − p) ≥ 10.
Can I use this calculator for small samples?
Use caution. Small samples may require t-based intervals for means or exact or alternative methods for proportions.
Is a smaller margin of error always better?
A smaller margin of error means more precision, but it may require more data. Precision should still be balanced with sampling quality, cost, and study design.
Can this calculator replace statistical review?
No. It is an educational tool for simple confidence-interval margin of error estimates. High-stakes studies should use appropriate statistical review.
Is margin of error the same as accuracy?
No. Margin of error reflects random sampling precision under assumptions. Accuracy also depends on bias, measurement quality, sampling design, and data collection methods.
Disclaimer: This Margin of Error Calculator provides educational confidence-interval estimates for a population mean or population proportion using z-based formulas. Results depend on the selected mode, confidence level, z value, sample size, assumed standard deviation, estimated proportion, rounding, and whether the normal-approximation assumptions are appropriate. Mean mode assumes a known or reasonably estimated population standard deviation, while proportion mode assumes the sample is large enough for the normal approximation to be reasonable. The calculator does not fix poor sampling design, biased responses, nonresponse bias, measurement error, small-sample limitations, clustering, weighting, stratification, or non-random selection. A margin of error describes random sampling uncertainty under the model assumptions; it does not include every source of survey or study error. Use this calculator for learning, reporting, and early planning, and use full statistical review or qualified guidance for research, publication, medical, legal, policy, financial, or high-stakes decisions.