About this example
This page is the sample size section of an example research protocol for a cross-sectional study that will measure peak expiratory flow rate (PEFR) in healthy school children aged 8 to 13 years in Puducherry (Pondicherry), India. PEFR is the highest flow of air a person can produce in a forced breath out, measured in litres per minute (L/min) with a peak flow meter. The page shows how to choose the right formula, state every input, do the arithmetic and adjust for non-response and for sampling children through schools.
It is an illustrative teaching example, not a real student's work, and the standard deviation and clustering values are stated assumptions for teaching. Do not submit any part of it as your own work; your university's academic integrity rules apply.
The example: objective and the formula error
3.4.1 Objective that drives the calculation
The primary objective is to estimate the mean PEFR of healthy children aged 8 to 13 years attending schools in Puducherry, with a 95% confidence interval narrow enough to be useful for comparison with published reference values. Because the objective is to estimate a mean with a given precision, the sample size is chosen so that the 95% confidence interval will have a stated half-width, not to achieve power for a hypothesis test (Lakens, 2022; Hulley et al., 2013).
3.4.2 Why the earlier formula was wrong
This formula estimates a proportion, such as the percentage of children with asthma symptoms. PEFR is not a proportion: it is a continuous measurement in L/min. The value of P was never stated; working backwards, the reported 683 corresponds to P = 0.2 (1.962 × 0.2 × 0.8 / 0.032 = 682.9). The number therefore answers a question the study does not ask.
The example: the calculation
3.4.3 Formula and inputs
For estimating a mean with a 95% confidence interval of half-width d, the required number of children is n = Z2 SD2 / d2, where SD is the expected standard deviation of PEFR in the population (Hulley et al., 2013). Note that the formula uses the standard deviation of individual measurements, not the standard error of the mean (Altman & Bland, 2005).
| Input | Value | Source or assumption |
|---|---|---|
| Confidence level | 95% (Z = 1.96) | Conventional choice for an estimate |
| Expected SD of PEFR | 70 L/min | Stated assumption for teaching; replace with the SD from a pilot of about 30 children or from a verified local reference study |
| Half-width of the 95% CI (d) | 10 L/min | Judged precise enough to compare with reference values; agreed with the clinical supervisor |
| Children measured per school (m) | 30 | Planned from school class sizes |
| Intraclass correlation (ICC) between children in the same school | 0.02 | Stated assumption; children in one school share environment and measurement sessions |
| Expected non-response | 10% | Stated assumption; absence, refusal or unusable readings |
3.4.4 Step-by-step arithmetic
- Simple random sample: n = 1.962 × 702 / 102 = 3.8416 × 4,900 / 100 = 188.2, rounded up to 189 children.
- Design effect for sampling through schools: DEFF = 1 + (m − 1) × ICC = 1 + 29 × 0.02 = 1.58. Children needed: 189 × 1.58 = 298.6, rounded up to 299.
- Non-response: because about 10% of invited children are not expected to provide a usable measurement, the number invited must be larger: 299 / (1 − 0.10) = 332.2, rounded up to 333.
- Practical plan: measure 30 children in each of 10 schools (300 children, at least 299), inviting about 34 children per school (340 in total, at least 333).
In the protocol, the calculation is summarised in one sentence that a reader can check: "Assuming a standard deviation of 70 L/min, 189 children are needed to estimate mean PEFR with a 95% confidence interval of plus or minus 10 L/min; allowing a design effect of 1.58 for sampling 30 children in each school (ICC 0.02) and 10% non-response, at least 333 children (about 34 per school) will be invited from 10 schools."
The example: sensitivity and subgroups
3.4.5 How the answer depends on the assumptions
| Assumed SD (L/min) | Simple random sample | After design effect (1.58) | To invite (10% non-response) |
|---|---|---|---|
| 60 | 139 | 220 | 245 |
| 70 (planning value) | 189 | 299 | 333 |
| 80 | 246 | 389 | 433 |
The required number rises with the square of the SD, so a poor guess of the SD matters more than any other input. With an SD of 70 L/min, halving the precision required (d = 15 L/min) would need only 84 children before adjustment, while d = 7 L/min would need 385. For this reason the SD will be checked in the first two schools and the plan revised before the remaining schools are visited.
PEFR depends strongly on height, age and sex. If the study also aims to report means separately for boys and girls, the calculation applies to each group, roughly doubling the total. If the aim is to derive reference equations from height and age, the planning question becomes how precisely the regression can predict PEFR across the range of heights, which needs children spread evenly across that range and is a separate calculation.
The example: ethics and reporting
3.4.6 Ethics, response and reporting
The participants are children, so the protocol will obtain written informed consent from a parent or guardian and assent from each child, in a language they understand, after approval by an institutional ethics committee, in line with national guidance on research with children (Indian Council of Medical Research, 2017). Children with current respiratory symptoms or known respiratory disease will be excluded, and any child with an unexpectedly low reading will be referred to the school health service. Reminders to parents and simple, well-explained consent materials are among the methods shown to improve response (Edwards et al., 2023). The final report will state the planned and achieved sample sizes, the number of schools, the reasons for non-participation and the observed SD and ICC, following STROBE for cross-sectional studies (von Elm et al., 2007), and will present the mean PEFR with its 95% confidence interval rather than a p-value (Greenland et al., 2016), rounded sensibly (to the nearest L/min) (Cole, 2015).
How to adapt this to your own study
- Write down your primary objective and the type of outcome: a mean, a proportion, a difference or an association.
- Choose the formula that matches that outcome and objective (precision or power).
- List every input with its value and source, and label assumptions as assumptions.
- Show the arithmetic, round up at each step, and check it with software.
- Adjust for clustering if you sample through schools, clinics or villages, and inflate for non-response.
- Add a sensitivity table for the inputs you are least sure about.
Common mistakes in sample size sections
- Using a proportion formula for a continuous measurement, or the reverse.
- Leaving inputs such as P or SD unstated, so nobody can check the result.
- Reducing, rather than increasing, the sample to allow for non-response.
- Ignoring clustering when participants are recruited through schools or clinics.
- Planning for an overall mean and then reporting many subgroup estimates.
- Claiming a sample is "satisfactory" without saying for what purpose.
| What examiners look for | Where this example does it | Check in your own draft |
|---|---|---|
| A formula that fits the objective and outcome | 3.4.1 and 3.4.3 | Does your formula match your outcome type? |
| Every input stated and sourced | Table 3.4 | Could a reader reproduce your number? |
| Transparent arithmetic | 3.4.4 | Have you shown each step and rounded up? |
| Allowance for design and non-response | 3.4.4 | Have you used a design effect and inflated for non-response? |
| Sensitivity to assumptions | Table 3.5 | Do you show how the result changes? |
| Ethics for the population studied | 3.4.6 | Are consent and assent arrangements specific? |
Key takeaways
- Start from the objective: estimating a mean calls for a precision-based calculation (Lakens, 2022).
- Use n = Z2 SD2 / d2 for a mean, with SD from a pilot or a verified study (Hulley et al., 2013).
- Multiply by the design effect for clustered sampling and divide by the expected response rate.
- Show a sensitivity table, because the result depends on the square of the SD.
- Report planned and achieved samples and the observed SD and ICC (von Elm et al., 2007).
