Margin of Error Calculator

The margin of error is the “plus or minus” that quantifies sampling uncertainty. For a proportion of 50% from a sample of 1,000 at 95% confidence, the margin of error is ±3.10 percentage points, giving an interval of 46.90% to 53.10%.

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

What Is the Margin of Error?

The margin of error tells you how far a survey or sample result is likely to be from the true value for the whole population. When a poll says “52% support, with a margin of error of ±3 points”, it means the real level of support is probably between 49% and 55%.

It is half the width of a confidence interval, and it shrinks as the sample gets larger. It reflects only random sampling error. It cannot capture problems like biased samples, leading questions or people who refuse to respond.

How the Margin of Error Changes with Sample Size

For a proportion near 50% at 95% confidence:

Sample size nMargin of error
100±9.80 points
400±4.90 points
1,000±3.10 points
2,500±1.96 points
10,000±0.98 points

Notice how slowly the margin falls. Going from 1,000 to 10,000 respondents, ten times the work, only cuts the margin by about two thirds.

Margin of Error Formulas

Proportion: ME = z* × √[ p̂ (1 − p̂) ÷ n ] Mean: ME = t* × ( s ÷ √n )
  • z* is the critical value from the normal distribution for your confidence level (1.96 for 95%).
  • t* is the critical value from the t-distribution with n − 1 degrees of freedom, used for means.
  • p̂ is the sample proportion as a decimal.
  • s is the sample standard deviation and n is the sample size.
  • The square-root term is the standard error.

The margin of error is largest when p̂ = 0.5 and smaller for proportions near 0 or 1.

Worked Example: A Poll of 1,000 People

In a poll of 1,000 people, 50% support a proposal. Find the margin of error at 95% confidence.

  1. Standard error: √(0.5 × 0.5 ÷ 1000) = 0.015811, or 1.5811 percentage points.
  2. Critical value: z* = 1.96.
  3. Margin of error: 1.96 × 1.5811 = 3.10 percentage points.
  4. Interval: 50% ± 3.10 = 46.90% to 53.10%.

When the Proportion Is Far from 50%

If only 10% of respondents say yes, the standard error is √(0.1 × 0.9 ÷ 1000) = 0.9487 points and the margin is 1.96 × 0.9487 = ±1.86 points, much smaller than at 50%.

Margin of Error for a Mean

For a mean with s = 10 and n = 25, the standard error is 2, the t critical value (24 df) is 2.0639, and the margin of error is 4.13. That matches the interval in our confidence interval calculator.

How to Use This Margin of Error Calculator

  1. Choose the estimate type: proportion or mean.
  2. For a proportion, enter the percentage in the second box. For a mean, enter the standard deviation.
  3. Enter the sample size n and the confidence level.
  4. Read the margin of error, the confidence interval, the critical value and the standard error.

Planning a survey? Use the sample size calculator to work backwards from the margin you want.

Real-World Uses of the Margin of Error

  • Political and opinion polls: every published poll should report one.
  • Customer and employee surveys: judging whether a change in satisfaction is real or just noise.
  • Clinical and scientific studies: reporting the precision of an estimate such as an average blood pressure.
  • A/B testing: understanding how uncertain a conversion rate is before choosing a winner.
  • Quality sampling: reporting an estimated defect rate with its uncertainty.

Reading a Poll Lead

The margin of error applies to each candidate’s share, not to the gap between them. If Candidate A leads Candidate B by 4 points with ±3 on each, the uncertainty on the lead is nearly double, about ±6, so the race may be a toss-up. Many newsrooms apply this rule before calling a lead “real”.

Weighting and Design Effects

Real surveys often adjust results to match the population by age, gender or region. Weighting increases the effective margin of error beyond the simple formula, so published margins in professional polls are usually a little larger than the textbook value.

What Are the Most Common Mistakes With the Margin of Error Calculator?

  • Assuming it covers all error. It captures random sampling error only, not bias or measurement problems.
  • Comparing two results with overlapping margins. The margin on a difference is larger than on either number, so interpret differences with a proper test.
  • Using percentage points as percent. A margin of ±3 points on 50% is not ±3%.
  • Applying it to subgroups. A subgroup of 100 people has a margin of about ±10, far wider than the overall poll’s.
  • Using z for small-sample means. Use t when estimating a mean with an unknown standard deviation.
  • Expecting a hard boundary. The true value can fall outside the interval, and does so about 5% of the time at 95% confidence.

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is a good margin of error?

It depends on the stakes. Polls and surveys often aim for ±3% to ±5%. A smaller margin needs a much larger sample, so the best choice balances precision against cost.

How do you calculate the margin of error?

For a proportion, multiply the critical value by the standard error √[p̂(1 − p̂) ÷ n]. For a mean, multiply the t critical value by s ÷ √n.

How does sample size affect the margin of error?

The margin of error falls in proportion to 1 ÷ √n. Quadrupling the sample size halves the margin of error.

What does a margin of error of 3% mean?

It means the true population value is likely within 3 percentage points of the sample result, at the stated confidence level, usually 95%.

Why is the margin of error biggest at 50%?

The standard error depends on p̂ × (1 − p̂), which is largest at 0.5. Results near 0% or 100% are inherently less uncertain.

What is the difference between margin of error and standard error?

The standard error measures the typical variation of the estimate. The margin of error multiplies it by a critical value to set the width of a confidence interval.