{"slug":"sample-size-calculation-guide","title":"How to Calculate Sample Size for Your Survey or Study","excerpt":"Too small a sample misses real effects; too large wastes resources. This guide explains the drivers of sample size and how to calculate it before you collect data.","date":"2026-05-09","author":"DSTechnoverse","image":"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1200&q=80","category":"Research Methods","tags":["sample size","power analysis","survey","study design","statistics"],"content":"One of the most important decisions in any study happens *before* you collect a single response: how big should your sample be? Get it wrong and you either miss real effects or waste time and money. Here is how to think about it.\n\n## Why sample size matters\n\n- **Too small:** your study is *underpowered* — it may fail to detect a real effect that exists.\n- **Too large:** you spend far more effort than needed and may flag trivial differences as \"significant.\"\n\nThe goal is the *right* size — big enough to answer your question, no bigger.\n\n## The four drivers of sample size\n\nSample size is determined by four interconnected factors:\n\n1. **Effect size** — how big a difference or relationship you expect. Smaller effects need bigger samples to detect.\n2. **Significance level (alpha)** — usually 0.05. The risk of a false positive.\n3. **Power** — usually 0.80. The chance of detecting an effect that truly exists.\n4. **Variability** — how spread out the data is. More variability needs a larger sample.\n\nFix three of these and the fourth (sample size) follows.\n\n## For surveys estimating a proportion\n\nIf you are estimating a percentage in a population, you also consider:\n\n- **Confidence level** — commonly 95%\n- **Margin of error** — how precise you need to be (e.g. ±5%)\n- **Population size** — matters mainly for small populations\n\nA classic result: estimating a proportion to ±5% at 95% confidence needs roughly **385 respondents** for a large population.\n\n## How to actually calculate it\n\n- **Power analysis software** — G*Power (free) is the standard for experiments and group comparisons\n- **Online sample size calculators** — quick for survey proportions\n- **R packages** — `pwr` and others for reproducible calculations\n\nYou feed in your expected effect size, alpha, and power, and get the required sample.\n\n## The hardest input: effect size\n\nEstimating the effect size before you have data is the tricky part. Use:\n\n- Results from **similar past studies**\n- A **pilot study**\n- Established conventions for \"small,\" \"medium,\" and \"large\" effects\n\n## Do it before you collect data\n\nCalculating sample size afterwards is too late. Plan it during study design, document your assumptions, and you protect both your budget and your ability to find the answer you are looking for.\n\n![What drives the sample size you need](/blog-images/statistics/sample-size-drivers.svg)\n\n## A reference table you can actually use\n\nMost people asking \"how many respondents do I need?\" want a number, not a formula. For a survey estimating a percentage in a large population, at 95% confidence, the answer depends only on your margin of error and how close the true value sits to 50%:\n\n| Margin of error | If the answer is near 50% | If near 20% or 80% | If near 10% or 90% |\n|---|---|---|---|\n| ±10% | 96 | 62 | 35 |\n| ±7% | 196 | 126 | 71 |\n| ±5% | 384 | 246 | 139 |\n| ±3% | 1,067 | 683 | 385 |\n| ±2% | 2,401 | 1,537 | 865 |\n| ±1% | 9,604 | 6,147 | 3,458 |\n\nTwo things to read off this table. First, precision is expensive in a punishing way — going from ±5% to ±1% costs twenty-five times the sample, not five times. Second, the familiar figure of about 384 is simply the ±5% column at the most conservative assumption. It is not a magic number, and it is not right for every study.\n\n## Sample size for comparing means\n\nWhen your outcome is a number rather than a percentage — monthly income, yield per hectare, test score — the driver becomes the effect size: the difference you want to detect, expressed in standard deviations.\n\n![Sample size needed as effect size shrinks](/blog-images/statistics/sample-size-vs-effect.svg)\n\n| Effect size (Cohen's d) | Plain description | Needed per group (80% power) | Needed per group (90% power) |\n|---|---|---|---|\n| 0.8 | Large — obvious to the naked eye | 26 | 34 |\n| 0.5 | Medium — visible in a chart | 64 | 86 |\n| 0.3 | Small but often meaningful | 175 | 234 |\n| 0.2 | Small | 394 | 527 |\n| 0.1 | Very small | 1,571 | 2,103 |\n\nThis is why effect size dominates every other input. Halving the effect you want to detect roughly quadruples the sample you need. If your budget stops at 200 households per arm, you should know at the design stage that effects smaller than about d = 0.28 will likely go undetected — and say so in the protocol, rather than discovering it in the discussion section.\n\n## The four adjustments that field surveys always need\n\nTextbook formulas assume a simple random sample of independent individuals with perfect response. Real household surveys violate all three assumptions, and each violation inflates the number.\n\n**1. Design effect (clustering).** Interviewing 20 households in each of 30 villages is cheaper than 600 scattered households, but households within a village resemble each other, so each one carries less independent information. Multiply your sample by the design effect:\n\n| Situation | Typical design effect |\n|---|---|\n| Simple random sample | 1.0 |\n| Stratified sample, well-chosen strata | 0.9 to 1.0 |\n| Cluster sample, homogeneous outcome (e.g. water source) | 2.0 to 4.0 |\n| Cluster sample, heterogeneous outcome (e.g. income) | 1.5 to 2.0 |\n| Typical multi-stage household survey | 1.5 to 2.0 |\n\n**2. Non-response.** If you expect 85% cooperation, divide by 0.85 — an 18% increase. Migration, locked houses and refusals are normal, not exceptional.\n\n**3. Attrition between rounds.** For a [baseline and endline design](/blog/baseline-endline-impact-evaluation), you must survive losing households between the two rounds. Panel attrition of 10 to 20% per year is common in mobile populations.\n\n**4. Subgroup analysis.** This is the one that catches people out. If you plan to report results separately for women-headed households, or for three income terciles, each subgroup needs its own adequate sample — not a share of the total. Wanting four subgroup estimates at ±7% each is close to four separate surveys.\n\nPutting them together for a village-level study wanting ±5% at 95% confidence:\n\n| Step | Calculation | Running total |\n|---|---|---|\n| Base (proportion near 50%) | Standard formula | 384 |\n| Design effect 1.6 | 384 × 1.6 | 615 |\n| Non-response 85% | 615 ÷ 0.85 | 724 |\n| Endline attrition 12% | 724 ÷ 0.88 | 823 |\n| **Final target** | Round up | **825 households** |\n\nThe base formula said 384. The realistic answer is more than double that — which is exactly the conversation to have with a funder before fieldwork starts, not after.\n\n## Finite populations, and when small is fine\n\nIf you are surveying a genuinely small, closed population — 300 employees, 140 villages in a district, 45 treatment plants — the finite population correction reduces the requirement substantially:\n\n| Total population | Sample for ±5%, 95% confidence |\n|---|---|\n| 100 | 80 |\n| 250 | 152 |\n| 500 | 218 |\n| 1,000 | 278 |\n| 5,000 | 357 |\n| 50,000 | 381 |\n| 1,000,000 | 384 |\n\nNotice that beyond about 20,000 the population size stops mattering almost entirely. A national survey and a state survey need broadly the same sample for the same precision — a fact that surprises most clients and saves a great deal of money.\n\n## Tools, and what to put in your protocol\n\n| Tool | Best for | Cost |\n|---|---|---|\n| [G*Power](https://www.psychologie.hhu.de/arbeitsgruppen/allgemeine-psychologie-und-arbeitspsychologie/gpower) | t-tests, ANOVA, regression, chi-square | Free |\n| R, the pwr package | Reproducible power analysis in a script | Free |\n| Stata power command | Complex survey and cluster designs | Licensed |\n| [OpenEpi](https://www.openepi.com/) | Quick proportion and two-group calculations in a browser | Free |\n| SPSS SamplePower | Existing SPSS environments | Licensed |\n\nWhichever you use, document six things in the protocol: the primary outcome, the effect size you want to detect and why it is the smallest one worth acting on, alpha, power, the assumed design effect, and the assumed non-response rate. Reviewers reject sample size sections not because the number is wrong but because the assumptions are missing, so nobody can judge whether the number is wrong.\n\nFor the design decisions that sit around this calculation, see [sampling methods for household surveys](/blog/sampling-methods-household-surveys) and our guide to [determining sample size for a household survey](/blog/household-survey-sample-size). If the study will be analysed with a comparison group, [difference-in-differences](/blog/difference-in-difference-baseline-endline) has its own power implications worth reading first.\n\n## Frequently Asked Questions\n\n### Is 384 always the right sample size?\n\nNo. 384 is what you need to estimate a percentage to within ±5% at 95% confidence in a large population, assuming a simple random sample and perfect response. Cluster sampling, non-response, attrition and subgroup reporting all push it higher; a small closed population pulls it lower.\n\n### Does a bigger population need a bigger sample?\n\nOnly up to a point. Above roughly 20,000 people, population size stops affecting the required sample almost entirely. Surveying a city of 2 lakh and a state of 7 crore takes a similar sample for the same precision.\n\n### What sample size do I need for a PhD thesis?\n\nIt depends on the analysis, not the degree. A regression with eight predictors wants at least 10 to 20 observations per predictor, so 100 to 160 minimum. Structural equation modelling typically wants 200 or more. A simple two-group comparison for a medium effect needs about 64 per group. Calculate from your planned analysis, then justify it.\n\n### What happens if my sample is too small?\n\nYour study loses the ability to detect the effect you are looking for. You are likely to report a non-significant result that is uninformative rather than reassuring, and any significant result you do find will tend to overstate the true effect size — a well-documented bias in small studies.\n\n### Can I calculate sample size after collecting data?\n\nYou can calculate the effect size you were powered to detect, which is a useful and honest thing to report. What you should not do is compute \"observed power\" from your own p-value — it adds no information and is discouraged in the methods literature. Plan power in advance.\n\n### How do I choose the effect size before I have data?\n\nThree legitimate sources: previous studies on the same outcome, a pilot study, or a decision-based threshold — the smallest change that would actually alter what your organisation does. The third is usually the most defensible for applied and evaluation work.\n\n\n---\n\n**Need help turning your data into defensible results?** DSTechnoverse offers statistical and research data analysis services in SPSS, R, and Python — survey analysis, thesis and dissertation support, and business statistics. [Get in touch](/contact) to discuss your dataset.","related":[{"slug":"statistical-power-and-effect-size","title":"Statistical Power and Effect Size: How to Size a Study Properly"},{"slug":"household-survey-sample-size","title":"How to Determine Sample Size for a Household Survey"},{"slug":"presenting-statistical-results","title":"How to Present Statistical Results in a Report or Paper"},{"slug":"research-data-analysis-india-guide","title":"Research Data Analysis in India: A Guide for Scholars and Businesses"}]}