Margin of Error (Proportion)

Approximate MOE from n, proportion estimate, and z (simple random sample).

CalcHub

Margin of Error (Proportion)

Full page
Live

Preview

1000

Mirrors whichever field is focused below.

Add to workspace

Run up to six calculators on one board. You can try without an account—your board stays on this device until you sign in to save it.

Add to workspace

No account needed—build a local board (one workspace on this device). Sign in later to save it to your account.

Open My workspace →

The margin of error for a proportion estimates how far a sample proportion may be from the true population proportion, assuming a simple random sample. It is a compact way to express sampling uncertainty in surveys, polls, and quality checks. This calculator uses the standard approximation based on sample size, estimated proportion, and z-score, so you can translate raw survey results into a more defensible precision statement.

Because the result depends on both n and p, the same confidence level can produce different margins of error for different samples. The approximation is most reliable when the sample is reasonably large and the sampling design is close to random. If the sample is clustered, weighted, or otherwise non-random, the true uncertainty may be larger than this formula suggests.

How This Calculator Works

This calculator takes three inputs: sample size n, sample proportion p expressed from 0 to 1, and a z-score for the desired confidence level. It first computes the standard error of a proportion, then multiplies that value by the z-score to estimate the margin of error.

The output is typically interpreted as a plus-or-minus range around the observed proportion. For example, a result of 0.031 means a margin of error of about 3.1 percentage points, not 3.1 percent of the proportion value.

Formula

Margin of Error: MOE ≈ z × √(p(1 − p) ÷ n)

Related interval bounds are:

  • Lower bound: p − MOE
  • Upper bound: p + MOE

Variable definitions:

SymbolMeaningNotes
nSample sizeMust be a positive count
pSample proportionDecimal between 0 and 1
zZ-scoreChosen from the confidence level
MOEMargin of errorOften reported in percentage points

Example Calculation

  1. Start with n = 1000, p = 0.5, and z = 1.96.
  2. Compute the standard error: SE = √(0.5 × 0.5 ÷ 1000)0.0158.
  3. Multiply by the z-score: MOE = 1.96 × 0.01580.0310.
  4. Convert to percentage points: 0.0310 = 3.1 percentage points.
  5. Interpret the estimate as roughly ±3.1 points around the sample proportion.

Where This Calculator Is Commonly Used

  • Public opinion polling and election surveys
  • Market research and product feedback studies
  • Customer satisfaction surveys
  • Health and epidemiology surveys
  • Academic research using binary outcomes
  • Quality control checks involving defect rates or pass rates

How to Interpret the Results

A smaller margin of error means the sample proportion is estimated more precisely. In practice, MOE shrinks as sample size grows and is largest near p = 0.5, where variability is highest. Proportions closer to 0 or 1 usually have smaller margins of error for the same sample size and z-score.

Use the result as an uncertainty band, not as a guarantee that the true population proportion lies within the interval. The approximation assumes a simple random sample and does not automatically correct for design effects, nonresponse bias, weighting, or measurement error.

When the sample is small or the proportion is extreme, treat the approximation cautiously. For high-stakes work, consider verifying assumptions or using a more specialized interval method.

Frequently Asked Questions

What does a margin of error of 3.1 percentage points mean?

It means the observed sample proportion may differ from the true population proportion by about 3.1 points in either direction, given the chosen z-score and the assumptions of the formula. If the sample proportion is 50%, the approximate interval would be about 46.9% to 53.1%.

Why does the calculator use p from 0 to 1 instead of a percent?

The formula is written with proportions as decimals because that is the standard statistical form. So 50% should be entered as 0.5, not 50. If you want the result in percentage points, convert the decimal MOE by multiplying by 100.

Why is the margin of error largest near p = 0.5?

The term p(1−p) reaches its maximum at 0.5. That means the variability of a proportion is highest around 50%, so the standard error and the resulting margin of error are also largest there for a fixed sample size and z-score.

How does sample size affect the margin of error?

Larger samples reduce the standard error because n appears in the denominator under the square root. That means the margin of error falls as sample size increases, although the improvement becomes gradually smaller at very large n because of the square-root relationship.

Where does the z-score come from?

The z-score is selected from the confidence level you want to use. Common values include 1.645 for 90%, 1.96 for 95%, and 2.576 for 99%. Higher confidence levels use larger z-scores and therefore produce wider margins of error.

Can I use this for weighted or clustered survey data?

Not directly. This formula assumes a simple random sample. If the survey uses clustering, stratification, weighting, or has a complex design, the true uncertainty may be different. In those cases, a design-adjusted method is usually more appropriate.

Can the interval go below 0% or above 100%?

Yes, the simple approximation can produce bounds outside the logical 0% to 100% range when p is near the extremes. That is one reason this formula should be interpreted carefully, especially for small samples or proportions very close to 0 or 1.

FAQ

  • What does a margin of error of 3.1 percentage points mean?

    It means the observed sample proportion may differ from the true population proportion by about 3.1 points in either direction, given the chosen z-score and the assumptions of the formula. If the sample proportion is 50%, the approximate interval would be about 46.9% to 53.1%.

  • Why does the calculator use p from 0 to 1 instead of a percent?

    The formula is written with proportions as decimals because that is the standard statistical form. So 50% should be entered as 0.5, not 50. If you want the result in percentage points, convert the decimal MOE by multiplying by 100.

  • Why is the margin of error largest near p = 0.5?

    The term p(1−p) reaches its maximum at 0.5. That means the variability of a proportion is highest around 50%, so the standard error and the resulting margin of error are also largest there for a fixed sample size and z-score.

  • How does sample size affect the margin of error?

    Larger samples reduce the standard error because n appears in the denominator under the square root. That means the margin of error falls as sample size increases, although the improvement becomes gradually smaller at very large n because of the square-root relationship.

  • Where does the z-score come from?

    The z-score is selected from the confidence level you want to use. Common values include 1.645 for 90%, 1.96 for 95%, and 2.576 for 99%. Higher confidence levels use larger z-scores and therefore produce wider margins of error.

  • Can I use this for weighted or clustered survey data?

    Not directly. This formula assumes a simple random sample. If the survey uses clustering, stratification, weighting, or has a complex design, the true uncertainty may be different. In those cases, a design-adjusted method is usually more appropriate.

  • Can the interval go below 0% or above 100%?

    Yes, the simple approximation can produce bounds outside the logical 0% to 100% range when p is near the extremes. That is one reason this formula should be interpreted carefully, especially for small samples or proportions very close to 0 or 1.