Sample size comes from a formula that matches your primary objective, filled in with values from earlier published studies: the expected proportion or standard deviation, how precise the estimate must be or how large a difference matters, the confidence level (usually 95%) and, when you compare groups, the power (usually 80% or 90%). The result is reduced with the finite population correction if the whole population is small, then divided by (1 − the expected non-response or drop-out rate). Free tools such as OpenEpi and G*Power do the arithmetic; reviewers check the assumptions and the studies you took them from.
The formula for your design
Two-group formulas give the number for each group, so the total is twice that. OpenEpi and G*Power use more exact versions of some of these formulas, so their answer can be somewhat larger; state which tool or formula you used.
Worked example (illustrative numbers)
An example with round numbers, not from any real study: a cross-sectional study estimating a prevalence that earlier studies put at about 30%, with 95% confidence and a precision of ±5 percentage points.
n = 1.96² × 0.30 × 0.70 / 0.05²
n = 3.8416 × 0.21 / 0.0025 = 322.7, rounded up to 323
Allowing for 10% non-response: 323 / (1 − 0.10) = 358.9, rounded up to 359 participants
If the whole population were only 1,000 people, the finite population correction gives 322.7 / (1 + 321.7 / 1,000) = 244.2, rounded up to 245; with the same 10% allowance for non-response, 244.2 / (1 − 0.10) = 271.3, rounded up to 272. Carry the unrounded figure through each correction and round up once, at the end, which is what the free calculator does.
When to bring in a statistician
These formulas cover the common designs. Have the calculation done or reviewed by a statistician when:
- the groups are matched, there are more than two groups, or the analysis is a correlation or a regression with several variables
- the study measures a diagnostic test’s sensitivity and specificity, asks a non-inferiority or equivalence question, or measures time to an event
- participants are sampled in clusters, such as wards, villages or schools, which needs a design effect
- no published study gives you a proportion or standard deviation to start from
- your college asks for a statistician’s review when you submit to the IEC
Our statistician review certificate (₹1,000) reviews the sample size in your synopsis and its cited assumptions. If you have not written the synopsis yet, the sample-size calculation is part of synopsis support.