Margin of Error Calculator
The margin of error says how precise your survey results are. Enter your sample size, confidence level and the proportion you measured, and this calculator shows the range your true result is expected to fall in.
Margin of Error Formula
e = Z × √(p × (1 − p) / n)
When the population size (N) is known, multiply by the finite population correction:
e = Z × √(p × (1 − p) / n) × √((N − n) / (N − 1))
- Z = the z-score for your confidence level: 1.645 for 90%, 1.96 for 95%, 2.576 for 99%
- p = the estimated proportion, as a decimal (50% = 0.5)
- n = the sample size
- N = the population size, if known
Worked Example
You surveyed 385 people at 95% confidence, and 50% picked an option.
- e = 1.96 × √(0.5 × 0.5 / 385) = 1.96 × √0.000649 = 1.96 × 0.02548 = 0.0499.
- Your margin of error is ±4.99%, usually quoted as ±5%.
- So the true figure is expected between 45% and 55%.
Surveying more people tightens it: with 1,067 responses under the same settings, e = 1.96 × √(0.25 / 1,067) = ±3.00%.
How to Use This Calculator
- Pick a confidence level — 95% is the standard for most surveys.
- Enter the proportion you measured, or 50% for the most cautious figure.
- Enter your sample size (n) — the number of people who answered.
- Add the population size if you know it and the sample is a large share of it.
- Click “Calculate Margin of Error” to see your ±% range.
Frequently Asked Questions
What does the margin of error mean?
It is the range around your survey result inside which the true population value is expected to fall. A margin of error of plus or minus 5% on a 50% result means the true value is expected between 45% and 55%.
What does a 95% confidence level mean?
If you repeated the same survey 100 times, about 95 of the results would fall inside the margin of error around the true value. It is a statement about the method, not a guarantee for one single survey.
How can I reduce the margin of error?
Survey more people. The margin of error shrinks with the square root of the sample size, so halving it needs roughly four times as many responses. Plan the sample first with the sample size calculator.
Does the population size matter?
Only when the sample is a large share of the population. If you survey a small fraction of a large population, the population size barely changes the result. Enter it when the sample would be more than about 5% of the population.