Based on current research, here's how to calculate sample size using pilot study data:
Key Principle
Pilot studies typically
do not require formal power calculations. Instead, sample size should be justified based on the pilot study's specific goals. The
Kunselman review (2024) clarifies that while power calculations are standard for definitive trials, pilot studies serve different purposes—feasibility, parameter estimation, and proof-of-concept—so justification differs.
Main Approaches
1. Using Pilot Data to Estimate Effect Size for the Main Trial
This is the most common use. Steps:
- Collect pilot data from a small sample (typically 20-50 participants, depending on your research question)
- Calculate the effect size from your pilot results using:
- Standard deviation (SD) for continuous outcomes
- Response rate or proportion for binary outcomes
- Standardized effect size (Cohen's d, odds ratio, etc.)
- Plug into standard power calculation using the pilot's estimated parameters
Example (continuous outcome):
If your pilot study (n=30) measures blood pressure reduction and finds SD = 12 mmHg, use this SD in your main trial's power calculation instead of guessing.
2. Accounting for Uncertainty from Pilot Variance
O'Neill (2022) describes a method that accounts for
uncertainty in the population variance parameter when using pilot data. This approach inflates the sample size slightly to protect against underestimation of variance (which is common in small pilots):
- Calculate variance estimate from pilot data
- Apply an adjustment factor that reflects confidence in that estimate
- This prevents underpowering the main trial if pilot variance was unexpectedly low
3. For Pilot Study Sample Size Itself
Justify pilot sample size based on:
- Precision of parameter estimation: Aim for 95% CI width narrow enough to be useful. Rule of thumb: 12-30 participants often sufficient for estimating a single mean or proportion.
- Feasibility/recruitment goals: "We will recruit 25 participants to assess recruitment rate and protocol acceptability"
- Number needed to observe rare events: If testing adverse events, size for observing 3-5 events
Practical Formula When Pilot Estimates Variance
For the main trial, after collecting pilot data:
n = (Z² × s² / d²) × inflation factor
Where:
- Z = critical value (1.96 for 95% confidence)
- s² = variance from pilot study
- d = desired precision (e.g., margin of error)
- Inflation factor = typically 1.1-1.3, accounts for pilot uncertainty
Common Mistakes to Avoid
- Don't use pilot sample size as your main trial size - this nearly guarantees underpowering
- Don't assume pilot estimates are exact - always inflate slightly for uncertainty
- Don't skip the pilot - it's far better to estimate variance empirically than guess
- Add 10-20% for attrition after your calculated n, regardless of method
Documentation Template
"The main trial sample size (n=XXX) was calculated using pilot study data (n=YYY). The pilot study estimated [outcome variance/effect size]. Using standard power calculation with 80% power and 0.05 alpha, accounting for 15% attrition, the required sample size is XXX."
The
2025 BMJ tutorial by Ying et al. provides an in-depth walkthrough of pilot-to-main-trial sample size planning if you need more detailed guidance.
Would you like help with a specific calculation, or do you have pilot data you'd like to work through?