Sample Size Calculator: For Surveys
Use this sample size calculator to plan a survey. Enter your population size, confidence level and margin of error, and see how many responses you need. You can also find the margin of error for a sample you already have.
Sample Size Calculator
Statistics sample-size estimation (not finance).
-
-
-
n0 = Z^2*p*(1-p) / E^2; with finite population: n = n0*N / (n0+N-1)
This sample size calculator tells you how many survey responses or observations you need for a chosen confidence level and margin of error. It uses the standard formula for proportions, with an optional correction for small populations.
How to use the Sample Size Calculator
- Choose a Confidence Level: 80%, 85%, 90%, 95% or 99%.
- Enter the Margin of Error as a decimal: 0.05 means ±5%.
- Enter the expected Population Proportion p. Use 0.5 if you don't know it, which gives the most cautious (largest) sample.
- Enter the Population Size N if it's limited, or leave it blank for a large population. Then press Calculate Sample Size.
- Read the Required Sample Size, n0 before correction and the z-score used. The chart shows how n changes as the margin of error goes from 10% down to 1%.
Formula
Finite population: n = n₀ × N ÷ (n₀ + N − 1)
Always round up to the next whole number
z is the critical value for your confidence level (1.96 for 95%), E is the margin of error, and p is the expected proportion.
Example
95% confidence, ±5% margin and p = 0.5: n₀ = 1.96² × 0.25 ÷ 0.05² ≈ 384.15, which rounds up to 385. If your whole population is only 2,000 people, n = 384.15 × 2000 ÷ (384.15 + 1999) ≈ 322.4, so you need 323 responses.
Frequently asked questions
Why use p = 0.5 when I don't know the proportion?
p(1 − p) is largest at p = 0.5, so it gives the largest required sample. That makes sure your margin of error is met whatever the true proportion turns out to be.
How does the margin of error affect sample size?
Sample size grows with the inverse square of the margin. Halving the margin from 5% to 2.5% roughly quadruples the sample, from 385 to 1,537 at 95% confidence.
Does population size matter?
Only when the population is small. For large populations the required sample barely changes, which is why about 385 random responses are enough for a city or a whole country at ±5% and 95% confidence.
Is this the number of people I should contact?
It's the number of completed responses you need. If you expect only 20% of people to respond, you would need to invite about five times as many.
After collecting data, find your interval with the Confidence Interval Calculator.
Find your sample size
How to use it
- Enter population size.
- Pick a confidence level.
- Set the margin of error.
- Read the sample size.
More questions
What margin of error should I use?
A 5% margin of error is common for general surveys.
Does population size matter much?
Only for small groups; large ones need about the same sample.
Can I find margin of error?
Yes. Enter your sample size to find your margin of error.
Related tools: Confidence Interval Calculator, Z-score Calculator, Statistical Significance Calculator (P-Value Test).
A member survey for a group of 2,000
Pick the confidence level, margin of error and expected proportion (0.5 if unsure), and add a population size if the group is small. The tool returns the number of responses needed. To turn survey counts into percentages, use the Percentage Calculator.
Worked example: at 95% confidence, a 5% margin of error and p = 0.5, you need 385 responses for a very large group (384.15 rounded up). For a group of 2,000 people the answer drops to 323.
More answers
How many survey responses do I need for a 5% margin of error?
At 95% confidence and p = 0.5, you need 385 completed responses for a large population. The exact figure is 384.15, which rounds up to 385.
What if I want a 3% margin of error instead?
The same settings with 3% need 1,068 responses for a large population (1,067.07 rounded up). A smaller margin always needs a larger sample.