How to Calculate and Justify Sample Size for a Thesis

A worked example for estimating a survey proportion, with a Chapter Three write-up.

A sample size is defensible when it follows from the main research question and sampling design. Start by deciding what the study needs to estimate or test. Then explain the assumptions behind the calculation and distinguish the number of usable responses from the number of people or organisations you plan to contact.

1. Identify the main outcome and analysis

Main objectivePlanning approachWhat to specify
Estimate a proportion, such as the percentage of retailers with complete stock records.Precision for a single proportion.Expected proportion, confidence level, margin of error and sampling design.
Compare two groups or estimate an association.Power or precision calculation for the primary comparison or model.Smallest meaningful effect, significance level, power, and assumptions that match the model.
Explore experiences through qualitative interviews.Justify the planned sample and stopping criteria in relation to the research question and methodology.Participant diversity, depth of data, planned analysis and how adequacy will be assessed.

Worked question. What proportion of eligible small retail firms in a selected municipality have complete inventory records? The example uses a hypothetical register of 1,200 eligible firms and assumes simple random sampling without replacement. A firm counts as having complete records only if it meets all four prespecified stock-record checks.

Why this method fits. The main result is a proportion and the aim is to estimate it within a chosen margin of error. If the primary aim were to test whether mobile money use predicts record completeness, the study would need a calculation for that association. The descriptive calculation below does not establish adequate power for that hypothesis.

2. Choose and justify the inputs

InputValueReason in the worked example
Eligible sampling frame (N)1,200 firmsHypothetical complete register for the selected municipality.
Expected proportion (p)0.50No reliable prior estimate is assumed. At a fixed margin of error, 0.50 gives the largest starting sample for this formula.
Confidence level (z)95% (1.96)Used for the normal-approximation planning calculation.
Margin of error (e)±5 percentage pointsThe desired precision for the municipality-wide estimate.
Expected usable response rate (r)85%A planning assumption. In a real study, justify it with pilot data or a comparable survey.

3. Calculate usable responses and invitations

Step 1. Large-population starting value. n₀ = z² × p × (1 − p) ÷ e² = 1.96² × 0.50 × 0.50 ÷ 0.05² = 384.16.

Step 2. Apply the finite population correction. For a simple random sample drawn without replacement from this known population, n = n₀ ÷ [1 + (n₀ − 1) ÷ N] = 291.18. Round up to 292 usable responses.

Step 3. Allow for nonresponse. Divide the usable response target by the expected usable response rate. 292 ÷ 0.85 = 343.53. Round up to 344 firms to invite. Select invitations from the register using the planned random procedure.

Inflating the invitation target helps with the expected number of completed cases. It cannot correct bias if firms that do not respond differ systematically from those that do. Record contact attempts and reasons for nonresponse where feasible.

Figure 1. The finite population correction sets the usable response target. The final adjustment sets the invitation target.
Figure 1. The finite population correction sets the usable response target. The final adjustment sets the invitation target.

4. Check how the target changes

Desired margin of errorUsable responsesInvitations at 85%
±4 percentage points401472
±5 percentage points292344
±6 percentage points219258

Table 3. Sensitivity to precision. The population size, expected proportion and confidence level are held constant.

A tighter margin of error increases the sample required. If subgroup estimates are essential, check precision within each subgroup before finalising recruitment. A municipality-wide target can leave too few observations for meaningful comparisons across subgroups.

If the design selects firms through markets or neighbourhoods, use a calculation that accounts for clustering, the planned allocation and an evidence-based design effect. If you recruit a convenience sample, a probability-sample margin of error should not be presented as if it accounts for selection bias.

5. Write the justification in Chapter Three

Sample methods paragraph. The study was designed to estimate the proportion of eligible small retail firms with complete inventory records. The sampling frame contained 1,200 eligible firms. Assuming simple random sampling without replacement, 95% confidence, precision of ±5 percentage points and an expected proportion of 0.50, the finite-population-adjusted minimum was 292 usable responses. Assuming an 85% usable response rate, 344 firms were planned for invitation. The achieved number of usable responses and the observed response rate would be reported separately.

Use the assumptions and tense that match your own study. Include the source and date of the sampling frame, the rationale for the expected proportion and response rate, and any software, commands or settings used. For a completed thesis, report the achieved sample and exclusions alongside the original target.

References and further reading

CDC. Epi Info StatCalc introduction and choice of calculation.

CDC. Epi Info User Guide, Chapter 12. Population surveys and sample size.

Explore WIStat Research thesis and dissertation support.