TL;DR: Sample size and margin of error are two sides of one trade-off: a bigger sample gives a smaller margin of error, but the gain follows a square-root rule — you must quadruple the sample to halve the error. For ±3% at 95% confidence you need about 1,068 responses. Population size barely matters once it passes a few thousand. Work out your own numbers with the Sample Size Calculator and the Margin of Error Calculator.
Two numbers decide how much you can trust a survey: how many people answered, and how far the result could be from the truth. The first is the sample size; the second is the margin of error. They are not independent choices — they are the same decision seen from two sides. Pick a sample size and the margin of error follows. Pick a margin of error and the sample size follows. Understanding how they move together is the difference between planning a survey well and either overspending on interviews you do not need or trusting a result that is shakier than it looks.
This guide explains the relationship between the two, the formula that connects them, and the practical trade-offs — diminishing returns, the surprisingly small role of population size, and the hidden cost of a higher confidence level. The companion guides cover each side in depth: what Slovin's formula is and margin of error explained.
What is the relationship between sample size and margin of error?
The relationship is simple to state and easy to get wrong in practice: as the sample size grows, the margin of error shrinks — but not in proportion. Double the sample and the margin of error falls by only about 29%, because it shrinks with the square root of the sample size. Quadruple the sample and it halves. To cut it to a quarter, you need sixteen times the sample.
That square-root pattern shapes every survey budget. The first few hundred responses buy a lot of precision: going from 100 to 400 respondents cuts the margin of error from about ±9.8% to about ±4.9% at 95% confidence. The next few hundred buy less, and after about 1,000 responses each extra interview buys very little. A poll of 1,000 people has a margin of error of about ±3.1%; a poll of 4,000 has about ±1.5% — four times the cost for a gain of 1.6 points. This is why serious polls cluster around 1,000 interviews: it is the point where the curve bends and extra precision stops being worth the money.
What formula connects sample size and margin of error?
For a survey result expressed as a proportion, the two are connected by one formula. Start from the margin of error formula and solve it for n:
n = z² × p × (1 − p) / e²
Here z is the z-score for the confidence level (1.96 for 95%), p is the expected proportion as a decimal, and e is the margin of error as a decimal. When you have no prior guess about p, use 0.5: it makes p × (1 − p) as large as it can be (0.25), which gives the largest — safest — sample size. That is the cautious choice, and it is what calculators use by default.
A worked example makes it concrete. Suppose you want a margin of error of ±3% (e = 0.03) at 95% confidence (z = 1.96), with no prior guess about the result (p = 0.5). First square the z-score: 1.96² = 3.8416. Multiply by p × (1 − p) = 0.25 to get 0.9604. Then divide by e² = 0.0009: 0.9604 / 0.0009 = 1,067.1, which rounds up to 1,068 responses. Always round up — 1,067 would be just short of the sample the formula calls for. Our sample size calculator runs the same calculation instantly for any combination of confidence level, margin of error and expected proportion.
How much sample do you need for each margin of error?
The table below shows the sample size needed at 95% confidence for the margins of error people most often aim for, assuming a 50% proportion and a large population. Read it as a price list: each extra point of precision has a cost, and the cost accelerates.
| Margin of error you want | Sample size needed (95% confidence) |
|---|---|
| ±10% | 97 |
| ±5% | 385 |
| ±3% | 1,068 |
| ±2% | 2,401 |
| ±1% | 9,604 |
Two patterns stand out. First, halving the margin of error roughly quadruples the sample: from 385 at 5% to 1,068 at 3% is not quite a quadrupling because 3% is more than half of 5%, but the shape is clear — ±1% needs 9,604 responses, twenty-five times the 385 needed for ±5%. Second, most practical surveys live in the ±3% to ±5% band, needing a few hundred to about a thousand responses. Aiming for ±1% is rarely worth it unless the decision riding on the result is worth ten times the fieldwork. When the population is known and small, Slovin's formula gives a quicker answer to the same question — for a population of 1,000 at 5%, it returns 286, close to the 385 above, because the small population needs fewer responses.
Does a bigger population need a bigger sample?
Surprisingly little. This is the most counter-intuitive part of sampling: once the population passes a few thousand, the sample size barely moves. The table below uses the standard formula at 95% confidence with a 5% margin of error, adjusted with the finite population correction for small populations.
| Population size | Sample size needed (95% confidence, ±5%) |
|---|---|
| 500 | 218 |
| 1,000 | 279 |
| 2,000 | 323 |
| 10,000 | 371 |
| 100,000+ | 384 |
A population of 500 needs 218 responses — nearly half the group — because with so few people, each missing person matters. But a population of 100,000 needs 384, barely more than the 371 needed for 10,000. The correction that produces this pattern is the finite population correction: the full sample size is divided by 1 + (n − 1) / N, where N is the population. When N is huge, that divisor is close to 1 and nothing changes; when N is small, it shrinks the required sample. The practical lesson is that you should not scale your survey budget with the size of the population — a national poll and a city poll need similar numbers of interviews if they want the same margin of error.
What does the confidence level cost?
The confidence level is the hidden third factor in the trade-off. Everything above assumed 95% confidence, the usual default. Raise it to 99% and the sample size grows by about 73%, because the z-score rises from 1.96 to 2.576 and the sample grows with the square of the z-score (2.576² / 1.96² ≈ 1.73). The ±3% survey that needed 1,068 responses at 95% needs about 1,848 at 99%. Lower the level to 90% and the sample falls to about 752, since the z-score drops to 1.645.
There is no free lunch here either: a higher confidence level buys a stronger statement — "we are 99% sure the truth is in this interval" — but the interval is wider unless you pay for more responses. Most surveys settle on 95% because it balances certainty against cost. If your result will drive a costly decision, 99% may be worth the extra interviews; if you are running a quick pulse survey, 90% is a legitimate choice, provided you say so when you report the result.
How do you choose the right balance?
Choosing well means working backwards from the decision the survey supports. First, decide how much error the decision can tolerate: a product team choosing between two designs may be fine with ±5%, while an election poll needs ±3% or better. Second, pick the confidence level — 95% unless there is a reason to move. Third, work out the sample size from the formula, and check it against the budget: if 1,068 interviews cost too much, accept ±5% and 385 interviews rather than running 1,068 interviews badly. A smaller, carefully random sample beats a larger, sloppy one every time — the margin of error only measures random error, and a biased sample of any size is still biased.
Finally, remember that the margin of error describes the survey as a whole, not every subgroup in it. A poll of 1,000 people has a ±3.1% margin of error overall, but a subgroup of 100 people inside it has a margin of error near ±10%. If you need precise results for subgroups — by age, region or customer type — plan the sample size for the smallest subgroup that matters, not for the total. That is where most surveys quietly go wrong: the headline number is solid, and the breakdowns everyone quotes are not.
Frequently Asked Questions
How does sample size affect margin of error?
Margin of error shrinks with the square root of the sample size. Quadrupling the sample halves the margin of error: 100 responses give about plus or minus 9.8%, 400 give about plus or minus 4.9%, and 1,000 give about plus or minus 3.1% at 95% confidence.
What sample size do I need for a 3% margin of error?
About 1,068 responses at 95% confidence, assuming a 50% proportion. The formula is n = (1.96 squared x 0.25) / 0.03 squared = 0.9604 / 0.0009 = 1,067.1, rounded up to 1,068.
Does a bigger population need a bigger sample?
Barely. Once the population passes a few thousand, the sample size barely changes: for a 5% margin of error at 95% confidence you need about 279 people from a population of 1,000, 323 from 2,000, and 385 from a very large population. Small populations are the exception.
Is a bigger sample always better?
No. After about 1,000 responses the gains become tiny while the cost keeps rising. Going from 400 to 1,600 responses cuts the margin of error from about 4.9% to about 2.5%, but going from 1,600 to 6,400 only cuts it from 2.5% to about 1.2%. Spend the budget on a representative sample, not just a bigger one.
What role does the confidence level play?
A higher confidence level needs a larger sample for the same margin of error. Moving from 95% to 99% confidence needs about 73% more responses, because the z-score rises from 1.96 to 2.576 and the sample size grows with the square of the z-score.