Margin of Error Calculator

Enter your sample size and confidence level. Get the margin of error for your survey results, with the range around any percentage.

Completed responses to the question you are reporting.

Confidence level

Leave at 50% for the margin usually quoted for a whole survey.

Only matters when your sample is a large share of the population.

Margin of error

±4.9%

At 95% confidence, a result of 50% is likely between 45.1% and 54.9%.

You have the number. Now ask the question.

Say it in a sentence. SegmentOS writes the survey, and real people answer it.

Free to start. No card needed.

How to use this calculator

How to use this calculator

How to use this calculator

Three inputs, one number:

Sample size

How many completed responses you have. Count only the people who answered the question you are reporting, not everyone you invited.

Confidence level

How sure you want to be that the true value falls inside the range. 95% is the research standard. Use 99% for high-stakes decisions and 90% for exploratory work.

Your result

The percentage you want to check, such as 60% said yes. Leave it at 50% for the widest, safest margin, which is the one usually quoted for a whole survey.

What the number means

What the number means

What the number means

What the number means

The margin of error is how far a survey result can sit from the true value because of sampling alone. A result of 60% with a margin of 5 points means the true value is likely between 55% and 65%.


A few reference points:

The margin of error is how far a survey result can sit from the true value because of sampling alone. A result of 60% with a margin of 5 points means the true value is likely between 55% and 65%.


A few reference points:

Four times the responses cuts the margin in half. Going from 100 to 400 responses takes you from about 10 points to about 5.

Bigger samples, smaller margin

The margin applies to the people you are looking at. If 80 of your 400 respondents are in one segment, that segment’s margin is about 11 points, not 5.

Subgroups have wider margins

The margin of error says nothing about biased questions, the wrong audience or careless answers. A small margin on a bad sample is still a bad number.

It only covers sampling

The formula assumes random sampling, meaning every person in your target population has an equal chance of being selected. Real surveys only approximate that, so treat the margin as a minimum.

The formula assumes random sampling, meaning every person in your target population has an equal chance of being selected. Real surveys only approximate that, so treat the margin as a minimum.

The margin of error formula

Margin of error = z × √(p × (1 − p) ÷ n)


z is the score for your confidence level (1.645 for 90%, 1.96 for 95%, 2.576 for 99%), p is your result as a decimal and n is the sample size. Worked example at 95% with 400 responses and a result of 50%: 1.96 × √(0.5 × 0.5 ÷ 400) = 0.049, or 4.9 points.


For a small population of N people, multiply by √((N − n) ÷ (N − 1)). With 400 responses from a population of 2,000, the 4.9 points become 4.4.

Margin of error by sample size

For a result of 50% and a large population.

Sample size90% confidence95% confidence99% confidence
100±8.2±9.8±12.9
200±5.8±6.9±9.1
400±4.1±4.9±6.4
600±3.4±4.0±5.3
1,000±2.6±3.1±4.1
2,000±1.8±2.2±2.9

Common questions

How do you calculate margin of error?

Multiply the z-score for your confidence level by the square root of p × (1 − p) ÷ n, where p is your result as a decimal and n is the sample size. At 95% confidence with 400 responses and a result of 50%, that is 1.96 × 0.025, or 4.9 points.

What is a good margin of error for a survey?

Plus or minus 5 points at 95% confidence is the common standard, and it takes about 385 responses. Plus or minus 3 points is used when a decision is expensive to get wrong, and it takes about 1,068.

Why use 50% if my result is different?

A result of 50% gives the widest margin, so it is the safe figure to quote for a whole survey. Results closer to 0% or 100% have smaller margins. Enter your actual percentage to see the margin for one specific result.

Does population size change the margin of error?

Only when your sample is a large share of the population. If you surveyed 400 of 2,000 people, the margin shrinks from 4.9 to 4.4 points. For a population in the tens of thousands or more, it makes almost no difference.

What is the difference between margin of error and confidence interval?

The margin of error is the plus-or-minus figure. The confidence interval is the range you get when you apply it: a result of 60% with a margin of 5 points has a confidence interval of 55% to 65%.

How do I get a smaller margin of error?

Collect more responses. The margin falls with the square root of the sample size, so you need four times the responses to halve it. Use the sample size calculator to find how many you need for a target margin.