Margin of Error Calculator

Quick answer

The margin of error for a poll is z times the square root of p(1 - p) / n. With 1,000 people, p = 50%, and 95% confidence, it is 1.96 x 0.0158 = plus or minus 3.10 points. So a result of 50% really means somewhere between about 46.9% and 53.1%.

Updated 2026-09-27By Shakeel MuzaffarReviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Margin of Error
Pick proportion for a percentage, such as the share of people who say yes. Pick mean for an average, such as height or test score.
95% is the usual choice for polls and reports.
Number of people or items in your sample. At least 2.
%
Share who gave the answer, 0 to 100. Use 50 if unknown, the most conservative value.
Leave blank for a large population. Fill in to apply the finite population correction.
Margin of error (percentage points)
--
Confidence interval--
Critical value--
Standard error--
FPC factor--
Sample size to halve this MOE--
n x p and n x (1 - p)--

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How to Use the Calculator

  1. Pick proportion for a percentage result, like the share of voters who back a candidate. Pick mean for an average, like the mean wait time in minutes.
  2. Enter the sample size n. For a proportion, enter the result p in percent. Use 50 if you are planning a survey and do not know it yet. For a mean, enter the sample standard deviation s.
  3. Choose a confidence level. Most polls use 95%. If your sample is a big share of a small group, enter the population size N too.
  4. Read the margin of error at the top. The cards show the confidence interval, the critical value, the standard error, and how many people you would need to cut the margin in half.

For example, a poll of 400 people with p = 50% at 95% confidence has a margin of error of plus or minus 4.90 points.

The Margin of Error Formula

The margin of error is a critical value times a standard error. The critical value comes from the confidence level. The standard error measures how much a result bounces around from sample to sample.

For a Proportion

MOE = z x sqrt( p(1 - p) / n )

Here p is written as a decimal, so 50% is 0.5. For n = 1,000 at 95% confidence, the standard error is the square root of 0.25 / 1,000, which is 0.0158. Then 1.96 x 0.0158 = 0.0310, or 3.10 percentage points.

For a Mean

MOE = z x s / sqrt(n), or t x s / sqrt(n) with n - 1 degrees of freedom

With n = 36 and s = 12, the standard error is 12 / 6 = 2. At 95% confidence, z gives 1.96 x 2 = 3.92. The t value for 35 degrees of freedom is 2.030, which gives 4.06. For samples under 30, the t answer is the more accurate one.

Confidence levelz critical value
80%1.282
90%1.645
95%1.960
98%2.326
99%2.576
99.9%3.291

To turn a result into a z-score, try our z-score calculator.

Why p = 50% Is the Worst Case

The only part of the proportion formula that depends on the result is p(1 - p). This product peaks at 50%. As p moves toward 0% or 100%, it shrinks.

p(1 - p) is at most 0.25, reached at p = 0.5
pp(1 - p)MOE at n = 1,000, 95%
10% or 90%0.09+-1.86 points
30% or 70%0.21+-2.84 points
50%0.25+-3.10 points

That is why pollsters report the margin at 50%. It is a safe upper limit for every question in the survey, even before the answers come in.

How Sample Size Drives the Margin of Error

The sample size sits under a square root. So the margin of error falls with the square root of n, not with n itself. This is often called the square-root law.

MOE is proportional to 1 / sqrt(n), so 4 times the sample gives half the MOE
Sample size nMOE at p = 50%, 95%
100+-9.80 points
400+-4.90 points
1,000+-3.10 points
1,500+-2.53 points
2,500+-1.96 points
10,000+-0.98 points

Going from 400 to 1,600 people cuts the margin from 4.90 to 2.45 points. Each extra point of precision costs more people than the last. To plan a survey from a target margin, use our sample size calculator.

The Finite Population Correction

The basic formula assumes the population is huge compared with the sample. When you sample a large share of a small group, there is less left to be uncertain about. The finite population correction (FPC) shrinks the margin to reflect this.

FPC = sqrt( (N - n) / (N - 1) ), and the adjusted MOE is MOE x FPC

Example: you survey 500 of a company's 2,000 staff. The plain margin at p = 50% and 95% is 4.38 points. The FPC is the square root of 1,500 / 1,999, which is 0.866. So the adjusted margin is 4.38 x 0.866 = 3.80 points.

A common rule is to apply the FPC when the sample is more than 5% of the population. For a national poll of 1,000 adults, the factor is about 0.99999, so it changes nothing.

What the Margin of Error Does Not Cover

The margin of error only measures random sampling error. It assumes a true random sample where everyone answers honestly. Real surveys face other problems that it does not include:

  • Non-response bias. The people who answer may differ from those who do not.
  • Coverage bias. Some groups may have no chance of being picked, such as people without internet access in an online poll.
  • Question wording and honesty. How a question is asked, and whether people tell the truth, can shift results.
  • Weighting. Adjusting a sample to match the population adds extra variation, called the design effect.

So treat the margin of error as the smallest likely error, not the full error. For the spread of your raw data itself, see our standard deviation calculator.

How We Calculate

Proportion
MOE = z x sqrt(p(1 - p) / n), shown in percentage points to 2 decimals. The interval is p minus MOE to p plus MOE, clipped to 0% and 100%.
Mean
MOE = z x s / sqrt(n). A t-based MOE with n - 1 degrees of freedom is shown next to it.
Critical values
z = 1.281552, 1.644854, 1.959964, 2.326348, 2.575829, and 3.290527 for 80%, 90%, 95%, 98%, 99%, and 99.9%.
t value
Found by bisection on the t distribution function, which is computed from the regularized incomplete beta function using a Lentz continued fraction.
Population
If N is given, the MOE and standard error are multiplied by sqrt((N - n) / (N - 1)). N must be larger than n.
Halving the MOE
Shown as 4 x n, from the square-root law. It ignores the population correction.
Approximation check
For proportions, a note appears when n x p or n x (1 - p) is under 10, where the normal approximation gets rough.
Last reviewed
2026-09-27.

Frequently Asked Questions

What is a margin of error?

The margin of error is the plus or minus range around a survey result that comes from random sampling. If a poll finds 52% with a margin of error of 3 points, the true share in the whole population is likely between 49% and 55%.

What does plus or minus 3 points at 95% confidence mean?

It means that if the same poll were repeated many times with fresh random samples, about 95 out of 100 of the intervals built this way would contain the true value. It does not promise that this one poll is within 3 points.

Why do calculators use p = 50% by default?

The term p times (1 - p) is largest when p is 50%, so 50% gives the widest margin of error. Pollsters use it when they do not know the answer in advance, because the real margin can only be the same or smaller.

How many people do I need for a 3-point margin of error?

At 95% confidence and p = 50%, you need about 1,068 people from a large population. That comes from n = 1.96 squared times 0.25 divided by 0.03 squared, which is 1,067.1, rounded up.

Does the margin of error apply to the lead between two candidates?

Not directly. The margin of error for the gap between two candidates in the same poll is larger, up to about twice the margin for each candidate alone. A 2-point lead in a poll with a 3-point margin is not a clear lead.

When should I use a t value instead of z?

Use t when you estimate a mean from a sample and do not know the population standard deviation, especially when n is under 30. The t value is larger than z for small samples, so the margin of error is wider. For large samples the two are almost the same.

When do I need the finite population correction?

Use it when your sample is a large share of the whole population, usually more than 5%. For example, surveying 500 of 2,000 employees cuts the margin of error by about 13%. For national polls the correction is so close to 1 that it can be ignored.

Sources

Related Guides

Related Calculators

Looking for more math tools?

Explore all math calculators

This calculator gives the margin of sampling error for a simple random sample using the normal approximation. It does not include non-response, coverage, or weighting effects. Results are rounded for display. Spotted an error? Let us know.

Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.