Margin of Error Calculator
Find the margin of error and the confidence interval for a sample mean or proportion at a 90%, 95%, or 99% confidence level.
Parameter type
Confidence level
Critical value z* = 1.96
- 1
√n
√100 = 10 - 2
Standard error σ / √n
15 ÷ 10 = 1.5 - 3
Margin of error = z* × SE
1.96 × 1.5 = 2.9400
How does this calculator work?
The margin of error is the half-width of a confidence interval. For a mean it equals z*·σ/√n and for a proportion z*·√(p̂(1−p̂)/n), where z* is 1.645, 1.96, or 2.576 for 90%, 95%, or 99% confidence. The interval is your estimate plus or minus this margin.
Formula
How this is calculated
Select whether you are estimating a population mean or a population proportion, then pick a confidence level. Each confidence level maps to a critical z-value (z*): 90% → 1.645, 95% → 1.96, and 99% → 2.576. These come from the standard normal distribution and represent how many standard errors wide the interval must be.
For a mean, the standard error is σ/√n, so the margin of error is ME = z*·σ/√n, where σ is the population standard deviation and n is the sample size. For a proportion, the standard error is √(p̂(1−p̂)/n), giving ME = z*·√(p̂(1−p̂)/n), where p̂ is the sample proportion (between 0 and 1). The confidence interval is the point estimate ± ME — that is, x̄ ± ME for a mean or p̂ ± ME for a proportion.
This uses the normal (z) approximation, which assumes a reasonably large sample so the sampling distribution is approximately normal; for proportions the rule of thumb is that np̂ and n(1−p̂) should both exceed about 5–10. The margin of error shrinks with √n, so quadrupling the sample size halves the margin. Edge cases: n must be at least 1 (n ≤ 0 returns no result) and p̂ must lie between 0 and 1.
Frequently asked questions
For a 90% confidence level use z* = 1.645, for 95% use 1.96, and for 99% use 2.576. Higher confidence requires a larger z*, which widens the interval.
Increase the sample size (the margin scales with 1/√n) or accept a lower confidence level. Reducing variability (σ) also lowers the margin for a mean.
It uses the normal approximation, which is best for larger samples. For small samples or unknown σ, a t-based interval is more appropriate.
Also known as
TG we-Calculate Editorial Team. (2026). Margin of Error Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/margin-of-error-calculator
TG we-Calculate Editorial Team. "Margin of Error Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/margin-of-error-calculator.
TG we-Calculate Editorial Team, "Margin of Error Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/margin-of-error-calculator
@misc{wecalculate_margin_of_error_calculator, title = {Margin of Error Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/margin-of-error-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
