Power Analysis Tool

How many participants does your study actually need?

Enter your effect size, significance level, and desired statistical power to find the minimum sample size your study needs. Adjust inputs to see how design choices trade off against recruitment cost.

Updated July 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

Imagine throwing a net to catch fish. The bigger the fish (effect size), the easier it is to detect with a small net. But if the fish are small and you want to be sure you catch them, you need a much larger net — and even then, some will slip through. Power analysis is how you figure out how big a net you need before you start fishing.

Statistical power balances three competing pressures: how big an effect you expect, how willing you are to falsely declare an effect (alpha), and how willing you are to miss a real one (beta). Tighten your tolerance on any one of these and the sample size climbs. Relax one and costs fall, but the study becomes less trustworthy in exactly that dimension. There is no free parameter to adjust.

The calculation this tool runs is the standard formula for a two-sided independent-samples t-test. It is the most commonly required form in academic ethics applications, grant proposals, and clinical trial registration. Understanding the inputs is more useful than memorizing the formula, because the judgment calls — what effect size is plausible, what false-negative risk is acceptable for this decision — are yours, not the calculator's.

When To Use This
Right tool, right situation

Use this tool when you are designing a study and need a defensible minimum enrollment target before seeking ethics approval, grant funding, or clinical trial registration. It is also useful when reviewing a completed study to assess whether a non-significant result reflects a true absence of effect or simply insufficient power to detect a real one.

This calculation is appropriate for continuous outcomes analyzed with a t-test — weight, blood pressure, test scores, reaction times. It does not directly apply to binary outcomes (proportions, event rates), survival analyses, or repeated-measures designs. For those designs, the sample size formula changes, and you would need a specialized calculation. If your outcome is dichotomous, the required sample can be substantially different from what this tool returns.

Do not use this result as your final answer when designing a multi-site clinical trial or a study where the regulatory submission standard is FDA or EMA-level documentation. Those contexts require a statistician to sign off on the power calculation and the assumptions behind it. This tool gives you the planning number and the right inputs to bring to that conversation — not a substitute for it.

Common Mistakes
Why results sometimes look wrong

Using the observed effect from a small pilot study as the planning effect. Pilot studies are run with small n precisely because the true effect is unknown. Small samples produce wildly variable estimates of effect size — a pilot of ten people might return d of 1.2 when the true population effect is 0.4. If you use the pilot estimate directly, you will size your full study on noise and end up with a dramatically underpowered design. Instead, take the lower confidence bound of the pilot estimate, or use a published meta-analytic estimate from related work.

Forgetting to convert between one-tailed and two-tailed tests. Some older software and textbooks present power tables for one-tailed tests. A one-tailed test at alpha 0.05 uses the same critical value as a two-tailed test at alpha 0.10. If you pull a sample size from a one-tailed table and run a two-tailed test (which most journals require by default), your study is underpowered by design. This tool uses two-tailed alpha throughout.

Neglecting attrition in any study with follow-up measurements. If your outcome is measured at six months and you expect 20% of participants to drop out, recruiting exactly the minimum sample means you finish with only 63 per group analyzable people per group instead of what you planned for — leaving the study powered for a larger effect than the one you designed to detect. Build the dropout buffer in before you recruit, not after you see the final data.

The Math
Worked examples and deeper derivation

The required sample size per group for a two-sample t-test is derived from the non-central t-distribution. The working formula is: n per group equals two times the quantity (z-alpha over two plus z-beta) squared, divided by d squared. Here z-alpha is 1.96 for the standard alpha of 0.05, z-beta is 0.8416 for the standard power of 0.80, and d is the effect size entered as 0.5. Plugging in those values gives 63 per group per group and 126 participants total.

The formula uses the two-tailed normal quantile for alpha because the test is two-sided — you are looking for effects in either direction. The one-tailed quantile for beta reflects that the power calculation asks only whether the test will detect a departure from the null, not which direction it goes. Both quantiles come from a standard normal approximation, which holds well for the t-distribution at sample sizes returned by typical power calculations.

After computing the base n, this tool inflates by a factor of one divided by (one minus the dropout fraction) to produce the recruitment target. If you enter a 15% dropout rate, you divide by 0.85, which increases the number to recruit so that you still have the target number of completers for analysis. The ceiling function (rounding up to the next whole person) is applied at every step — you cannot recruit fractional participants.

Standard clinical trial: medium effect, conventional thresholds
Effect size 0.5, alpha 0.05, power 0.80, dropout rate 15%
With a medium effect size of 0.5, standard alpha of 0.05, and power of 0.80, the formula gives 63 per group participants per group, or 126 participants total before accounting for attrition. After inflating for a 15% dropout rate, you need to recruit 150 total to recruit (75 per group) people. Your Type II error rate is 20%, meaning there is a 20% chance of missing the effect if it really exists.
Psychology replication study: small effect, strict alpha
Effect size 0.2, alpha 0.01, power 0.90, dropout rate 20%
Small effects demand large samples. With d of 0.2, a strict alpha of 0.01, and high power of 0.90, the minimum sample per group is 744 per group, totalling 1,488 participants completers. Recruiting 20% extra for dropout brings the total recruitment target to 1,860 total to recruit (930 per group). The Type II error rate at these settings is 10%. Researchers running replication studies often underestimate how many participants a small effect requires.
A/B test for a product feature: large effect expected, lean budget
Effect size 0.8, alpha 0.10, power 0.70, dropout rate 5%
When you expect a large effect and are running a low-stakes product test, you can relax both alpha to 0.10 and power to 0.70 to reduce recruitment burden. At d of 0.8, this yields 15 per group per group and 30 participants total. After a 5% dropout buffer, recruit 32 total to recruit (16 per group) users. The Type II error rate rises to 30% — acceptable for a feature test where a follow-up study is easy to run.
Expert Unlock
The thing most explanations skip

The formula implemented here assumes equal group sizes and equal variances (the pooled t-test). Both assumptions are optimistic. When group sizes are unequal, the harmonic mean of the group sizes enters the formula, and total n for a given power increases — sometimes substantially if the imbalance is severe. When variances are unequal (Welch's t-test), the effective degrees of freedom shrink, and you need slightly more participants than this formula returns. For a conservative planning estimate with expected imbalance, compute the harmonic mean of your target allocation and substitute it for n-per-group.

The normal approximation to the t-distribution quantiles is exact only as n approaches infinity. For very small true n values — under about fifteen per group — the normal approximation understates the required sample, and you should use a direct non-central t-distribution solver. The practical consequence: if this tool returns a very small sample, treat the output as a lower bound and verify with software that implements the exact non-central t CDF.

What sample size do I really need for statistical power?

What is a good effect size to use if I have no prior data?
If you have no pilot data, Cohen's convention is to use a medium effect size of 0.5 as a conservative planning assumption for social and behavioral research. This is deliberately cautious: if the true effect turns out to be smaller, your study will be underpowered, but if it is larger, you will simply have a more definitive result than you needed. When prior literature exists — even partial — use the smallest plausible effect from that literature to size your study defensively.
Why does halving the effect size roughly quadruple the required sample size?
The sample size formula for a two-sample t-test scales with the square of the inverse of the effect size: n is proportional to (1/d) squared. So cutting d in half multiplies the required n by roughly four. This is why detecting subtle effects is so expensive to study and why pilot work to nail down the expected effect size before committing to full recruitment is almost always worth the upfront cost.
What is the difference between Type I and Type II error, and why does it matter here?
Type I error (alpha) is a false positive — concluding an effect exists when it does not. Type II error (beta) is a false negative — missing a real effect. Statistical power is one minus beta: the probability of correctly detecting a real effect. Setting alpha to 0.05 and power to 0.80 means you accept a 5% false-positive risk and a 20% false-negative risk. Most fields treat these asymmetrically because publishing a false positive tends to waste more downstream resources than a missed finding, which is why alpha is set tighter than beta by convention.

Need something this doesn't cover?

Suggest a tool — we'll build it →