Blog · 5 November 2026

Sample Size Calculation for MD/MS Thesis: Formulas and Worked Examples

The four sample size formulas most postgraduate theses need (prevalence, two means, two proportions, correlation), with worked examples and the values reviewers expect.

Sample size is the part of the synopsis residents worry about most, and the part ethics committees check first. You do not need advanced statistics for most theses. Four formulas cover the large majority of MD/MS designs. This guide shows each one with a worked example.

The values every calculation needs

1. Estimating a prevalence or proportion (cross-sectional studies)

Formula: n = Z² × p × (1 − p) / d²

Where p is the expected proportion and d is the absolute allowable error.

Example: an earlier study reported a prevalence of 30%. With 95% confidence (Z = 1.96) and an absolute error of 5%:

Adding 10% for non-response: 323 / 0.9 = 358.9, so 359 participants.

Tip: some studies use a relative error instead (for example, 20% of p). With p = 30%, that means d = 6%, which gives a smaller sample. Say clearly which one you used.

2. Comparing two means (two groups)

Formula, per group: n = 2 × (Zα + Zβ)² × σ² / Δ²

Where σ is the standard deviation and Δ is the difference in means you want to detect.

Example: comparing a pain score between two drugs. Earlier work suggests SD = 10, and a difference of 5 points is clinically important. With 95% confidence and 80% power:

3. Comparing two proportions (two groups)

Formula, per group: n = (Zα + Zβ)² × [p1(1 − p1) + p2(1 − p2)] / (p1 − p2)²

Example: a complication occurs in 40% of patients with the standard technique, and you expect 20% with the new one. With 95% confidence and 80% power:

4. Correlation between two measurements

Formula: n = [(Zα + Zβ) / C]² + 3, where C = 0.5 × ln[(1 + r) / (1 − r)]

Where r is the expected correlation coefficient from earlier studies.

Example: you expect r = 0.3 between two measurements. With 95% confidence and 80% power:

How to write it in the synopsis

Write the formula, define every symbol, state each value and its source, show the result, and add the allowance for drop-outs. For example:

"Based on the prevalence of 30% reported by [author, year], with 95% confidence and an absolute precision of 5%, the minimum sample size was calculated as 323 using the formula n = Z²pq/d². Allowing for 10% non-response, 359 participants will be enrolled."

Common mistakes

Software you can use

Free tools such as OpenEpi, G*Power and the sample size modules in many statistics packages give the same results as these formulas, and reviewers accept them if you name the tool and the values entered.

Need it done for your title?

The Full Plan for any title on this site includes the sample size worked out with the formula, values and justification, along with the full synopsis. See a complete sample synopsis, read our guide to the synopsis format, or browse titles on the all specialities page.

Search 13,500+ thesis titles See a sample synopsis Topic Packs (Excel)

More guides