How Many Participants? Sample Size for MRI Studies with SpinLab’s Power Calculator
Before a neuroimaging study is approved, someone will ask: how many participants do you need? Too few and a real effect is missed; too many and scanner time and participants’ time are wasted. The SpinLab Power Calculator answers the question in seconds and shows how power changes with sample size.

The four numbers that decide sample size
| Input | Meaning | Typical value |
|---|---|---|
| Effect size (Cohen’s d) | Difference between groups in standard deviation units | 0.2 small, 0.5 medium, 0.8 large |
| α (alpha) | Chance of a false positive you accept | 0.05 |
| Power (1 − β) | Chance of detecting a real effect | 0.80 or 0.90 |
| Test | Design of the comparison | Independent or paired t-test, correlation, ANOVA |
Fix any three of these and the fourth follows. Most often you choose d, α and power, and the calculator returns the sample size.
Step by step in SpinLab
- Open spinlab.mrispin.com and choose Power Calculator.
- Pick the test (for example, independent t-test, two-sided).
- Enter the effect size, α and target power.
- Enter the expected dropout rate so the tool can tell you how many to enrol.
- Read the result and the power curve, which shows power against sample size.
For d = 0.5, α = 0.05 and 80% power, SpinLab gives 64 participants per group (128 in total), with an achieved power of 80.15%. With 10% dropout you would enrol 72 per group.
Check it in Python
import math
from statsmodels.stats.power import TTestIndPower
analysis = TTestIndPower()
n = analysis.solve_power(effect_size=0.5, alpha=0.05, power=0.80)
n_group = math.ceil(n)
print(n_group) # 64
print(analysis.power(effect_size=0.5, nobs1=n_group, alpha=0.05)) # 0.8015
print(math.ceil(n_group / (1 - 0.10))) # 72 to enrol with 10% dropout
The same call gives 394 per group for d = 0.2 and 26 per group for d = 0.8, which shows why the assumed effect size matters more than anything else.
Where the effect size should come from
- A pilot study or a published study with the same measure and a similar population.
- A meta-analysis, which is usually less inflated than a single small study.
- The smallest effect that would matter clinically or scientifically.
Published neuroimaging effects are often overestimated because small studies only reach print when they find large effects, so a conservative d is safer.
Voxel-wise analyses
A power calculation for a single summary value (for example, mean CBF in a region, or hippocampal volume) is straightforward. Whole-brain voxel-wise analyses correct for many comparisons, so the effective α is much smaller and the true sample size needed is larger. If your main outcome is voxel-wise, base the calculation on a region of interest or use a dedicated imaging power tool.
Related: build the GLM for your study and the SpinLab overview.
Last reviewed: 7 November 2026. SpinLab and SpinCalc are free tools developed by MRISpin. Screenshots show the tools as they were on this date and may change as the tools are updated. Generated scripts should be checked before use on real data.



