Please verify you are human to use the calculator.
Sample size determination is the process of computing how many observations a study needs to reliably detect an effect of a given magnitude. It is a critical step in study design because an underpowered study wastes resources and may fail to detect real effects, while an unnecessarily large study is costly and, in clinical settings, potentially unethical.
The calculation requires specifying four quantities: the desired significance level (α), the target power (typically 80% or 90%), the minimum effect size of practical interest, and an estimate of variability (such as the standard deviation). The most common mistake is using an unrealistic effect size—plugging in an optimistically large effect to justify a conveniently small sample. Always base effect size estimates on pilot data, published literature, or the smallest difference that would be clinically or practically meaningful.
After computing the base sample size, always inflate for expected dropouts or missing data. Standard deviation estimates from small pilot studies can be unreliable, so consider running a sensitivity analysis across a range of plausible variability values. Sample size planning must be done before data collection; retrospective calculations on completed studies are circular and uninformative.
A test result carries weight only when the hypothesis, the sample size and the decision rule were fixed before the data arrived. Every pilot we scope is built the same way, with success criteria and kill gates agreed in advance. That work is described under AI pilot design.
Interactive probability distribution calculators. Visualise Normal, Binomial, Poisson, Beta, and 12 more distributions with live PDF/CDF charts.
Try itFrequentist and Bayesian A/B test analysis. Z-test for proportions, Beta posterior distributions, probability of winning, and expected loss.
Try itDiagnostic test metrics: sensitivity, specificity, PPV, NPV, odds ratio, relative risk, NNT, and likelihood ratios with 95% confidence intervals.
Try itCalculate the statistical power of a test or determine the sample size needed to achieve a desired power level.
Try itCalculate Cohen's d and Hedge's g to quantify the magnitude of difference between two groups.
Try itCalculate confidence intervals for means and proportions. Choose your confidence level and get the interval estimate.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about the sample size calculator