Quick answer: Statistical power is the probability that a study detects an effect of a stated size when that effect is real, and effect size is how large the difference or relationship is in standardised or natural units. A power analysis fixes three of four quantities (alpha, power, effect size, sample size) and solves for the fourth. For a two-sample t-test with Cohen's d = 0.5, two-sided alpha of 0.05 and 80% power, you need about 64 participants per group.
Statistical power and effect size decide whether a study can answer its own question before a single observation is collected. A project can be perfectly executed, with clean data and the right test, and still be worthless because it was never large enough to detect the effect it was looking for. Power analysis is the step that prevents that, and effect size is the input most researchers find hardest to supply.
This guide covers Cohen's d worked from group statistics, the sample size for a t-test by hand and in G*Power, R and Python, the minimum detectable effect, and how to recognise an underpowered study. Related ground is covered elsewhere: the logic of the p-value is in p-value explained, the trade-off between false positives and false negatives is in Type I and Type II errors explained, and margin-of-error sizing for prevalence surveys is in how to calculate sample size for a survey.
What Statistical Power Means
Power is the probability that your study will detect an effect of a given size, if that effect is genuinely there. Formally it is 1 − β, where β is the probability of a Type II error (missing a real effect). A study with 80% power has a one-in-five chance of returning a non-significant result even when the effect you planned for exists.
Four quantities are locked together. Fix any three and the fourth is determined:
| Quantity | Symbol | Typical setting | Who decides it |
|---|---|---|---|
| Significance level | α | 0.05 (two-sided) | Convention, regulator or journal |
| Power | 1 − β | 0.80 or 0.90 | The researcher, often guided by funder or ethics committee |
| Effect size | d, h, f, r, OR | The input you must justify | Prior evidence or the smallest effect that matters |
| Sample size | n | The output you usually solve for | Follows from the other three |
This is why "how many samples do I need?" cannot be answered without "how small an effect do you care about?". They are the same question asked from opposite ends.
Three points about power are routinely misunderstood:
- Power belongs to a design, not to a result. Once the data are in, the relevant summary is the confidence interval, not a recalculated power.
- Power is always "power to detect something". A study has 80% power to detect d = 0.5, and perhaps 30% power to detect d = 0.25. Power quoted without its effect size means nothing.
- Higher alpha buys power, at a price. Moving from α = 0.05 to 0.10 increases power but doubles the false positive rate.
The 80% convention comes from Jacob Cohen, who treated a false negative as roughly four times less serious than a false positive (β = 0.20 against α = 0.05). Clinical and confirmatory studies often use 90%.
Effect Size: The Number That Actually Matters
A p-value tells you whether an effect is distinguishable from zero given your sample. An effect size tells you how big the effect is. Only the second is comparable across studies, only the second feeds a power calculation, and only the second answers a practical question such as "is this worth rolling out?".
Effect sizes are either unstandardised (3.2 kg, 1.8 percentage points, ₹420 per customer), which decision makers understand, or standardised (Cohen's d, Pearson r, Cohen's f, odds ratios), which compare across scales and are what power software asks for.
Good practice is to plan with the standardised measure and report in both.
Cohen's d for Comparing Two Means
d = (mean₁ − mean₂) / pooled standard deviation
The pooled standard deviation weights each group's variance by its degrees of freedom:
s_pooled = √( [ (n₁ − 1)s₁² + (n₂ − 1)s₂² ] / (n₁ + n₂ − 2) )
| d | Conventional label | Approximate overlap of the two distributions | Probability a random member of group 1 beats a random member of group 2 |
|---|---|---|---|
| 0.2 | Small | about 85% | 56% |
| 0.5 | Medium | about 67% | 64% |
| 0.8 | Large | about 53% | 71% |
| 1.2 | Very large | about 38% | 80% |
The last column (the "common language" effect size, Φ(d/√2)) is often the easiest way to explain d to a non-specialist audience.
Those labels are conventions from behavioural science, and they travel badly. A d of 0.1 in a national programme reaching 50 million people can be enormously valuable; a d of 1.0 on a surrogate laboratory marker may be clinically irrelevant. Always translate back to natural units before drawing conclusions.
Worked Example: Computing Cohen's d From Group Summaries
Illustrative data. A researcher compares end-of-course test scores between students taught with a new blended-learning module and students taught conventionally.
| Group | n | Mean score | Standard deviation |
|---|---|---|---|
| Blended module | 40 | 72.4 | 10.2 |
| Conventional | 38 | 66.8 | 11.6 |
Step 1: Square the standard deviations. 10.2² = 104.04 and 11.6² = 134.56.
Step 2: Weight by degrees of freedom. (40 − 1) × 104.04 = 39 × 104.04 = 4,057.56 (38 − 1) × 134.56 = 37 × 134.56 = 4,978.72 Sum = 9,036.28
Step 3: Divide by the total degrees of freedom and take the square root. n₁ + n₂ − 2 = 76 9,036.28 / 76 = 118.90 √118.90 = 10.90, so s_pooled ≈ 10.90
Step 4: Divide the mean difference by the pooled SD. 72.4 − 66.8 = 5.6 d = 5.6 / 10.90 = 0.51
Step 5: Apply the small-sample correction (Hedges' g). J = 1 − 3 / (4 × df − 1) = 1 − 3 / 303 = 0.990 g = 0.51 × 0.990 = 0.51 (0.508 to three decimals)
Step 6: Put an interval around it. An approximate standard error is SE(d) = √( (n₁ + n₂) / (n₁n₂) + d² / (2(n₁ + n₂)) ) = √( 78/1,520 + 0.264/156 ) = √(0.0513 + 0.0017) = √0.0530 = 0.230. 95% CI ≈ 0.51 ± 1.96 × 0.230 = 0.06 to 0.96.
Interpretation. The point estimate is a medium effect, about 5.6 marks. The interval is wide: the data are consistent with anything from a trivial effect to a large one. This is typical of studies with roughly 40 per group, and it is exactly the information a power calculation for a follow-up study needs. If you plan the next study around d = 0.51 you are trusting a single noisy estimate; if you plan around a more cautious value such as d = 0.4, you are more likely to end up adequately powered.
Effect Sizes for Proportions
For binary outcomes, three measures are common:
- Absolute difference: 45% versus 35% is 10 percentage points.
- Relative difference (risk ratio or relative lift): 45 / 35 = 1.29, a 29% relative increase.
- Cohen's h: h = 2·arcsin√p₁ − 2·arcsin√p₂, used in power formulas. For 0.45 against 0.35, h = 0.205.
Report the absolute difference to stakeholders. Relative lift on a small base is one of the most reliably misleading statistics in business and health reporting: a rise from 1% to 2% is a 100% relative increase and a one-point absolute change.
Effect Sizes for Associations and More Than Two Groups
| Measure | Used for | Rough benchmarks |
|---|---|---|
| Pearson r | Two continuous variables | 0.1 small, 0.3 medium, 0.5 large |
| R² | Variance explained by a regression model | Highly domain-dependent |
| Cohen's f | One-way ANOVA | 0.10 small, 0.25 medium, 0.40 large |
| Cohen's f² | Predictors in multiple regression | 0.02, 0.15, 0.35 |
| Odds ratio | Binary outcome, case-control or logistic model | 1.0 means no effect |
| Risk ratio | Binary outcome, cohort or trial | Easier to interpret than an odds ratio |
Which test produces which effect size is covered in choosing the right statistical test, and the ANOVA side in ANOVA vs t-test.
How to Do a Power Analysis Step by Step
A power analysis (an a priori sample size calculation) follows the same sequence regardless of the test:
- Write down the primary outcome and comparison. Power the primary outcome; secondary outcomes are a bonus.
- Choose the statistical test you will actually run. The sample size depends on the test.
- Set alpha and sidedness. Usually 0.05 two-sided, adjusted if several primary comparisons are corrected for multiplicity.
- Set the target power. 0.80 as a minimum, 0.90 where a missed effect is costly.
- Justify the effect size. This is the hard part, covered in its own section below.
- Estimate the variability. For natural-unit planning you need the standard deviation of the outcome, ideally from a pilot or previous data.
- Solve for n, by formula, in G*Power, or in R or Python.
- Inflate for attrition, non-response and design effects. If you expect 15% dropout, divide by 0.85.
- Run a sensitivity check. Recalculate with a slightly smaller effect and a slightly larger SD. If the required sample doubles, your plan is fragile.
- Document the inputs, sources and software in the protocol.
For a broader view of where this sits in a study, see hypothesis testing steps and the general sample size calculation guide.
Sample Size for a t-Test: Worked Example
The most common power analysis in practice is the sample size for a two-sample t-test. The normal-approximation formula for equal groups is:
n per group = 2 × (z₁₋α/₂ + z₁₋β)² / d²
where z₁₋α/₂ is the critical value for two-sided alpha (1.96 for α = 0.05) and z₁₋β is the value for the target power (0.8416 for 80%, 1.2816 for 90%).
Worked example (illustrative planning values). We want to detect d = 0.5 with α = 0.05 two-sided and 80% power.
Step 1: Look up the z values. z₀.₉₇₅ = 1.96 and z₀.₈₀ = 0.8416.
Step 2: Add them and square. 1.96 + 0.8416 = 2.8016 2.8016² = 7.849
Step 3: Multiply by 2 and divide by d². d² = 0.5² = 0.25 n = 2 × 7.849 / 0.25 = 15.698 / 0.25 = 62.8
Step 4: Correct for using the t distribution. The normal formula slightly underestimates n because the real test uses a t distribution with estimated variance. A simple correction (Guenther's) adds z²₁₋α/₂ / 4 = 1.96² / 4 = 0.96: 62.8 + 0.96 = 63.8, rounded up to 64 per group, 128 in total.
Step 5: Check against exact software. An exact calculation using the noncentral t distribution, as in G*Power, R's pwr package or Python's statsmodels, also returns 64 per group (achieved power 0.801). With 63 per group the power is 0.795, just under target, which is why you always round up.
Step 6: Allow for attrition. If 10% of participants are expected to drop out: 64 / 0.90 = 71.1, so recruit 72 per group.
The same arithmetic gives the familiar rule of thumb: 2 × 7.85 ≈ 16, so n ≈ 16 / d² per group at α = 0.05 and 80% power. For 90% power the constant becomes about 21 (2 × (1.96 + 1.2816)² = 21.0).
Planning in Natural Units
If you know the outcome's standard deviation, you can plan directly in units. Suppose the SD of systolic blood pressure in your population is 12 mmHg and the smallest worthwhile reduction is 5 mmHg. Then d = 5 / 12 = 0.417, d² = 0.174, and n = 15.70 / 0.174 + 0.96 = 90.4 + 0.96 = 91.4, so 92 per group (the exact t-based answer is also 92). A reliable SD estimate matters as much as the target difference: if the true SD turns out to be 15 mmHg, d falls to 0.33 and you would need 143 per group.
The Cost of Small Effects
For a two-sample t-test at α = 0.05 two-sided (exact t-based values):
| Effect size (d) | n per group, 80% power | Total, 80% power | n per group, 90% power |
|---|---|---|---|
| 1.0 | 17 | 34 | 23 |
| 0.8 | 26 | 52 | 34 |
| 0.5 | 64 | 128 | 86 |
| 0.4 | 100 | 200 | 133 |
| 0.3 | 176 | 352 | 235 |
| 0.2 | 394 | 788 | 527 |
| 0.1 | 1,571 | 3,142 | 2,103 |
The relationship is inverse-square: halve the effect size and the sample roughly quadruples. This single fact explains why detecting small marketing lifts requires enormous traffic, why many published studies are underpowered, and why "we will just collect a bit more data" rarely rescues a design that was aimed at too small an effect.
Sample Size for Other Common Designs
The same logic extends to other tests. Some reference values at α = 0.05 and 80% power:
| Design | Effect size | Required sample |
|---|---|---|
| Paired t-test (before and after) | d_z = 0.5 | 34 pairs |
| Two proportions, 35% vs 45% | h = 0.205 | about 188 per group |
| One-way ANOVA, 3 groups | f = 0.25 | 159 total (53 per group) |
| Pearson correlation | r = 0.3 | about 85 |
| Chi-square, 2 × 2 table | w = 0.3 | about 88 |
For the two-proportion case the hand formula is n = ((z₁₋α/₂ + z₁₋β) / h)² = (2.8016 / 0.2045)² = 187.6, rounded up to 188 per group. For the correlation case, the Fisher transformation gives n = ((z₁₋α/₂ + z₁₋β) / arctanh(r))² + 3 = (2.8016 / 0.3095)² + 3 = 81.9 + 3 = 84.9, so 85 (exact methods give 84).
The paired figure needs care. d_z is the mean of the differences divided by the SD of the differences, and it depends on the correlation between the two measurements: d_z = d / √(2(1 − ρ)). With ρ = 0.5, d_z equals d; with ρ = 0.8, d_z is 1.58 × d, and the sample needed falls sharply. This is why paired designs are so efficient when the pairing is strong.
Minimum Detectable Effect
Turn the calculation around when the sample size is fixed by budget, by the number of patients in a registry, or by how many customers you actually have. The minimum detectable effect (MDE) is the smallest true effect your study could detect with the stated power:
MDE ≈ (z₁₋α/₂ + z₁₋β) × σ × √(2/n) ≈ 2.8 × σ × √(2/n)
for a two-group comparison at 80% power and α = 0.05, with n per group. In standardised terms, MDE_d ≈ 2.8 × √(2/n).
| n per group | MDE as Cohen's d (exact, 80% power) |
|---|---|
| 20 | 0.91 |
| 30 | 0.74 |
| 50 | 0.57 |
| 100 | 0.40 |
| 400 | about 0.20 |
A thesis study with 30 per group can reliably detect only large effects (d of about 0.74). If the plausible effect is medium, d = 0.5, the same study has only about 48% power: a coin toss.
Worked example (illustrative). An online experiment has 5,000 users per arm and a 4% baseline conversion rate. For a proportion, σ = √(p(1 − p)) = √(0.04 × 0.96) = √0.0384 = 0.196. √(2/5,000) = √0.0004 = 0.02 MDE ≈ 2.8016 × 0.196 × 0.02 = 0.0110, about 1.1 percentage points, or a relative lift of roughly 27% (from 4.0% to 5.1%).
If the change being tested plausibly moves conversion by 5% relative (0.2 points), the test cannot answer the question. Running it anyway produces a null result that will be misread as "the change did nothing". Calculating the MDE before launching an experiment is the cheapest way to avoid wasting a month. The specifics of experiment design, peeking and stopping rules are in the A/B testing statistics guide, so they are not repeated here.
Where the Effect Size Estimate Comes From
The honest answer is one of four sources, in descending order of quality:
- Your own historical or pilot data. Past experiments, routine monitoring data, existing variation in the metric. This is the best available, but a small pilot gives a noisy effect estimate; use pilots mainly to estimate the SD, not the effect.
- Published literature in the same domain. Adjust downward. Published effects are inflated by publication bias and by the "winner's curse": studies that happened to observe large effects are more likely to reach significance and be published. A meta-analytic estimate is safer than a single study.
- The smallest effect that would change a decision (the smallest effect size of interest). Often the most defensible choice: "we would only roll this out if it lifted retention by 2 points, so power the study for 2 points."
- Convention. Cohen's medium (d = 0.5). Use only when nothing else exists, and say so plainly in the protocol.
Option 3 reframes "what effect do we expect?" (a guess) as "what effect matters?" (a decision), and it is the framing that survives scrutiny from ethics committees, examiners and funders.
Underpowered Studies and Why They Mislead
An underpowered study is one whose sample is too small to detect plausible effects with reasonable probability. The obvious problem is false negatives: real effects are missed. The less obvious problems are worse.
| Problem | What happens | Consequence |
|---|---|---|
| Missed effects | Non-significant results despite a real effect | Useful interventions abandoned |
| Inflated estimates | Only overestimates cross the significance threshold | Published effects exaggerated, often by 50% or more |
| Low positive predictive value | A larger share of significant findings are false positives | Poor replication rates |
| Ethical cost | Participants exposed to burden or risk for an uninformative study | Ethics committees increasingly reject such designs |
The inflation effect is easy to see. If the true d is 0.3 and each group has 30 participants, the smallest observed d that reaches p < 0.05 is about 0.52. Any significant result from such a study must therefore overstate the true effect, typically by a factor of two or more. Future studies planned on that estimate are then underpowered in turn. More on this pattern in common statistical mistakes in research.
What Not to Do: Post-Hoc Power
Computing "observed power" from the effect found in your own data adds no information. It is a direct function of the p-value: a non-significant result always has low observed power, and a result with p = 0.05 always has observed power of about 50%. Reviewers who ask for post-hoc power are better served by:
- the confidence interval for the effect size, which shows which effects the data rule out; and
- a sensitivity analysis stating the effect size the achieved sample could have detected with 80% power (the MDE of the study as run).
Variance Reduction: Power Without More Sample
If the sample is capped, you can still buy power by reducing σ, because the effect size in standard deviation units grows as noise falls.
| Technique | How it helps | Where it applies |
|---|---|---|
| Paired or within-subject design | Removes between-subject variation | Before-after, matched pairs, crossover trials |
| Stratification or blocking | Balances known sources of variation | Surveys, randomised trials, field plots |
| Covariate adjustment (ANCOVA, CUPED) | Removes variance explained by baseline measures | Experiments with pre-period or baseline data |
| Better measurement | Reduces instrument and rater noise | Laboratory, sensor and questionnaire data |
| Repeated measurement and averaging | Reduces within-subject noise | Outcomes with day-to-day fluctuation |
| Winsorising heavy tails | Reduces variance inflation from outliers | Skewed revenue or cost metrics |
Adjusting for a baseline measure that correlates ρ with the outcome reduces the residual variance by a factor of (1 − ρ²). With ρ = 0.6 the variance falls by 36%, so the required sample falls by about the same proportion: 64 per group becomes about 41. A paired design with a pairing correlation of 0.8 can cut the sample by more than half. These options are usually cheaper than doubling recruitment. Regression-based adjustment is explained in regression analysis explained.
Clustering Works Against You
When participants are recruited in groups (villages, schools, wards, stores), outcomes within a cluster are correlated and the effective sample is smaller than the headcount. The design effect is DEFF = 1 + (m − 1) × ICC, where m is the cluster size and ICC is the intraclass correlation. With 20 per cluster and ICC = 0.05, DEFF = 1.95, so the individually randomised sample must be nearly doubled. Cluster sampling for surveys is treated in household survey sample size. Serial correlation in monitoring data acts the same way, as shown in how many years of data you need to detect an air quality trend.
Running the Calculation in G*Power, R and Python
G*Power is free, widely cited and covers most standard designs. For the worked example above:
- Test family: t tests.
- Statistical test: Means, difference between two independent means (two groups).
- Type of power analysis: A priori, compute required sample size.
- Tails: Two. Effect size d: 0.5. α err prob: 0.05. Power (1 − β err prob): 0.80. Allocation ratio N2/N1: 1.
- Calculate. G*Power reports 64 per group, total 128, actual power 0.801.
The "Determine" button beside the effect size field will compute d from two means and SDs, which is a convenient check on hand calculations like the Cohen's d example earlier. For a sensitivity analysis (MDE), change the analysis type to "Sensitivity: compute required effect size" and enter your fixed n.
R (pwr package). The call for the same problem is:
pwr.t.test(d = 0.5, sig.level = 0.05, power = 0.80, type = "two.sample")
Leave out power and supply n instead to get achieved power, or leave out d to get the MDE. Companion functions cover two proportions (pwr.2p.test), ANOVA (pwr.anova.test), correlation (pwr.r.test) and chi-square (pwr.chisq.test). For more on R workflows see R programming for statistics.
Python (statsmodels). Import TTestIndPower from statsmodels.stats.power and call:
TTestIndPower().solve_power(effect_size=0.5, alpha=0.05, power=0.80)
This returns about 63.8, which rounds up to 64.
When to Simulate Instead
For clustering, repeated measures, mixed models, non-normal outcomes or interim analyses, simulate: generate data under the assumed effect and design, run the planned analysis, repeat 1,000 to 10,000 times and count the share of significant results. That share is the power; vary n until it reaches the target. Simulation also forces you to write the analysis plan before the data exist.
Statistical Power and Effect Size in Reporting
Every comparative result should carry three things:
- The effect size in natural units and, where useful, standardised units: "scores rose 5.6 marks (d = 0.51)".
- A confidence interval: "95% CI for d: 0.06 to 0.96".
- The p-value: as one input among three, not the headline.
In the methods section, report the a priori power analysis in a single sentence that a reader could reproduce: "A sample of 64 per group provides 80% power to detect a standardised difference of d = 0.5 with a two-sided α of 0.05 (G*Power 3.1); allowing for 10% attrition, 72 per group were recruited." If the outcome turns out noisier than assumed, a blinded interim re-estimate of the pooled variance lets you correct n without inflating the Type I error rate. If a result is not significant, the interval does all the work: it separates "we showed the effect is small" from "we learned nothing". Layout and wording for tables are covered in presenting statistical results.
How DSTechnoverse Helps
DSTechnoverse supports researchers, PhD scholars, hospitals, NGOs and businesses with study design and power analysis: choosing and justifying the effect size, calculating sample size in G*Power, R or Python, simulation for clustered or longitudinal designs, and writing the sample size justification for protocols and ethics submissions. After data collection we run the analysis, compute effect sizes with confidence intervals and prepare results tables. The analysis and explanation are delivered to you; authorship of any thesis stays with the researcher. See statistical research and data analysis, socio-economic and baseline surveys and data analytics, or contact us to discuss your study.
Frequently Asked Questions
What is statistical power? Statistical power is the probability that a study will detect an effect of a stated size, at a chosen significance level, when that effect really exists. It equals 1 − β, where β is the Type II error rate. Most research targets at least 80% power, and 90% is common in clinical and confirmatory studies.
What is effect size and why does it matter? Effect size measures how large a difference or relationship is, either in natural units or in standardised form such as Cohen's d or Pearson r. Unlike a p-value, it does not grow with sample size, so it can be compared across studies, and it is the essential input to any sample size calculation.
How do I calculate Cohen's d? Subtract one group mean from the other and divide by the pooled standard deviation, which weights each group's variance by its degrees of freedom. For small samples, multiply by the Hedges correction, 1 − 3/(4df − 1). Always report a confidence interval alongside d, because single estimates from modest samples are imprecise.
What sample size do I need for a t-test? For two independent groups at α = 0.05 two-sided and 80% power, n per group is approximately 16 divided by d². For d = 0.5 that gives 64 per group; for d = 0.3 it gives 176. Add allowance for dropout and, if participants are clustered, for the design effect.
How do I use G*Power for a sample size calculation? Choose the test family and specific test, select an a priori analysis, then enter the effect size, alpha, desired power, tails and allocation ratio. G*Power returns the required sample per group and the achieved power. The Determine button can calculate the effect size from means and standard deviations.
What is the minimum detectable effect? The minimum detectable effect is the smallest true effect a study of a fixed size can detect with the chosen power and alpha. For two groups at 80% power it is roughly 2.8 times σ times √(2/n). Calculate it before launching any fixed-size study to check whether the question can be answered.
What happens if my study is underpowered? You are likely to miss real effects, and any significant results you do obtain will tend to overstate the true effect size. With very low power, even the direction of a significant effect can be wrong. Report confidence intervals and the effect size the study could have detected, and treat findings as preliminary.
Can I increase power without collecting more data? Yes. Paired or within-subject designs, stratification, adjustment for baseline covariates, more precise measurement and averaging repeated measurements all reduce variability, which raises the standardised effect size. Adjusting for a baseline measure correlated 0.6 with the outcome cuts the required sample by about a third.
Should I report post-hoc power? No. Observed power calculated from your own effect estimate is a direct function of the p-value and adds no new information. Report the effect size with its confidence interval instead, and if helpful, state the effect size the achieved sample had 80% power to detect.
Does power analysis apply to surveys? It applies whenever a survey compares groups or measures change between rounds, for example baseline against endline. For estimating a single prevalence or mean, precision is set by the margin of error instead; that approach is explained in how to calculate sample size for a survey.
Need the statistics done properly? DSTechnoverse runs study design, sample size calculation, hypothesis testing and reporting for research teams, businesses and PhD scholars — in R, Python, SPSS and Stata. We are based in Indore, Madhya Pradesh and work with clients across India. See our statistical research and data analysis and data analytics services, or talk to our team about your study.
Sources and Further Reading
Official and primary sources for the standards, rules and data discussed on this page.
- American Statistical Association: statement on p-values (2016): six principles for interpreting p-values correctly.
- G*Power (Heinrich Heine University Düsseldorf): free software for power analysis and sample size.
- UCLA Statistical Methods and Data Analytics: worked examples for SPSS, R, Stata and SAS.
- NIST/SEMATECH e-Handbook of Statistical Methods: a free reference on statistical methods and tests.