Margin of Error Calculator
Enter how many people you surveyed, the share who gave the answer you care about, and a confidence level to get the plus-or-minus margin around that result. The tool applies MOE = z times the square root of p(1-p)/n, with z fixed at 1.959964 for 95 percent confidence. Add a total population size and it also applies the finite-population correction, which trims the margin when your sample covers a large slice of a small group.
How to calculate the margin of error
- Enter the number of respondents in the Sample size (n) box.
- Set Proportion (0 to 1) to the share who chose the response of interest, or leave 0.5 for the widest, most conservative estimate.
- Choose 90%, 95% or 99% from the Confidence level menu.
- Optionally type a Population size to switch on the finite-population correction; leave it blank when the population is large or unknown.
- Read the Margin of error card (shown as a percent and as a proportion), the z critical value and the confidence interval, then use Copy result.
Examples
A typical national poll
n = 1000, p = 0.5, 95% confidence
Margin of error = +/- 3.1% (z = 1.9600, interval 46.90% to 53.10%)
A 99% reading on a smaller sample
n = 500, p = 0.6, 99% confidence
Margin of error = +/- 5.64% (z = 2.5758, interval 54.36% to 65.64%)
Same sample with a finite-population correction
n = 500, p = 0.5, 95% confidence, population = 2000
Margin of error = +/- 3.8%, down from 4.38% without the correction
Frequently asked questions
What is the margin of error?
It is the half-width of the confidence interval around a survey result. A result of 50% with a 3% margin means the true value likely lies between 47% and 53%.
What z-values does the tool use?
It uses the two-sided critical values of the standard normal distribution: 1.644854 for 90% confidence, 1.959964 for 95% and 2.575829 for 99%. The chosen z is shown on its own result card, rounded to four places for display.
Why is 0.5 the default proportion?
The product p times (1 minus p) is largest at 0.5, so using 0.5 gives the widest, most conservative margin when the true proportion is unknown. Any proportion nearer 0 or 1 produces a smaller margin.
How does the confidence level change the margin?
Higher confidence needs a larger z-value, so the margin grows. 99% confidence gives a wider margin than 95%, and 95% is wider than 90%, for the same sample and proportion.
When should I use the population correction?
Use it when your sample is a large share of a small, finite population. The finite-population correction multiplies the margin by the square root of (N - n) / (N - 1), which shrinks it, and it has almost no effect once the population is much larger than the sample.
Does a bigger sample always help?
Yes, but with diminishing returns. The margin falls with the square root of the sample size, so halving it needs about four times the respondents. Going from 1,000 to 4,000 respondents only cuts a 95% margin from roughly 3.1% to about 1.5%.
Which formula is this, and when is it reliable?
It is the large-sample normal (Wald) formula for a single proportion. That approximation is dependable when the sample is reasonably large and the proportion is not close to 0 or 1. For very small samples or extreme proportions, an exact or Wilson interval is more trustworthy than this method.
Does it account for weighting or survey design?
No. It assumes simple random sampling. Real polls often weight responses and use clustered or stratified designs, which change the true margin by a design effect this tool does not model, so treat the result as a floor rather than the whole story.
Is my data private?
Yes. The calculation runs in your browser and none of your inputs are sent to a server.
Learn more
- Sample size and margin of error explained
How sample size, the response proportion and confidence level shape a poll's margin of error, and why quadrupling the sample only halves the margin.
Related tools
Confidence Interval Calculator
Calculate a confidence interval for a mean or proportion. Enter your sample stats and confidence level to get the interval, margin of error, and critical value.
Z-Score Calculator
Calculate a z-score from a value, mean, and standard deviation. See the percentile and two-tailed p-value, with a plain-English reading of the result.
Standard Deviation Calculator
Calculate standard deviation and variance online. Paste a list of numbers to get the mean, count, and both sample and population results instantly.
Percentile Calculator
Find the value at any percentile and the percentile rank of a value in your data set. Uses linear interpolation, the spreadsheet standard. Free and private.
Annulus Area Calculator
Calculate the area of an annulus, the ring between two concentric circles, from its outer and inner radius. Returns both circumferences and width too. Free.
Area Calculator
Find the area of a circle, square, rectangle, triangle, trapezoid, parallelogram, ellipse, sector or rhombus. Free and runs in your browser.