Sample Size Calculator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free sample size calculator for surveys. Set confidence level and margin of error to see how many responses you need, and how many to invite.
- Responses needed
- 0
- People to invite
- 0
- Margin of error with your responses
- 0
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the sample size calculator
Choose your confidence level (95% is standard) and margin of error (5% is common), and the sample size calculator shows how many survey responses you need. Then fine-tune:
- Population size: how many people you could survey in total, such as your 2,000 customers. Leave it empty for a large or unknown population.
- Expected proportion: if you expect an answer around a certain percentage, enter it. Leave it at 50% if you don't know; that's the safest choice, because it gives the largest sample.
- Expected response rate: the share of people you invite who will reply. The calculator then shows how many people to invite.
- Responses you already have: the calculator shows the margin of error your current responses give you.
Everything is calculated in your browser.
Why sample size matters
A survey asks some people in order to learn about everyone. The answers you get will differ from the true answer for the whole group by some amount, purely by chance. The more people you ask, the smaller that difference tends to be. The sample size calculator tells you how many responses you need so that the difference is probably within the margin you choose.
For example, with 385 responses at 95% confidence and a 5% margin of error, if 62% of respondents say they'd use a new delivery service, you can be 95% confident that the true figure for everyone is between 57% and 67%.
The formula
For a large population, the sample size calculator uses the standard formula for estimating a proportion:
n = z² × p × (1 − p) ÷ e²
where:
- z is the z-score for your confidence level: 1.645 for 90%, 1.960 for 95%, 2.576 for 99%,
- p is the expected proportion (0.5 if unknown),
- e is the margin of error as a decimal (0.05 for 5%).
At 95% confidence and a 5% margin: 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.1, which rounds up to 385 responses.
For a smaller population, it applies the finite population correction:
adjusted n = n ÷ (1 + (n − 1) ÷ N)
where N is the population size. The result is always rounded up, because you can't survey part of a person and rounding down would miss the target.
The sample size calculator uses z-scores to seven decimal places. Some calculators round them (for example to 2.58 for 99%), which gives slightly different answers: 664 here versus 666 with the rounded value.
How the settings change the answer
Confidence level
How sure you want to be that the true answer lies within your margin of error. At a 5% margin:
| Confidence | Responses needed |
|---|---|
| 90% | 271 |
| 95% | 385 |
| 99% | 664 |
Margin of error
How close you need the answer to be. Halving the margin roughly quadruples the sample:
| Margin of error (95%) | Responses needed |
|---|---|
| ±10% | 97 |
| ±5% | 385 |
| ±3% | 1,068 |
Population size
For large populations, the population hardly matters: 100,000 people need 383 responses; a million need 384; an unlimited population needs 385. It only makes a real difference for small groups:
| Population (95%, ±5%) | Responses needed |
|---|---|
| 100 | 80 |
| 500 | 218 |
| 1,000 | 278 |
| 2,000 | 323 |
| 10,000 | 370 |
That surprises many people: a survey of a whole country doesn't need many more responses than a survey of a large town.
Expected proportion
The sample is largest when the answer is close to 50%, because that's where results vary most. If you expect around 20% to say yes, the sample needed falls to 246 at 95% and ±5%. If you're unsure, keep 50%.
From responses to invitations
Not everyone you invite will reply. If you need 385 responses and expect a 20% response rate, invite about 1,925 people. Response rates vary widely: an email to engaged customers might get 10–30%; a cold survey much less. Use your past surveys as a guide.
Checking the margin of error you have
Already collected responses? Enter how many you have, and the sample size calculator shows the margin of error they give. With 100 responses from a large population at 95% confidence, the margin is about ±9.8%. With 150 responses from a population of 2,000, it's about ±7.7%. Use this when reporting results, so readers know how precise they are.
Getting reliable results
A big enough sample is necessary, but not sufficient. The formula assumes a random sample: everyone in the population had an equal chance of being asked and of replying. In practice:
- Avoid self-selection. A poll on your Instagram story reaches people who follow you and choose to answer, not all customers.
- Invite everyone, or a random selection. Don't pick the friendliest customers.
- Watch non-response bias. If unhappy customers ignore your survey, a large sample won't fix that.
- Ask clear, neutral questions. "How much do you love our new bread?" isn't neutral.
- Keep it short, to get more responses and better answers.
Sample size for different research
- Customer satisfaction and NPS surveys: the NPS calculator turns scores into a Net Promoter Score; use this calculator to know how much the score can be trusted.
- Market research: before launching a product, a survey of potential customers can estimate interest; plan the sample first.
- Comparing two groups, such as two versions of a page: that needs a different calculation, based on the size of difference you want to detect. The A/B test calculator checks whether a difference is significant.
Sample size for small groups
When the population is small, such as 50 clients or 120 employees, the finite population correction makes a big difference, and the sample needed can be most of the group. For 100 people at 95% confidence and ±5%, you need 80 responses. With groups this small, it's usually simpler to invite everyone and aim for as many responses as possible. Report the margin of error your actual responses give, using the "Responses you already have" field.
Rounding and reporting
Always round the sample size up. When you report results, give the number of responses, the confidence level and the margin of error together, for example: "Based on 410 responses; margin of error ±4.5% at 95% confidence." Readers can then judge how much weight to put on small differences. If two answers are 48% and 52% with a ±5% margin, you can't say which is more popular.
Questions with more than two answers
The formula is for proportions, such as the share of people who answer "yes" or choose a particular option. It works for each option in a multiple-choice question too: each percentage has roughly the margin of error you planned for. For averages of numbers, such as average spend, a different formula based on the expected spread of answers is needed.
A worked example
A bakery wants to know how many of its 2,000 newsletter subscribers would use a weekend delivery service. The owner chooses 95% confidence and a ±5% margin of error, with the population of 2,000. The sample size calculator shows 323 responses are needed. The bakery's past surveys got about 20% response, so the owner enters 20% and sees that about 1,615 people should be invited, so the survey goes to all 2,000.
After a week, 410 people have replied, comfortably above the target. 38% say they'd use weekend delivery at least monthly. The bakery reports "38%, with a margin of error of about ±4% at 95% confidence" and starts with a trial in two neighbourhoods.
Turn these numbers into paid growth
Metrics like these show where growth is stuck; Google Ads is often the fastest way to unstick it, when every click is tracked. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.
Frequently asked questions
How many survey responses do I need?
For a large population at 95% confidence and a ±5% margin of error, 385. Smaller populations need fewer; tighter margins or higher confidence need more.
What margin of error should I use?
±5% is common for business surveys. Use ±3% for decisions that need more precision, if you can get the responses, and ±10% for a rough first look.
Why does the population size matter so little?
Once a population is large, precision depends on the number of responses, not the share of the population asked. Only small populations need the finite population correction.
What expected proportion should I use?
50%, unless you have good reason to expect another value. It gives the largest, safest sample size.
Does a bigger sample fix a biased survey?
No. The formula assumes a random sample. If certain kinds of people are more likely to reply, a larger sample won't remove that bias.
Is the sample size calculator free?
Yes. It's free with no sign-up, and it runs entirely in your browser.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.