How is sample size calculated for a medical thesis?
Sample size calculation is one of the first things your ethics committee and thesis evaluators check — and the most common reason protocols get sent back. The method depends entirely on your study design and primary objective.
1. Prevalence / descriptive studies (single proportion)
If your study estimates how common a condition is — for example, "prevalence of anaemia among antenatal women" — use Cochran's formula: n = Z²p(1−p)/d². You need three inputs: the expected prevalence p from a previously published study (cite it!), the absolute precision d (usually 5%), and the Z value (1.96 for 95% confidence).
2. Comparing two means
If your primary outcome is continuous — comparing mean blood loss, mean HbA1c, mean VAS score between two groups — use n = 2(Zα/2+Zβ)²σ²/d² per group, where σ is the pooled standard deviation from a reference study and d is the clinically meaningful difference between group means.
3. Comparing two proportions
If your outcome is categorical — comparing complication rates, success rates or cure rates between two groups — use n = (Zα/2+Zβ)²[p₁(1−p₁)+p₂(1−p₂)]/(p₁−p₂)² per group.
Frequently asked questions
What prevalence value should I use?
Should I add dropouts to the calculated number?
My calculated sample size is too large for my study period. What do I do?
Is this calculator free?
Related free tools
- Study Design Finder — find the right design for your research question
- Statistical Test Chooser — pick the correct test for your analysis
- How to Write a Thesis Protocol — full guide