AbraCalc

Margin of Error Calculator

Calculate the margin of error for a survey proportion given sample size and confidence level.

Embed this tool on your site

How to use this tool

  1. Enter sample size (n), proportion (p) and z* (confidence level) in the fields above.
  2. Results update instantly as you type โ€” or click Calculate.
  3. Read your margin of error and the full breakdown beneath it.

Calculate margin of error: MOE = z* ร— โˆš(p(1โˆ’p)/n). Commonly reported as ยฑX% in survey results.

Formula

Standard error: SE = โˆš( p ร— (1 โˆ’ p) / n )

Margin of error: MOE = z* ร— SE

As a percentage: MOE% = MOE ร— 100

How it works

This calculator computes the margin of error for a survey proportion, quantifying the uncertainty around a sample estimate at a given confidence level.

It first calculates the standard error of the proportion, then multiplies by the z* critical value. The result assumes simple random sampling and applies best when the sample is large enough for the normal approximation to hold (typically n ร— p โ‰ฅ 5 and n ร— (1 โˆ’ p) โ‰ฅ 5).

Worked example

Worked example

  1. Inputs: sample size n = 1000, proportion p = 0.5, confidence level z* = 1.96 (95%).
  2. Standard error: SE = โˆš(0.5 ร— 0.5 / 1000) = โˆš(0.00025) โ‰ˆ 0.015811.
  3. Margin of error: MOE = 1.96 ร— 0.015811 โ‰ˆ 0.031.
  4. As a percentage: MOE% = 0.031 ร— 100 = 3.1%.

Margin of error = 0.031 (3.1%)

Key terms

Standard error (SE)
The estimated standard deviation of the sampling distribution of a proportion; measures how much the sample proportion is expected to vary from sample to sample.
Margin of error (MOE)
Half the width of a confidence interval; the maximum likely difference between the sample proportion and the true population proportion.
Confidence interval
A range of values โ€” computed as p ยฑ MOE โ€” that is expected to contain the true population proportion with the stated probability.
Z* (critical value)
The standard normal quantile corresponding to the chosen confidence level (1.96 for 95%, 2.576 for 99%).
Normal approximation
The use of the normal distribution to approximate the binomial distribution of a proportion, valid when n is large and p is not too close to 0 or 1.

Frequently asked questions

What is the margin of error?
The margin of error quantifies the uncertainty in a sample proportion estimate. A MOE of ยฑ3% at 95% confidence means the true proportion is within 3 percentage points of the observed proportion 95% of the time.

References & sources