Margin of Error Calculator
StatisticsCalculate the margin of error for a survey or sample estimate in seconds. Enter confidence level and sample size to get the exact margin instantly.
Reviewed by the thecalcu.com team · Last updated July 28, 2026
Margin of Error
What is a Margin of Error?
The Margin of Error Calculator computes the ± precision range around a sample estimate, based on your chosen confidence level, standard deviation, and sample size. It answers the question: "given my sample, how far off could my estimate realistically be from the true population value?"
Margin of error is the single most-cited (and most-misunderstood) statistic in survey research and polling. This calculator computes it directly from three inputs, showing the exact z-score used and the resulting standard error, so you can verify and explain the number with confidence.
Once you have your margin of error, pair it with your sample mean using the Confidence Interval Calculator to get the full lower and upper bounds of your estimate.
Why Use a Margin of Error Calculator?
Reporting a single number from a sample, average satisfaction score, average spending, poll support percentage, without a margin of error implies false precision. This calculator produces the correct ± value in seconds, using the proper z-score for your confidence level rather than an approximated or rule-of-thumb figure.
It also shows the standard error step explicitly, which helps students and analysts understand why margin of error shrinks with larger samples and grows with higher variability or higher confidence requirements, insight that a black-box calculation wouldn't provide.
Who Should Use This Calculator?
Survey researchers and market research analysts who need to report the correct margin of error alongside every sample-based estimate they publish.
Journalists and communications professionals who need to understand and accurately explain the margin of error behind a poll or study they are reporting on.
Students in statistics or research methods courses learning the relationship between confidence level, sample size, standard deviation, and margin of error.
Business analysts reporting on customer survey results (like Net Promoter Score or satisfaction ratings) who need to communicate the reliability of their estimate to stakeholders.
Quality control professionals evaluating whether a sample-based process measurement is precise enough to support a decision (e.g., whether an average defect rate estimate is tight enough to act on).
What Insights Does This Calculator Give You?
Margin of Error, the headline ± value. Smaller is more precise; report this number alongside any sample-based estimate you publish.
Z-Score Used, shows exactly which confidence-level multiplier was applied, making the calculation transparent and easy to double-check against a standard z-table.
Lower/Upper Adjustment, the same margin of error shown as the negative and positive adjustment values, useful when building a chart or table that shows the ± range directly.
How to use this Margin of Error calculator
Select your confidence level, 90%, 95% (most common in research), or 99%.
Enter your standard deviation, from your sample data, a prior study, or a reasonable estimate of variability.
Enter your sample size, the number of observations you collected or plan to collect.
Read the margin of error, this is the ± precision of your estimate at the chosen confidence level.
Build a full confidence interval, take your sample mean and this margin of error to the Confidence Interval Calculator for the complete lower and upper bounds.
Plan ahead if the margin is too wide, if the resulting margin of error is larger than you need, use the Sample Size Calculator to find out how many more observations would tighten it.
Show formula & methodology ↓Show less ↑
Formula & Methodology
Margin of error: E = z × (σ / √n) Variable definitions: - z, z-score for the chosen confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%) - σ, standard deviation - n, sample size Worked example: A satisfaction survey of 150 customers has a standard deviation of 12 (on a 100-point scale), at 95% confidence. Step 1, Standard error: 12 / √150 = 12 / 12.247 ≈ 0.9798 Step 2, Margin of error: 1.96 × 0.9798 ≈ 1.92 If the sample mean satisfaction score was 78, the result would be reported as 78 ± 1.92, or a confidence interval of approximately [76.08, 79.92]. Assumption: This formula assumes the sampling distribution is approximately normal, which holds for sample sizes of roughly 30 or more, or when the underlying population itself is close to normally distributed.
Frequently Asked Questions