Statistics & Analysis

Sample Size

Reviewed bySatya R Panigrahi

Definition

Sample size is the number of participants, observations, or units included in a study. For studies that test for an effect, an adequate sample size, determined through power analysis, is essential for ensuring that a study has sufficient statistical power to detect a meaningful effect while maintaining acceptable Type I and Type II error rates.[3][4] The required sample size depends on the expected effect size, the desired power, the significance level, the variability of the outcome, and the study design.[3][4]

Explore the concept

How many is enough?

Change the effect size a stroke trial assumes and watch the required sample swing, then plan for dropout and see what enrolling too few costs in power.

Stroke rehabilitation trial, two groups, alpha 0.05, power 90%

0.30.450.60.80100200Assumed Cohen's dPer group105 per group
n per group for 90% power

Per group

105

Enroll for 20% dropout

132

per group, 264 in all

The planned trial: 105 per group

From a previous trial, d = 0.45. At alpha 0.05 and 90% power that needs 105 analyzable per group.

The big idea: For a study that tests an effect, sample size follows from the effect size, alpha, power and design, and the assumed effect size moves it most. Base the effect on the smallest important difference rather than an optimistic pilot, round up, and enroll extra for expected dropout. Descriptive studies size for precision and qualitative studies often for saturation instead.

The trial figures are the article's: d = 0.45, alpha 0.05 two sided, power 90%, 105 per group, 132 per group and 264 in all after allowing for 20% attrition (105 ÷ 0.8 = 131.25, rounded up). Other sample sizes and powers are computed with the noncentral t for a two group t test: d 0.30 needs 235 per group (294 to enroll, 588 in all), d 0.60 needs 60 and d 0.80 needs 34; with a true d of 0.45, 60 per group give 69% power, 34 give 45%, and 84 analyzable give 83%. About 106 = 132 × 0.8 (105.6), so 26 of 132 are lost; 21 of 105 are lost without the inflation. Slider marks are d 0.3, 0.45, 0.6 and 0.8.

Why it matters

Sample size directly determines a study's ability to produce reliable, interpretable results. An underpowered study with too few participants is unlikely to detect a true effect, producing null results that are uninformative and contributing to research waste. An unnecessarily large study wastes resources, delays completion, and may expose more participants to research procedures than needed. Funding agencies, ethics committees, and journal reviewers commonly expect a justified sample size calculation as evidence of rigorous study planning. Too small a sample leaves estimates imprecise, with wide confidence intervals; a larger sample reduces this random error but cannot remove systematic error (bias), and how far conclusions generalize depends on how the sample was selected, not only on its size.

How it works

Sample size calculation begins with specifying the statistical test to be used, the expected effect size, the significance level (typically alpha = 0.05), and the desired power (typically 80% or 90%).[1][4] Software tools (G*Power, R, Stata, SAS) compute the minimum sample size that satisfies these constraints.

The expected effect size is often the most challenging parameter to specify. Sources include pilot studies, published research on similar interventions, and the minimum clinically important difference (the smallest effect that would change clinical practice). Effect sizes from small pilot studies are imprecise and may overestimate the true effect, so they should not set the sample size on their own; the minimum clinically important difference is a safer basis.[3] Using an inflated effect size to justify a small, inexpensive study is a common pitfall.

Several design features affect the required sample size. Clustered designs (where participants are grouped within clusters such as hospitals or schools) require larger samples because of the intraclass correlation, quantified by the design effect.[2] Repeated measures designs can reduce the required sample size by using within subject correlations. Studies with high expected attrition must inflate the initial enrollment to maintain adequate power at the time of analysis.

For descriptive studies (such as prevalence estimation), sample size is determined by the desired precision of the estimate (width of the confidence interval) rather than by power to detect an effect.[2][3] For qualitative studies, sample size is often guided by data saturation rather than statistical power, although saturation is not the only rationale.

When to use it

Calculate sample size during the study planning phase, before data collection begins. Include the calculation and its assumptions in the study protocol, grant application, and ethics submission. Report the sample size achieved versus the target in the published paper. When interpreting published studies, consider whether the achieved sample size was adequate for the stated aims. If a study reports null results with a small sample, assess whether the study was sufficiently powered to detect a clinically meaningful effect.

Key takeaways

  • Sample size directly determines a study's ability to produce reliable, interpretable results.
  • Sample size calculation begins with specifying the statistical test to be used, the expected effect size, the significance level (typically alpha = 0.05), and the desired power (typically 80% or 90%).
  • Calculate sample size during the study planning phase, before data collection begins.
  • A common error is calculating sample size using an unrealistically large effect size to justify a smaller, cheaper study.

Common mistakes

  • A common error is calculating sample size using an unrealistically large effect size to justify a smaller, cheaper study.
  • Another mistake is failing to inflate for anticipated dropout, resulting in a final analyzable sample that is smaller than required.
  • Researchers sometimes neglect to account for the design effect in clustered studies, producing substantially underpowered analyses.
  • Using a post hoc power calculation to interpret null results is uninformative and should be avoided.[3]
  • Finally, rounding down instead of up when the formula produces a non integer can reduce power below the target.

Example

A team plans a two arm, parallel group randomized trial of a new rehabilitation protocol for stroke patients. Based on a previous trial, they expect a moderate effect size (Cohen's d = 0.45) on the primary outcome (Functional Independence Measure score at 12 weeks). At alpha = 0.05 and power = 0.90, the required sample size is 105 per group. Anticipating 20% attrition, they plan to enroll 132 per group, for a total of 264 participants. The power analysis is performed using G*Power and confirmed using the pwr package in R.

Test your understanding

5 questions that adapt as you go: answer two in a row correctly and they get harder.

Question 1 of 5

Scenario:

A calculation for d = 0.45, alpha = 0.05 and 90% power returns 104.7 participants per group.

Question:

What sample size should the team use?

Hardness: Interpret

Sources

  1. [1]Field A. Discovering Statistics Using IBM SPSS Statistics. 6th ed. SAGE Publications, 2024. ISBN 9781529630008
  2. [2]Cochran WG. Sampling Techniques. 3rd ed. Wiley, 1977. ISBN 9780471162407
  3. [3]Lakens D. Sample size justification. Collabra: Psychology. 2022;8(1):33267. doi:10.1525/collabra.33267
  4. [4]Cohen J. Statistical Power Analysis for the Behavioral Sciences. 2nd ed. Hillsdale, NJ: Lawrence Erlbaum Associates, 1988. ISBN 9780805802832

Cite this term

FullPaperguide. (2026, October 16). Sample Size. In Paperguide Research Glossary. https://paperguide.ai/research-glossary/sample-size/
In-text(Paperguide, 2026)

Related terms