Margin of Error Calculator
Compute the margin of error for a mean or a proportion, with critical values and every step shown
The Margin of Error Formula
The margin of error is the half-width of a confidence interval — how far a sample estimate can plausibly sit from the true population parameter.
Mean, population known:
Mean, unknown (the usual case):
Proportion:
Symbols: is the sample size, the population standard deviation, the sample standard deviation, the sample proportion, and or the critical value for the chosen confidence level.
The interval is then . Because shrinks like , quadrupling the sample only halves the margin of error.
Critical Values, Standard Error, and Sample Size
Critical values
| Confidence | |
|---|---|
| 90% | |
| 95% | |
| 99% |
Use when is known; use with whenever you estimate the spread from the sample with . At 99% confidence with , — noticeably wider than , which is exactly the penalty for not knowing .
Standard error vs margin of error
The standard error is (or ). The margin of error is that standard error multiplied by the critical value. They are different numbers, and only the second one carries a confidence level.
Sample size for a target margin
Solve for :
With no prior estimate of , use — it maximises and so is the safe choice. Always round up.
Conditions and Common Mistakes
These formulas are valid only when:
- Random sampling: the data come from a simple random sample or a randomised experiment. Margin of error quantifies sampling variability only — it says nothing about bias from non-response, bad question wording, or a self-selected panel.
- Independence: observations are independent. When sampling without replacement, keep of the population.
- Approximate normality: for a mean, either the population is roughly normal or so the Central Limit Theorem applies. For a proportion, check and .
Frequent errors
- Using when is unknown and is small — that understates ; use .
- Dividing by instead of .
- Grabbing the one-tailed critical value: a two-sided 95% interval uses , not .
- Assuming a larger population demands a larger sample. Population size is almost irrelevant; is what drives .
Examples
Frequently Asked Questions
The standard error measures how much a sample estimate varies from sample to sample. The margin of error is the standard error multiplied by a critical value (z* or t*), which attaches a confidence level to it. For a 95% interval the margin of error is roughly twice the standard error.
Use t* with df = n − 1 whenever you estimate the spread from the sample standard deviation s, which is nearly always the case with real data. Use z* only when the population σ is genuinely known. For n ≥ 30 the two critical values are close, but t* is never wrong.
There is no universal threshold — it depends on the decision. National opinion polls typically report ±3%, market research often accepts ±5%, and clinical work may demand ±1% or better. Pick the largest error you could tolerate and still act the same way, then solve for the sample size that delivers it.
Essentially no. The formula depends on n, not on population size, so a sample of 1000 gives roughly ±3% whether the population is 100,000 or 300 million. A finite-population correction matters only when your sample exceeds about 10% of the population.
Related Solvers
Related Guides
Try AI-Math for Free
Get step-by-step solutions to any math problem. Upload a photo or type your question.
Start Solving