Blog
Analysis made easy

Sample size with power analysis

Why 80% power, how to justify the effect size, and how many people each analysis needs.

Skari team6 min

It is an awkward moment at a proposal review when someone asks:

"So why that sample size?"

"That's about what people usually use…" is not much of an answer, and installing G*Power and clicking around often stalls at not knowing which values to enter. Here is how to set a sample size with power analysis, step by step from the start.

What power analysis is

Power analysis works out how many people you need so that a real effect is not missed. Four values are tied together, so fix three and the fourth follows.

ValueMeaning
Significance level αChance of claiming an effect that is not there (usually .05)
Power 1 − βChance of finding an effect that is there (usually .80)
Effect sizeSize of the difference or relationship you want to detect
Sample size nComputed once the other three are set

Why 80%?

Power of .80 means you can still miss a real effect 20% of the time. That 20% is the Type II error, β.

It is a convention proposed by Cohen: it tolerates misses (β = 20%) a little more than false positives (α = 5%) in exchange for a realistic sample. Studies that must not miss an effect sometimes raise it to .90, at the cost of more participants.

How to choose the effect size

The effect size is the most important and the hardest value in a power analysis, because the whole calculation rests on it.

  1. An effect size reported in prior studies
  2. A value from a pilot study
  3. The smallest difference that matters in practice

Fall back on Cohen's conventions only when there is truly no basis.

Analysis (index)SmallMediumLarge
t-test (d)0.20.50.8
ANOVA (f)0.100.250.40
Correlation (r)0.10.30.5
Chi-square (w)0.10.30.5

An example

Say you compare correct answers on a concentration task between students who studied with music and students who studied in silence.

  • Analysis — independent-samples t-test (two-sided)
  • Effect size — d = 0.5, based on prior studies
  • Significance level — α = .05
  • Power — .80

With these inputs you need 64 per group, 128 in total. The computed 63.77 is always rounded up. Allowing for 10% dropout, set a recruitment target of 141.

Different analyses need different numbers

Even for the same "medium effect", the number you need depends on the analysis. (α = .05, power .80)

AnalysisEffect sizeNeeded
Independent-samples t-testd = 0.564 per group (128 total)
Paired-samples t-testd = 0.534 pairs
One-way ANOVA (3 groups)f = 0.2553 per group (159 total)
Correlationr = 0.385
Chi-square test (df 2)w = 0.3108

Measuring the same people twice, the paired design gets by with far fewer participants.

Small effects need much bigger samples

Effect sizeNeeded per group
d = 0.826
d = 0.564
d = 0.3176
d = 0.2394

Halve the effect size and the sample grows about fourfold. That is why it is safer to plan with a conservative (smaller) effect size.

A priori vs post-hoc power

An a priori power analysis sets the sample size before data collection, and it is the standard method to report in a thesis.

By contrast, post-hoc power — "after a non-significant result, we computed power from the observed effect and it was low" — is considered meaningless. It is just the p-value expressed differently, so a large p always comes with low power. (At p = .05, post-hoc power is always about 50%.)

So once a study is done, report the effect size and its confidence interval instead, or state "the smallest effect this sample could have detected".

How to write it up

The required sample size was determined by power analysis. Assuming an effect size of d = 0.50 based on prior studies, α = .05 (two-sided) and power of .80, an independent-samples t-test required 64 participants per group (128 in total); allowing for 10% attrition, 141 participants were recruited.

Example sentence · the numbers are illustrative

Always state where the effect size comes from (which prior study). It is the first thing reviewers ask.

In Skari

In Skari's statistics workspace, Exploration → Power Analysis runs the calculation right in the browser, with no G*Power to install.

First pick the test. There are seven: one-sample, independent-samples and paired-samples t-tests, one-way ANOVA, correlation, two-proportion test and chi-square test. Then choose what to solve for — sample size, effect size, significance level or power — and enter the other three.

Pick what to solve for and enter the other three — the same d = 0.5, α = .05, power .80 as above
Pick what to solve for and enter the other three — the same d = 0.5, α = .05, power .80 as above

The report opens with the statistically required sample and the recruitment target with 10% attrition. It also says how far power drops if the true effect is smaller than assumed: in the example, if d were 0.375 (three quarters of the assumption), power would fall to 55.6%.

The power analysis report — 128 required, recruit 141
The power analysis report — 128 required, recruit 141

Size your own study

Opens Exploration → Power Analysis

Open Power Analysis

The required n for each effect size and the power at each sample size are laid out in tables.

Required n by effect size, power by sample size and power by effect size
Required n by effect size, power by sample size and power by effect size

In Exploration Simulation → Design Exploration, drag the sample size slider and switch the effect size and significance level to see how power changes right away.

Design exploration: vary sample size, effect size and α
Design exploration: vary sample size, effect size and α

Download the report as Word and the tables as Excel, ready for your proposal.

Wrapping up

The heart of power analysis is choosing an effect size you can justify and calculating before you collect data. If you can say "64 per group, for d = 0.5 and power .80" instead of "that's what people usually use", review questions get much less scary.

Want the theory behind it?The Academy's Statistical Errors and Power chapter covers Type I and II errors and effect sizes in depth →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data