Author-reviewedEvidence: highv1.0.1

Sample Size Calculation

Sample size calculation sets how many participants a trial must analyse to detect a target clinical or economic difference at set power and significance.

Last reviewed byDr Darrin Baines

Concept Architecture

Sample Size Calculation in Trials and Economic Evaluation

A sample size calculation turns four planning choices into a number of participants, or of events, that a study has to analyse. The choices are the target difference between groups, the variability or baseline risk of the outcome, the significance level and the statistical power. In health economics it matters twice over, because randomised trials are a key source of cost-effectiveness data yet are normally sized on their primary clinical objective. A trial large enough for its clinical question can leave the economic question badly underpowered, which later shows up as wide uncertainty around net benefit.

Inputs that fix the number

The DELTA2 guidance, funded through the UK MRC and NIHR methodology programme, describes the conventional approach. The significance level and power are set first, typically a two-sided 5% level with 80% or 90% power, and the sample size then follows from the target difference. The ICH E9 guideline on statistical principles for clinical trials also asks for the primary variable, the test statistic, the hypotheses and the approach to withdrawals and protocol violations. It notes that the type II error is conventionally set at 10% to 20%.

The target difference carries most of the weight. DELTA2 says it should be viewed as important by at least one key stakeholder group, such as patients, clinicians, regulators or healthcare funders, and observes that trial reports often suggest it was set on convenience or the research budget. ICH E9 allows either the minimal effect of clinical relevance, often a minimal clinically important difference, or the anticipated effect where that is larger. The target is paired with a nuisance parameter, which DELTA2 defines as the quantity that, together with the target difference, fixes the difference on the original outcome scale, such as the control group event proportion for a binary outcome or the standard deviation for a continuous one.

Formulae for binary and time-to-event outcomes

The formula for comparing two means is worked through on the statistical power page, and DELTA2 notes that for a continuous outcome halving the target difference quadruples the sample size. For a binary outcome compared between two equal groups, a standard large-sample approximation gives the number per arm.

n=(z1−α/2+z1−β)2[p1(1−p1)+p2(1−p2)](p1−p2)2n = \frac{(z_{1-\alpha/2} + z_{1-\beta})^2\left[p_1(1-p_1) + p_2(1-p_2)\right]}{(p_1 - p_2)^2}

where nn is the number of analysable participants per arm, p1p_1 and p2p_2 are the expected proportions with the outcome in the control and intervention arms, α\alpha is the two-sided significance level, β\beta is the type II error probability, so power is one minus β\beta, and zqz_q is the qq quantile of the standard normal distribution. Whitley and Ball tabulate the squared sum of the two quantiles as 7.9 for 80% power and 10.5 for 90% power at a 5% significance level.

Time-to-event trials are sized by events. ICH E9 notes that where the event rate is of primary interest, assumptions are needed to turn the required number of events into a sample size, and DELTA2 asks for the number of events to be stated. Under proportional hazards and equal allocation, the formula now known as Schoenfeld's gives the total number of events.

E=4(z1−α/2+z1−β)2(ln⁡HR)2,N=EpeventE = \frac{4(z_{1-\alpha/2} + z_{1-\beta})^2}{(\ln \mathrm{HR})^2}, \qquad N = \frac{E}{p_{\mathrm{event}}}

where EE is the total number of events across both arms, HR\mathrm{HR} is the target hazard ratio, NN is the number of participants to recruit and peventp_{\mathrm{event}} is the expected probability that a participant has the event during follow-up. Cortés Martínez and colleagues note that the number of patients needed to observe the required events depends on the probability of observing the event during follow-up, so recruitment and follow-up periods change NN while leaving EE unchanged.

Worked example with a readmission trial and its economic endpoint

All numbers are illustrative. A trial of a pharmacist-led medicines review after hospital discharge plans to detect a fall in 90-day emergency readmission, with an expected 20% in the control arm and a target of 15% in the intervention arm. The trial uses a two-sided 5% significance level, 90% power and equal allocation, and a cost-utility analysis will run alongside it.

1. Multiplier. With quantiles of 1.960 and 1.282, the multiplier is (1.960 + 1.282) squared, or 3.242 × 3.242 = 10.51.

2. Variance term. The sum 0.20 × 0.80 + 0.15 × 0.85 = 0.2875, and the squared difference is 0.05 × 0.05 = 0.0025, so the ratio is 0.2875 / 0.0025 = 115.

3. Analysable sample. The product 115 × 10.51 = 1,208.65 rounds up to 1,209 per arm, or 2,418 analysable participants.

4. How the target is expressed. If the control risk were 15% instead, keeping the same 25% relative reduction (a target of 11.25%) gives a variance sum of 0.2273 and a squared difference of 0.00140625, or about 1,700 per arm. Keeping the same 5 point absolute reduction (a target of 10%) gives 87 × 10.51 = 914.37, or 915 per arm. This is why DELTA2 asks a binary target to say whether the absolute or the relative difference takes primacy.

5. Losses. With 10% expected to have no primary outcome, recruitment becomes 1,209 / 0.9 = 1,343.3, or 1,344 per arm.

6. Economic endpoint. The review is expected to add 0.01 QALYs and save GBP 100 per patient, with patient-level standard deviations of 0.15 QALYs and GBP 2,500 and a correlation of minus 0.3 between costs and QALYs. At GBP 25,000 per QALY the incremental net monetary benefit is 25,000 × 0.01 + 100 = 350. The per-patient variance of net benefit adds 25,000 squared times 0.15 squared (14,062,500), 2,500 squared (6,250,000) and, because the correlation is negative, 2 × 25,000 × 0.3 × 0.15 × 2,500 = 5,625,000, giving 25,937,500 and a standard deviation of about GBP 5,093. Powering the economic analysis on its own terms needs 2 × 10.51 × 25,937,500 / 122,500 = 4,450.7, or 4,451 per arm, where 122,500 is 350 squared.

7. Economic power at the clinical size. With 1,209 per arm the standard error of incremental net benefit is the square root of 2 × 25,937,500 / 1,209, about GBP 207, so the expected test statistic is 350 / 207 = 1.69. Power is the normal probability below 1.69 minus 1.96, about 39%.

8. Interpretation. The trial is well sized for the readmission difference but has roughly a two in five chance of showing a significantly positive net benefit. The economic endpoint needs more than three times the clinical sample, so the protocol has to say which question is primary and either accept an imprecise economic estimate or justify a larger trial.

Sizing for the cost-effectiveness analysis

Briggs and Gray noted in 1998 that many commentators wanted trial sample sizes to meet the needs of the economic analysis as well as the clinical one. Willan and O'Brien proposed a size large enough for the confidence interval to separate the cost-effective and not cost-effective regions of the cost-effectiveness plane. Willan then showed that recasting the analysis as incremental net benefit allows standard statistical procedures for power and sample size.

σNB2=λ2σE2+σC2−2λρ σEσC,n=2(z1−α/2+z1−β)2 σNB2(λΔE−ΔC)2\sigma_{NB}^2 = \lambda^2\sigma_E^2 + \sigma_C^2 - 2\lambda\rho\,\sigma_E\sigma_C, \qquad n = \frac{2(z_{1-\alpha/2} + z_{1-\beta})^2\,\sigma_{NB}^2}{(\lambda\Delta E - \Delta C)^2}

where σNB2\sigma_{NB}^2 is the patient-level variance of net benefit, assumed equal in both arms, λ\lambda is the value placed on a unit of health such as a QALY, σE\sigma_E and σC\sigma_C are the standard deviations of effects and costs, ρ\rho is their correlation, ΔE\Delta E and ΔC\Delta C are the expected incremental effect and cost, and nn is the number per arm. Glick lists these inputs together with the two error rates and maximum willingness to pay, and shows that power need not rise steadily as willingness to pay increases. A negative correlation between costs and QALYs inflates the variance of net benefit, as step 6 shows. The NICE manual (PMG36, section 4.2.16) asks for net health benefits to be presented at GBP 25,000 and GBP 35,000 per QALY, which gives natural values of λ\lambda for UK sensitivity runs.

DELTA2 lists this health economic route among its methods for setting the target difference, alongside a value of information analysis that compares the value of an extra observation with its cost and so needs no target difference. That decision-theoretic optimum, built on the expected value of sample information and the expected net benefit of sampling, is the subject of the optimal sample size page. ICH E9 accepts sizing on another basis, such as important secondary objectives needing larger numbers, if this is made clear and justified.

Design features and assumptions that move the answer

ICH E9 states that the calculation should refer to the number needed for the primary analysis, and that if this is the full analysis set the assumed effect may need reducing for dilution from withdrawal and poor compliance. Inflating for attrition protects power only and does nothing about bias from informative missing data. Cluster allocation multiplies the requirement by the design effect.

For a non-inferiority trial or an equivalence trial, ICH E9 bases the size on a confidence interval showing that the treatments differ by at most a clinically acceptable margin. For a non-inferiority trial it warns that assessing power at a zero difference underestimates the sample needed if the investigational product is less effective than the active control. In a group sequential design the final size cannot be fixed in advance, so planning works with expected and maximum sample sizes.

Every input is an estimate. ICH E9 asks for the basis of each estimate and for the sensitivity of the sample size to deviations from it. DELTA2 recommends sensitivity calculations and the use of pilot data for nuisance parameters, and warns that a small change in one assumption can change the sample size substantially, as step 4 shows.

Reporting the calculation

The CONSORT 2025 statement asks, in item 16a, how sample size was determined, including all assumptions supporting the calculation. Its explanation and elaboration paper asks for the anticipated values in each group with their provenance, the type I error and sidedness, the power, the size per group, any inflation for attrition or non-adherence and the formulas or software used. DELTA2 gives a matching checklist of core items for protocols and results papers so that the calculation can be replicated. For an economic evaluation alongside a trial, the clinical calculation alone leaves readers unable to tell whether an imprecise cost-effectiveness estimate reflects a small effect or a trial never designed to detect one, and stating the power for incremental net benefit closes that gap.

Boundaries with power, precision and optimal sample size

Power is a property of a design under a stated alternative, and the calculation chooses enough participants to reach a target power. A precision-based calculation instead aims at a confidence interval of a desired width, one of the alternatives DELTA2 lists. Effective sample size describes how much independent information a clustered or weighted sample holds. The optimal sample size in the value of information sense trades expected gains in decision quality against research costs and can favour no further study.

Common errors in sample size work

Most errors come from treating the result as more exact than its inputs. Each input is uncertain.

  1. Fitting the target difference to the budget. DELTA2 notes that trial reports often suggest this.
  2. Leaving the nuisance parameter unexamined. An underestimated variance or a misjudged control event rate can leave the trial underpowered.
  3. Assuming the clinical size covers the economic analysis. Net benefit can need several times as many participants.
  4. Reading a non-significant result as no effect. Whitley and Ball recall that absence of evidence is not evidence of absence.

Sources

Library

Publications

1
  • Book

    Bayesian Methods in Health Economics — Gianluca Baio, 1st Edition ed., 2012 (Chapman & Hall / CRC Press)

    An overview of Bayesian statistical methods for the analysis of health economic data, covering economic evaluation concepts, statistical cost-effectiveness analysis, Bayesian computation and MCMC, and applied health economic evaluation.

Frequently Asked Questions (6)

  • What is a sample size calculation?

    Sample size calculation sets how many participants a trial must analyse to detect a target clinical or economic difference at set power and significance.

    Source: Cook et al. 2018

  • What does a sample size calculation determine before a study begins?

    The output is a count of analysable participants, or for a time-to-event outcome a count of events, large enough to give the trial a set chance of detecting a chosen target difference. DELTA2 describes the conventional order of a sample size calculation, in which the significance level and power are fixed first, typically a two-sided 5% level with 80% or 90% power. The required number then follows from the target difference together with a nuisance parameter, such as the control group event proportion for a binary outcome or the standard deviation for a continuous one. Recruitment is set above the analysable number to allow for expected losses.

    Source: Cook et al. 2018

  • What factors affect a sample size calculation?

    Four planning choices drive a sample size calculation, namely the target difference, the nuisance parameter that describes the outcome, the significance level and the power. DELTA2 gives most weight to the target difference, which should matter to at least one key stakeholder group such as patients, clinicians, regulators or healthcare funders. The nuisance parameter is the standard deviation for a continuous outcome or the control group event proportion for a binary one. For a continuous outcome, halving the target difference quadruples the sample size, and for a binary outcome the result depends on whether the absolute or the relative difference is held fixed.

    Source: Cook et al. 2018

  • Why is a sample size calculation important?

    Randomised trials are a key source of cost-effectiveness data, and the sample size calculation decides which of their questions a trial can answer with adequate power. Trials are normally sized on their primary clinical objective, which can leave the economic analysis badly underpowered. In an illustrative readmission trial sized at 1,209 per arm for 90% clinical power, the chance of a significantly positive incremental net benefit is only about 39%, and the economic endpoint would need more than three times as many participants. DELTA2 notes that a study can instead be powered to exclude a zero incremental net benefit, so the protocol has to say which question is primary.

    Source: Cook et al. 2018

  • How is a sample size calculation performed?

    ICH E9 asks a sample size calculation to specify the primary variable, the test statistic, the null and alternative hypotheses, the type I error, the type II error and the approach to withdrawals and protocol violations. The type II error is conventionally set at 10% to 20%, and the target effect is either the minimal effect of clinical relevance or the anticipated effect where that is larger. The calculation refers to the number needed for the primary analysis, and where the event rate is of primary interest the required number of events is converted into a sample size. The basis of every estimate should be given, together with the sensitivity of the result to deviations from it.

    Source: ICH 1998 (E9, section 3.5)

  • What are the challenges of a sample size calculation?

    Every input to a sample size calculation is an estimate, so the result is less exact than it looks. DELTA2 observes that trial reports often suggest the target difference was set on convenience or the research budget, and warns that a small change in one assumption can change the sample size substantially. In an illustrative binary trial, moving the control risk from 20% to 15% changes the requirement from 1,209 per arm to about 1,700 or to 915, depending on whether the relative or the absolute reduction is kept. DELTA2 recommends sensitivity calculations and the use of pilot data to inform the nuisance parameters.

    Source: Cook et al. 2018

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 29 Oct 2026

Content version: 1.0.1

Canonical Identity

Term code
HE-ES-SA-188

Stable URI · Machine-readable · Resolvable · CC BY 4.0