InputTestHub

Margin of Error Calculator

Calculates the margin of error for a survey percentage at any confidence level and sample size, with an optional finite population correction.

Calculators Nothing uploaded No sign-up Free, unlimited
Calculators tool
Optional. Leave at 0 unless you are sampling a large share of a small population.
Enter your figures and press Calculate.
In short The margin of error for a survey percentage is a critical value times the standard error of a proportion: z × √(p(1−p)/n). At the figure every newspaper uses — 1,000 people, a 50/50 split, 95% confidence — it comes to ±3.10 percentage points. Four hundred people gives ±4.90, and two thousand gives ±2.19, which shows the shape of the trade: the margin falls with the square root of the sample, so buying half the margin costs four times the sample. Two things about that number are widely misread. It is largest at 50%, because p(1−p) peaks there, so a poll quoted as "±3 points" is usually quoting the worst case rather than the margin on the specific figure reported. And the margin on the GAP between two candidates is bigger than the margin on either share, so two results that look separated by more than the quoted margin can still be indistinguishable. The more important limitation is not arithmetic at all. This number measures one thing: how much the answer would bounce if you drew another random sample the same way. It does not include people who refuse to answer, a sampling frame that misses part of the population, question wording, or turnout modelling — and in real polling those are usually the larger errors. A margin of error is a lower bound on how wrong a survey can be, never an upper one.

How to use the Margin of Error Calculator

  1. Enter your figures in the input fields.
  2. The result updates as you type, together with the full working.
  3. Check the breakdown table to see exactly how the number was reached.

About the Margin of Error Calculator

The sampling margin of error for a percentage, at any sample size and confidence level.

What people use it for

  • Reading a published poll properly.
  • Reporting a survey result with its uncertainty.
  • Checking whether two survey figures are actually distinguishable.

Details

1,000 people at 95% confidence± 3.10 points
400 people at 95% confidence± 4.90 points
2,000 people at 95% confidence± 2.19 points
The margin is largest ata 50/50 split
Population size matters whenyou sample more than about 5% of it

The maths behind it

This tool uses MoE = z · √(p(1 − p) ÷ n), multiplied by √((N − n) ÷ (N − 1)) when a finite population is given. Every intermediate value is shown on screen, so the result can be checked by hand.

The table shows how the margin falls as the sample grows, which is usually a more useful thing to look at than any single figure.

Where this tool stops

This covers random sampling error only. Non-response, coverage gaps, question wording and weighting decisions are not in it, and in practice they are often larger than the number this page prints.

Frequently asked questions

Why does the population size barely matter?
Because the margin depends on the absolute sample size, not the fraction sampled. A thousand people give the same margin in a country of five million as in one of three hundred million, which is the most counter-intuitive fact in survey work.
Two candidates are 4 points apart with a ±3 margin. Is that a real lead?
Not necessarily. The margin on the difference between two shares is larger than the margin on either one, so a gap needs to clear more than the headline figure before it means anything.
Why is the margin biggest at 50%?
The standard error depends on p(1 − p), which is largest when p is a half. A result of 5% or 95% carries a much smaller sampling margin than a 50/50 split at the same sample size.
Does a bigger margin mean a bad poll?
It means a smaller sample. A small honest poll with a wide margin is far more useful than a large poll drawn from the wrong people, and no arithmetic can rescue the second.
Is the Margin of Error Calculator free?
It is free, with no account, no trial and no daily cap. Every calculators tool on inputtesthub.com works the same way: open the page and use it.
Is what I paste into the Margin of Error Calculator stored?
No. The Margin of Error Calculator runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
What is the equation behind the Margin of Error Calculator?
It uses MoE = z · √(p(1 − p) ÷ n), multiplied by √((N − n) ÷ (N − 1)) when a finite population is given. The full working is printed under the result, so you can follow every step rather than trusting a black box.
What does a typical result look like?
Enter 50%, n = 1000, 95% and the Margin of Error Calculator returns ± 3.10 points.
What problem does the Margin of Error Calculator solve?
The most common reasons people reach for it: reading a published poll properly. Reporting a survey result with its uncertainty. Checking whether two survey figures are actually distinguishable. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
What are the limits of the Margin of Error Calculator?
This covers random sampling error only. Non-response, coverage gaps, question wording and weighting decisions are not in it, and in practice they are often larger than the number this page prints. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the reference figures here?
1,000 people at 95% confidence is ± 3.10 points. 400 people at 95% confidence is ± 4.90 points. 2,000 people at 95% confidence is ± 2.19 points. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related calculators tools

All 382
01

Loan Calculator

Works out the monthly payment, total interest and full repayment schedule for any loan from…

02

EMI Calculator

Calculates your Equated Monthly Instalment with a full principal-versus-interest breakdown and…

03

Mortgage Calculator

Estimates a full monthly housing payment including principal, interest, property tax…

04

Car Loan Calculator

Calculates a car finance payment from the price, deposit, trade-in, interest rate and term…

05

Personal Loan Calculator

Works out instalments and total cost for an unsecured personal loan, including any processing…

09

SIP Calculator

Projects the maturity value of a monthly Systematic Investment Plan, showing invested amount…