Home/Blog/How to Calculate Sample Size for Your Survey or Study
Back to Blog

How to Calculate Sample Size for Your Survey or Study

May 9, 2026
9 min read
By DSTechnoverse
Research Methods

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.

How to Calculate Sample Size for Your Survey or Study

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.

Why sample size matters

  • Too small: your study is underpowered — it may fail to detect a real effect that exists.
  • Too large: you spend far more effort than needed and may flag trivial differences as "significant."

The goal is the right size — big enough to answer your question, no bigger.

The four drivers of sample size

Sample size is determined by four interconnected factors:

  1. Effect size — how big a difference or relationship you expect. Smaller effects need bigger samples to detect.
  2. Significance level (alpha) — usually 0.05. The risk of a false positive.
  3. Power — usually 0.80. The chance of detecting an effect that truly exists.
  4. Variability — how spread out the data is. More variability needs a larger sample.

Fix three of these and the fourth (sample size) follows.

For surveys estimating a proportion

If you are estimating a percentage in a population, you also consider:

  • Confidence level — commonly 95%
  • Margin of error — how precise you need to be (e.g. ±5%)
  • Population size — matters mainly for small populations

A classic result: estimating a proportion to ±5% at 95% confidence needs roughly 385 respondents for a large population.

How to actually calculate it

  • Power analysis software — G*Power (free) is the standard for experiments and group comparisons
  • Online sample size calculators — quick for survey proportions
  • R packages — pwr and others for reproducible calculations

You feed in your expected effect size, alpha, and power, and get the required sample.

The hardest input: effect size

Estimating the effect size before you have data is the tricky part. Use:

  • Results from similar past studies
  • A pilot study
  • Established conventions for "small," "medium," and "large" effects

Do it before you collect data

Calculating 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.

What drives the sample size you need

A reference table you can actually use

Most 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%:

Margin of errorIf the answer is near 50%If near 20% or 80%If near 10% or 90%
±10%966235
±7%19612671
±5%384246139
±3%1,067683385
±2%2,4011,537865
±1%9,6046,1473,458

Two 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.

Sample size for comparing means

When 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.

Sample size needed as effect size shrinks
Effect size (Cohen's d)Plain descriptionNeeded per group (80% power)Needed per group (90% power)
0.8Large — obvious to the naked eye2634
0.5Medium — visible in a chart6486
0.3Small but often meaningful175234
0.2Small394527
0.1Very small1,5712,103

This 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.

The four adjustments that field surveys always need

Textbook 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.

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:

SituationTypical design effect
Simple random sample1.0
Stratified sample, well-chosen strata0.9 to 1.0
Cluster sample, homogeneous outcome (e.g. water source)2.0 to 4.0
Cluster sample, heterogeneous outcome (e.g. income)1.5 to 2.0
Typical multi-stage household survey1.5 to 2.0

2. Non-response. If you expect 85% cooperation, divide by 0.85 — an 18% increase. Migration, locked houses and refusals are normal, not exceptional.

3. Attrition between rounds. For a baseline and endline design, you must survive losing households between the two rounds. Panel attrition of 10 to 20% per year is common in mobile populations.

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.

Putting them together for a village-level study wanting ±5% at 95% confidence:

StepCalculationRunning total
Base (proportion near 50%)Standard formula384
Design effect 1.6384 × 1.6615
Non-response 85%615 ÷ 0.85724
Endline attrition 12%724 ÷ 0.88823
Final targetRound up825 households

The 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.

Finite populations, and when small is fine

If 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:

Total populationSample for ±5%, 95% confidence
10080
250152
500218
1,000278
5,000357
50,000381
1,000,000384

Notice 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.

Tools, and what to put in your protocol

ToolBest forCost
G*Powert-tests, ANOVA, regression, chi-squareFree
R, the pwr packageReproducible power analysis in a scriptFree
Stata power commandComplex survey and cluster designsLicensed
OpenEpiQuick proportion and two-group calculations in a browserFree
SPSS SamplePowerExisting SPSS environmentsLicensed

Whichever 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.

For the design decisions that sit around this calculation, see sampling methods for household surveys and our guide to determining sample size for a household survey. If the study will be analysed with a comparison group, difference-in-differences has its own power implications worth reading first.

Frequently Asked Questions

Is 384 always the right sample size?

No. 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.

Does a bigger population need a bigger sample?

Only 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.

What sample size do I need for a PhD thesis?

It 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.

What happens if my sample is too small?

Your 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.

Can I calculate sample size after collecting data?

You 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.

How do I choose the effect size before I have data?

Three 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.


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 to discuss your dataset.

Share

Tags

sample sizepower analysissurveystudy designstatistics

Explore More Articles

Discover more insights and updates from DSTechnoverse

View All Articles