Two-arm trial with a continuous outcome
Plan two groups using means and a shared standard deviation.
Get the sample size or power for your study, with a power curve and a justification to paste.
Achieved power 80.1%
An a priori power analysis for a two-sided independent-samples t-test (at significance level α = 0.05) requires 64 per group (128 total) to detect d = 0.50. The target power was 80%, and the achieved power after rounding was 80.1%. Power was calculated using the noncentral t distribution. The equivalent R calculation is: pwr::pwr.t.test(n = 64, d = 0.5, sig.level = 0.05, type = "two.sample", alternative = "two.sided").
Start with a study design, then adapt its inputs to your research.
Plan two groups using means and a shared standard deviation.
Estimate the number of pairs for a within-person comparison.
Plan an equal-sized comparison across three groups.
Compare two event rates and account for attrition.
Estimate the observations needed to detect a correlation.
Find the detectable effect with a fixed sample size.
Set the assumptions for your study and take the results with you.
Select the test that matches your primary analysis.
Use a standardized effect or convert raw study values.
Choose significance level, power and expected dropout.
Copy the justification and download the power curve.
Use the effect that is meaningful for the question and the chosen design. To calculate Cohen's d or Hedges' g from your data, use the Effect Size Calculator.
μ₁ and μ₂ are group means; σ is their common standard deviation.
μdifference and σdifference are the mean and standard deviation of paired differences.
η² is the proportion of variance explained by the group factor.
p₁ and p₂ are the proportions in the two groups.
p0i and p1i are the null and alternative proportions for category i.
cov(X, Y) is the covariance; σX and σY are the standard deviations.
R²full and R²reduced are the explained-variance proportions for the full and reduced models.
| Measure | Small | Medium | Large |
|---|---|---|---|
| Cohen's d | .2 | .5 | .8 |
| Cohen's f | .10 | .25 | .40 |
| Cohen's h | .2 | .5 | .8 |
| Correlation r | .1 | .3 | .5 |
| Cohen's w | .1 | .3 | .5 |
| Cohen's f squared (f²) | .02 | .15 | .35 |
Reference: Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence Erlbaum Associates. Lakens: Sample size justification (2022).
These conventional benchmarks are context dependent, not a substitute for a substantive justification.
Prefer the smallest effect that would matter in practice, supported by prior studies or a pilot. Pilot estimates can be imprecise; consider uncertainty when planning.
A sample size calculation selects the smallest integer meeting the target power.
Power is the probability of rejecting the null hypothesis when the specified alternative is true. The calculator uses noncentral distributions for t, F and chi-square tests, and the stated approximations for correlation and proportions.
β is the probability of a false negative; H₀ is the null and H₁ the specified alternative.
n is per group; d is the standardized difference and z denotes a standard-normal quantile. This approximation assumes equal groups and a two-sided test.
For a two-sided independent t-test with d = 0.5 and α = 0.05, 63 per group falls short of 80% power; rounding up reaches the target.
| Sample size per group | Power |
|---|---|
| 63 | 0.7952 |
| 64 | 0.8015 |
Report the design, effect and its source, significance level, target and achieved power, sample size, and any allowance for dropout. The paragraph below uses the default study assumptions.
An a priori power analysis for a two-sided independent-samples t-test (at significance level α = 0.05) requires 64 per group (128 total) to detect d = 0.50. The target power was 80%, and the achieved power after rounding was 80.1%. Power was calculated using the noncentral t distribution. The equivalent R calculation is: pwr::pwr.t.test(n = 64, d = 0.5, sig.level = 0.05, type = "two.sample", alternative = "two.sided").
References: CONSORT 2010 statement
A power analysis estimates the probability of detecting a specified effect if it exists. An a priori analysis uses that probability to plan sample size before collecting data.
Choose a test, a significance level, a target power and an effect size. The calculator finds the smallest integer sample size that meets the target.
A common starting point is 80% power and a 0.05 significance level. Some clinical studies use 90% power, and multiple comparisons can require an adjusted significance level.
Use the smallest scientifically meaningful effect when possible. Cohen's d is a mean difference divided by a standard deviation; 0.2, 0.5 and 0.8 are conventional reference values, not universal rules.
A priori analysis finds a sample size; sensitivity analysis finds an effect detectable at a fixed sample size. Power calculated from the observed effect after a test does not add useful information about its result.
Divide the required sample by one minus the expected dropout fraction and round up. For example, 64 per group becomes 76 with 15% dropout.
Results depend on the selected test and approximation. For example, R pwr gives 64 per group for d = 0.5 in a two-sided t-test and 53 per group for a three-group ANOVA with f = 0.25; the correlation calculation uses a Fisher z approximation.
Independent t-tests, two proportions and ANOVA show group and total sizes. Correlation, chi-square and regression use the total sample size; paired tests use pairs.
Your inputs stay in your browser. Download SVG, 300 DPI PNG or CSV, and copy the justification or R code without signing in.
Calculate a sample size and prepare a clear justification.
Calculate your sample size