Home Sample Size Calculator for Surveys
Sample Size Calculator for Surveys
Use this sample size calculator to find how many usable responses you need to estimate a percentage in a survey. Enter your confidence level and margin of error. Add an expected response rate if you also want to estimate how many people to invite.
usable responses
How to calculate sample size for a survey
Start with the question you want to answer. If you want to estimate what percentage of eligible students use the library each week, you are estimating a population proportion. Sample size is the number of usable responses you need to estimate that percentage at your chosen level of precision.
- Define the population. Write down who qualifies for the study. If there are 1,000 eligible students on the enrolment list, enter 1,000. Leave population size blank when the total is unknown or very large.
- Choose a confidence level. At 95% confidence, about 95% of the intervals constructed from repeated random samples would contain the true population proportion, under the model assumptions.
- Set the margin of error. A margin of ±5 percentage points means that a survey estimate of 60% would have an approximate interval of 55% to 65%, if the interval has that margin. A tighter margin calls for more responses.
- Allow for incomplete responses. If you expect 40 out of every 100 invitees to give a usable response, enter 40% to estimate how many people to invite.
Sample size formulas
1. Cochran’s formula for a large or unknown population
n0 = Z2 × p(1 − p) ÷ e2
- n0 is the unrounded sample size for a large population.
- Z is the value for the confidence level. Use 1.645 for 90%, 1.96 for 95%, and 2.576 for 99%.
- p is the expected proportion with the characteristic you are studying. The calculator uses 0.50 because it gives the largest sample size for a given confidence level and margin of error. If a pilot study or prior research gives you a defensible estimate, you can substitute it when calculating by hand.
- e is the margin of error as a decimal. Use 0.05 for ±5 percentage points.
At 95% confidence and ±5 percentage points, 1.96² × 0.50 × 0.50 ÷ 0.05² = 384.16. Round up to 385 usable responses if you are using the large-population formula.
2. Finite population correction for a known population
n = n0 ÷ [1 + (n0 − 1) ÷ N]
Here, N is the number of eligible people or units in the population. Use the unrounded value of n0 in this formula, then round the corrected result up. The correction matters more when the sample is a substantial share of the population. It assumes simple random sampling without replacement.
3. Invitations needed after allowing for nonresponse
Invitations = usable response target ÷ expected usable response rate
Use the rounded response target and express the response rate as a decimal. Round the invitation estimate up. If it exceeds the eligible population, the response target requires a higher usable response rate. If the goal is flexible, you can also see what a wider margin of error would do to the target.
Worked example with 1,000 eligible students
Suppose your PhD survey estimates the percentage of students who use the university library at least once a week. There are 1,000 eligible students. You choose 95% confidence and a margin of error of ±5 percentage points.
- Start with Cochran’s formula. The unrounded result is 384.16.
- Apply the finite population correction. 384.16 ÷ [1 + (384.16 − 1) ÷ 1,000] ≈ 277.74. Collect 278 usable responses.
- Estimate invitations. If 40% of invited students are expected to provide a usable answer, plan for 278 ÷ 0.40 = 695 invitations.
In your methodology chapter, describe how you selected students from the list, why you chose the confidence level and margin, and how many usable responses you ultimately analysed.
Sample size by population and margin of error
The table assumes 95% confidence, an expected proportion of 50%, and simple random sampling. Every number is rounded up to a whole response.
| Population size | ±3 points | ±5 points | ±10 points |
|---|---|---|---|
| 100 | 92 | 80 | 50 |
| 500 | 341 | 218 | 81 |
| 1,000 | 517 | 278 | 88 |
| 5,000 | 880 | 357 | 95 |
| 10,000 | 965 | 370 | 96 |
| Large or unknown | 1,068 | 385 | 97 |
When to use a different sample size method
Use this calculator for one overall percentage in a descriptive survey with a simple random sample. If your primary objective is to compare groups, test relationships, or fit a model such as regression or SEM, plan the sample size around that analysis. A power analysis or a model-specific simulation can account for the effect you want to detect.
Cluster sampling requires a calculation that reflects the survey design. For convenience or opt-in samples, the standard probability-sampling margin of error is generally inappropriate. Qualitative interviews need a sample justification based on the research question and design.
Frequently asked questions
What if I don’t know the population size?
Leave that field blank. The calculator uses Cochran’s large-population formula. Define who is eligible and how you will select participants, even if the exact total is unknown.
Is 385 a good sample size for every PhD survey?
The 385-response target applies to a large or unknown population at 95% confidence, with a ±5 percentage-point margin of error and an assumed proportion of 50%. Set the sample size using your research objective and the precision your study requires.
What if I need separate estimates for two groups?
Calculate a response target for each group if you need each estimate to meet a particular margin of error. If your primary question is whether the groups differ, plan for the size of the difference you want to detect.
