Sample Size Calculator (Surveys & Proportions)
- For a proportion, the starting formula is n = z² × p × (1 − p) ÷ e². With z = 1.96 for 95% confidence, p = 0.50 and e = 5.0%, that gives n = 384.16.
- No population size was given, so no finite population correction is applied and n stays 384.16.
- Sample sizes always round up — rounding down would undershoot the target precision — so you need at least 385 responses.
- Using p = 50% is the conservative default: it maximises p × (1 − p), so the sample is large enough whatever the true proportion turns out to be.
This sample size calculator tells you how many completed responses you need to estimate a proportion from a survey. You enter your confidence level, margin of error, and expected proportion, and it returns the required n. For estimating a proportion, the required sample is n = z^2 x p x (1 - p) / e^2, where z matches the confidence level, p is the expected proportion, and e is the margin of error as a decimal. The z values it uses are 1.645 for 90% confidence, 1.96 for 95% confidence, and 2.576 for 99% confidence. The calculator always rounds up, because rounding down undershoots the promised precision.
The formula is the accepted standard because it directly links confidence and precision to sample size. Using p = 50% is the conservative default because p x (1 - p) is largest there, so the sample suffices whatever the true proportion is. The finite population correction, n / (1 + (n - 1) / N), matters when the sample would be a noticeable share of the whole population. This page shows the formula, step-by-step workings, worked examples, and sources. For instance, 95% confidence with a 5% margin and p = 50% gives n = 3.8416 x 0.25 / 0.0025 = 384.16, rounded up to 385; the same survey at a 3% margin gives 1,067.11, rounded up to 1,068, showing that precision costs with the square of the margin. A 99% confidence, 5% margin survey against a population of 1,000 gives a raw 663.58, corrected to 399.14, rounded up to 400. The formula assumes a simple random sample; clustered or stratified designs need a design-effect adjustment, and expected non-response means inviting more people than n.
Worked examples
The textbook poll
Primary result: 385 — 95% confidence, ±5% margin, worst-case proportion: the number behind most national surveys. (95% (z = 1.960) · 5 % · 50 % · 0)
| Required sample size | 385 |
| Unrounded result | 384.16 responses |
| Confidence level | 95% (z = 1.96) |
Tightening the margin
Primary result: 1,068 — cutting the margin from ±5% to ±3% nearly triples the required sample, because precision costs with the square. (95% (z = 1.960) · 3 % · 50 % · 0)
| Required sample size | 1,068 |
| Unrounded result | 1,067.11 responses |
| Confidence level | 95% (z = 1.96) |
A small population
Primary result: 400 — at 99% confidence against a population of only 1,000, the finite population correction pulls the raw 664 down to 400. (99% (z = 2.576) · 5 % · 50 % · 1000)
| Required sample size | 400 |
| Unrounded result | 399.13 responses |
| Confidence level | 99% (z = 2.576) |
The sample size formula
For estimating a proportion, the required sample is n = z² × p × (1 − p) / e², where z matches the confidence level, p is the expected proportion, and e is the margin of error as a decimal. The z value sets how sure you want to be that the true proportion falls inside your interval, p captures your best guess of the survey outcome, and e is the error you can tolerate on either side of your estimate. Because the formula is built for a simple random sample, clustered or stratified designs need a design-effect adjustment, and expected non-response means inviting more people than n.
A worked example shows the sample size calculator in action. At 95% confidence, a 5% margin of error, and p = 50%, the result is n = 3.8416 × 0.25 / 0.0025 = 384.16, rounded up to 385. Tighten the margin to 3% and the same survey gives 1,067.11, rounded up to 1,068 — precision costs with the square of the margin, so cutting the error from 5% to 3% nearly triples the required sample. At 99% confidence and a 5% margin against a population of 1,000, the raw result is 663.58, corrected by the finite population correction to 399.14, rounded up to 400.
The finite population correction, n / (1 + (n − 1) / N), matters when the sample would be a noticeable share of the whole population. Without it, a 99%-confidence, 5%-margin survey of a 1,000-person group would call for 664 respondents — more than half the group — but the correction brings the true requirement down to 400. Using p = 50% is the conservative default because p × (1 − p) is largest there, so the sample suffices whatever the true proportion is. Always round up: rounding down undershoots the promised precision.
| Confidence level | z value |
|---|---|
| 90% | 1.645 |
| 95% | 1.96 |
| 99% | 2.576 |
The worked examples
A sample size calculator applies the formula n = z^2 x p x (1 - p) / e^2, where z matches the confidence level, p is the expected proportion, and e is the margin of error expressed as a decimal. Three worked examples show how the inputs drive the output and why precision carries a steep price.
Start with 95% confidence, a 5% margin of error, and p = 50%. The z value for 95% confidence is 1.96, so z^2 = 3.8416. Because p = 50% (0.50), p x (1 - p) = 0.50 x 0.50 = 0.25. The margin of error e = 0.05, so e^2 = 0.0025. Plugging in: n = 3.8416 x 0.25 / 0.0025 = 384.16. Always round up, because rounding down would undershoot the promised precision, so the required sample is 385. Using p = 50% is the conservative default because p x (1 - p) is largest there, so the sample suffices whatever the true proportion turns out to be.
Run the same survey at a 3% margin of error instead of 5%. Everything else stays the same: z^2 = 3.8416 and p x (1 - p) = 0.25. But e drops to 0.03, so e^2 = 0.0009. Now n = 3.8416 x 0.25 / 0.0009 = 1,067.11, rounded up to 1,068. Notice the cost: the margin of error fell from 5% to 3%, a modest tightening, but the required sample jumped from 385 to 1,068 — nearly triple. This is the square-law cost of precision. Because e appears squared in the denominator, halving the margin does not double the sample; it quadruples it. Cutting the margin from 5% to 2.5% would push the requirement toward 1,537, and a 1% margin would demand over 9,600 respondents. Each step toward tighter precision costs more than the last.
The third example adds a finite population correction. Suppose you need 99% confidence and a 5% margin of error, but the population is only 1,000. The z value for 99% confidence is 2.576, so z^2 = 6.635776. With p = 0.50, p x (1 - p) = 0.25, and e^2 = 0.0025. The raw sample size is n = 6.635776 x 0.25 / 0.0025 = 663.58. But 663 would be over 66% of a 1,000-person population, so the finite population correction applies: n / (1 + (n - 1) / N), where N is the population size. Plugging in: 663.58 / (1 + 662.58 / 1,000) = 663.58 / 1.66258 = 399.14, rounded up to 400. The correction matters whenever the sample would be a noticeable share of the whole population.
These formulas assume a simple random sample. Clustered or stratified designs need a design-effect adjustment, and expected non-response means you must invite more people than n to reach the target.
The finite population correction
The standard formula for estimating a proportion, n = z^2 x p x (1 - p) / e^2, pretends the population is effectively infinite. That assumption is harmless when your sample is a tiny fraction of the people you care about. But when the sample would be a noticeable share of the whole population, the finite population correction, n / (1 + (n - 1) / N), matters and shrinks the required n. Here, N is the total population, and the correction pulls the raw sample size down because sampling a large slice of a small group gives you more certainty per respondent than sampling the same number from an endless pool.
A concrete example shows the correction at work. Take a survey at 99% confidence and a 5% margin against a population of 1,000. The raw formula gives 663.58, which you would normally round up to 664. Applying the finite population correction yields 399.14, rounded up to 400. That is a dramatic reduction, and it makes sense: once you have surveyed 400 out of 1,000 people, you have heard from 40% of the population, so the remaining uncertainty is far smaller than the uncorrected formula implies. Any sample size calculator worth using will apply this correction automatically when you supply a population size.
Here is the counterintuitive truth that surprises most researchers: huge populations barely change n. The correction only bites when the sample is a noticeable share of the whole. For a 95% confidence, 5% margin survey with p = 50%, the raw n is 384.16, rounded up to 385. Against a population of 1 million, the corrected n drops only to about 385, essentially unchanged. Even against a population of 10,000, the correction trims the requirement only modestly. The sample size calculator asks for your population size not because large populations demand large samples, but because small populations sometimes demand smaller ones.
The correction also interacts with precision in a way worth noting. Tightening the margin of error is expensive because precision costs with the square of the margin. The same survey at a 3% margin gives 1,067.11, rounded up to 1,068, nearly three times the 385 needed at a 5% margin. When the population is small, the finite population correction softens that cost, but the underlying relationship still holds. Using p = 50% remains the conservative default, because p x (1 - p) is largest there, so the sample suffices whatever the true proportion turns out to be.
- Always round up: rounding down undershoots the promised precision.
- The formula assumes a simple random sample; clustered or stratified designs need a design-effect adjustment, and expected non-response means inviting more people than n.
- z values: 90% confidence 1.645, 95% confidence 1.96, 99% confidence 2.576.
Assumptions: random samples and real surveys
The formula behind this sample size calculator is n = z^2 x p x (1 - p) / e^2, where z matches the confidence level, p is the expected proportion, and e is the margin of error expressed as a decimal. That formula assumes a simple random sample, meaning every member of the population has an equal chance of being selected and the selections are independent. Real surveys rarely meet that standard exactly. If you draw respondents in clusters, such as households on the same block, or use stratified designs that intentionally over- or under-sample certain groups, the effective sample size changes. Statisticians handle this with a design-effect adjustment, a multiplier that inflates the required n to account for the loss of efficiency. A design effect of 2, for instance, means you need twice as many respondents as the raw formula suggests.
Non-response is the other gap between theory and practice. The formula tells you how many completed responses you need, not how many people you should invite. If you expect a 25% response rate, you must reach four times as many people as the target n to end up with enough usable data. Always round the final figure up, never down. Rounding down undershoots the promised precision, leaving you with a slightly wider margin of error than you intended.
The choice of p also matters. Setting p at 50% is the conservative default because p x (1 - p) reaches its maximum value there, so the resulting sample suffices whatever the true proportion turns out to be. If you have strong prior evidence that the proportion sits near 10% or 90%, plugging in that value shrinks the required n, but the estimate becomes less robust if the real proportion deviates from your assumption.
One last nuance involves population size. The finite population correction, n / (1 + (n - 1) / N), matters when the sample would be a noticeable share of the whole population. Surveying 385 people from a city of millions barely changes the result, but surveying 385 from a workforce of 1,000 meaningfully reduces the required sample. In that scenario, 99% confidence and a 5% margin against a population of 1,000 gives a raw 663.58, which the correction brings down to 399.14, rounded up to 400. Without the correction, you would field a larger survey than necessary.
FAQs
How many responses does my survey need?
For 95% confidence and a ±5% margin at the worst-case proportion, you need 385 responses. This is the standard benchmark used across survey research. However, your ideal sample size depends on your specific confidence level, margin of error, and estimated proportion. Use the calculator to adjust these settings and find the exact number of responses your survey requires.
Why does 385 appear everywhere?
The number 385 is the 95% confidence, ±5% margin, and p = 50% answer. These are the default settings used by most national polling organizations, which is why 385 shows up so frequently in survey planning. It represents the standard level of precision that the polling industry has adopted for general population surveys.
What is the finite population correction?
The finite population correction is an adjustment that shrinks the required sample when the population is small enough that the sample is a real share of it. Without this correction, standard formulas assume an infinitely large population. When surveying a smaller group, applying the correction reduces the number of responses needed while maintaining your desired confidence and precision.
Why use p = 50%?
Using p = 50% maximises p x (1 - p), giving the largest, safest sample when the true proportion is unknown. Since the product p x (1 - p) reaches its peak at 50%, this conservative approach ensures your sample size is sufficient regardless of the actual proportion. It protects against underestimating how many responses you truly need.
Does a bigger population need a bigger sample?
Barely, once the population is large. A city and a country need almost the same n for the same precision. This counterintuitive result occurs because sample size formulas depend far more on confidence level and margin of error than on population size. Once a population exceeds a few thousand, required sample sizes plateau and barely increase.
Should I invite exactly n people?
Invite more than n people. Non-response and incomplete answers mean completes fall short of invitations. If your calculator says you need 385 completed responses, and you expect a 25% response rate, you should invite roughly 1,540 people to account for those who do not respond or finish. Always plan for attrition when sending survey invitations.