Skip to main content
statistics

Margin of Error Calculator

Calculate the margin of error for a survey or study given the confidence level, standard deviation, and sample size. Reports how precisely your sample estimates the population parameter.

Reviewed by Chase FloiedUpdated

This free online margin of error calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

1.645 for 90%, 1.96 for 95%, 2.576 for 99%.

Population or sample standard deviation.

Number of observations.

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Margin of Error Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Margin of Error Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Margin of Error Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Margin of Error Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Margin of Error Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate the margin of error for a survey or study given the confidence level, standard deviation, and sample size. Reports how precisely your sample estimates the population parameter. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Margin of Error Calculator

The margin of error calculator determines the half-width of a confidence interval, telling you how far your sample estimate might be from the true population value. Margin of error is the number you see in news reports when they say a poll has a margin of error of plus or minus 3 percentage points. It depends on three factors: the confidence level (higher confidence means wider margin), the variability of the data (more variable data produces larger margins), and the sample size (larger samples reduce the margin). Understanding margin of error is essential for interpreting survey results, designing experiments, and communicating the precision of statistical estimates to decision-makers.

The Math Behind It

The margin of error E = z* * sigma / sqrt(n) represents the maximum expected difference between the sample statistic and the population parameter at a given confidence level. For proportions, sigma is replaced by sqrt(p*(1-p)), yielding E = z* * sqrt(p*(1-p)/n). The margin of error decreases as 1/sqrt(n), illustrating the law of diminishing returns: doubling the sample size only reduces the margin by about 29%. This relationship is fundamental to experimental design and budget allocation. In polling, the margin of error typically assumes a 95% confidence level and p = 0.5 (worst case), giving E approximately equal to 1/sqrt(n). For a sample of 1000, this yields about 3.1%, explaining the common plus-or-minus-3-points margin in political polls. The margin of error only accounts for sampling error, not systematic biases such as non-response, question wording effects, or selection bias, which can be much larger than the statistical margin.

Formula Reference

Margin of Error

E = z* * sigma / sqrt(n)

Variables: E = margin of error; z* = critical value; sigma = std dev; n = sample size

Worked Examples

Example 1: Political poll

A poll of 1000 voters at 95% confidence. Assume p = 0.5 so sigma = 0.5.

Step 1:E = 1.96 * 0.5 / sqrt(1000).
Step 2:E = 0.98 / 31.62 = 0.0310.

The margin of error is 3.1 percentage points.

Example 2: Product weight measurement

50 packages sampled, sigma = 2 grams, at 95% confidence.

Step 1:E = 1.96 * 2 / sqrt(50).
Step 2:E = 3.92 / 7.071 = 0.554 grams.

The margin of error on the mean weight is 0.55 grams.

Common Mistakes & Tips

  • !Confusing margin of error with standard error. Margin of error = z* times the standard error.
  • !Assuming margin of error accounts for all types of error; it only addresses sampling variability, not bias.
  • !Expecting the margin of error to halve when doubling sample size; it actually decreases by a factor of sqrt(2).

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

Why do polls always seem to have a 3% margin of error?

Because most national polls survey about 1000 people. With n = 1000 and p = 0.5 at 95% confidence, the margin of error is approximately 3.1%.

How do I reduce the margin of error?

Increase the sample size, accept a lower confidence level, or reduce data variability through better measurement or stratification.

Does margin of error guarantee the true value is within the interval?

No. The confidence level means that about 95% (or whatever level you chose) of similarly constructed intervals would contain the true value. Any single interval may or may not.