Sample Size Power Calculator for Effect Size & Power

Sample Size Power Calculator

Find how many subjects a hypothesis test needs to detect a real effect. Enter the effect size, significance level alpha, and desired statistical power, and this power analysis returns the sample size per group and total N using the z-based approximation.

🎯Power Analysis Presets

📝Study Design Inputs

Used when means test with direct d. 0.2 small, 0.5 medium, 0.8 large.

Used for the two proportions test. Enter a value between 0 and 1.

1 means equal groups. 2 means group 2 is twice as large.

Inflates the enrolled total so completers still meet target N.

Sample size per group 0 subjects in each arm
Total sample size 0 across all groups
Effect size (Cohen's d) 0 standardized magnitude
z_alpha + z_beta 0 critical z sum

🔢Formula Snapshot

zÎąAlpha critical z
zβPower critical z
dEffect size
nSize per group

📏Cohen's d Effect-Size Benchmarks

LabelCohen's dOverlapMeaningExample Context
Trivial0.10~92%Barely detectableHuge n needed to see it
Small0.20~85%Real but subtleTypical psychology finding
Medium0.50~67%Visible to the eyeNoticeable group gap
Large0.80~53%Obvious differenceStrong treatment response
Very large1.20~38%Groups barely overlapDramatic, rare effect

📈Sample Size by Effect Size & Power

Cohen's dPower 0.70Power 0.80Power 0.90Power 0.95
Values are per group for a two-sample two-tailed test at the alpha you selected.

Table recomputes with your alpha and tails. Cells show sample size per group for a two-sample means test.

📐Critical z-Values for Alpha & Power

SettingOne-Tailed zTwo-Tailed zPowerz_beta
alpha 0.101.28161.64490.700.5244
alpha 0.051.64491.96000.800.8416
alpha 0.0251.96002.24140.851.0364
alpha 0.012.32632.57580.901.2816
alpha 0.0013.09023.29050.951.6449

🗂Design Comparison Grid

ScenarioTestEffectAlphaPowern / Group
Comparison sizes appear after calculation.

Each row is computed live so you can weigh how design choices move the required sample size.

⚙Full Formula Breakdown

Critical z for alphaz_alpha uses alpha/2 when two-tailed and alpha when one-tailed. At alpha 0.05 two-tailed, z_alpha = 1.96; one-tailed = 1.645.
Critical z for powerz_beta is the z for the desired power. Power 0.80 gives z_beta = 0.8416 and power 0.90 gives 1.2816.
Cohen's dd = (mean1 – mean2) / SD. In raw mode this calculator forms d from the difference and SD you enter.
Two-sample meansn per group = 2 × (z_alpha + z_beta)² / d², then round up to a whole subject count.
One-sample meann = ((z_alpha + z_beta) / d)². Only one group is enrolled, so total N equals n.
Two proportionsn per group = (z_alpha√(2̄p(1–̄p)) + z_beta√(p1(1–p1)+p2(1–p2)))² / (p1–p2)², with ̄p = (p1+p2)/2.
Allocation ratioAn unequal ratio k scales the equal-group n by (1 + 1/k)/2 for arm 1 and multiplies for arm 2, raising total N.
Dropout inflationEnrolled = target / (1 – dropout rate), so completers still reach the planned sample after attrition.

📋Power Analysis Reference Values

InputCommon ChoiceHow It Is UsedEffect on Sample Size
Effect size d0.2 to 0.8Sits in the denominator as d²Smaller d raises n sharply
Alpha0.05 or 0.01Sets z_alpha critical valueStricter alpha raises n
Power0.80 or 0.90Sets z_beta critical valueHigher power raises n
TailsTwo-tailedSplits alpha into both tailsTwo-tailed needs more than one
Allocation ratio1:1Rebalances the two armsUnequal groups raise total N
Dropout10% to 20%Inflates the enrolled countHigher dropout raises enrollment

💡Practical Power Analysis Tips

Effect size tip: Sample size scales with 1 / d², so halving the effect you want to detect roughly quadruples the subjects you must recruit. Pin down a realistic effect before you commit to a number.
Power tip: Power 0.80 still misses a true effect one time in five. If a missed finding is costly, budget for 0.90 power and accept the larger sample it demands.

Your goal is to plan a study and wonder about its validity. It is not merely about collecting data, but about whether you’ll have enough when you analyze your findings to draw any conclusion. Doing an underpowered study harms science’s reputation. It cost money without contributing to the result; it gives researcher inconclusive answers.

How many people should you invite to participate? Before you send your first email out, you want a solid number to shoot for. Something beyond guesswork or gut feeling. Enter power analysis: This mathematical tool calculate how many people to recruit so you’ll have a good shot at achieving meaningful results.

How to Find the Right Number of People for Your Study

After you learn the lingo, it’s easy to grasp core inputs. The first is effect size, the type and size of real-world impact you anticipate seeing from your treatment. Are you evaluating a drug with dramatic effects? Or is it a slight nudge that doesn’t move the needle much at all? This expected effect can be expressed as a number called Cohen’s d (pronounced co-hen’s d). In general, a Cohen’s d of 0.5 is regarded as a medium difference. It’s a noticeable gap between group results.

To get below that requires a smaller effect (say, 0.2) and that will require a larger study (meaning more money), as you’ll see next. Roughly halving your anticipated effect size roughly quadruples your sample size. That’s the trade-off to get greater accuracy.

Finally, there’s power and alpha. Power is your protection from failing to detect something real (a “safety net”). If you set your power at 80%, then you have an 80% chance of detecting the true difference should it exist. That means that one-in-five times you’ll be wrong: you’ll conclude that there’s no difference when in fact there was. In clinical trials, the stakes are high and the miss-rate seem unacceptably high. Many researchers insist on having power at the ninety percent level.

Alpha is your risk of calling something a finding when, in fact, it isn’t. Your standard is typically zero point zero five. Plug these numbers into the calculator, and it do the math for you. No need to fiddle around with those pesky normal distribution tables yourself. But that’s the beauty of it: it’s a straightforward number, but it packs a punch. This number represent exactly how many people need to complete your study.

And by “how many,” we generally mean “recruit how many people to actualy show up,” as opposed to merely “signing up.” If you anticipate some people dropping out before completion, increase your recruitment estimates to accommodate this loss. Otherwise, you risk turning a well-designed study into an underpowered mess. With a single click, you can enter in the projected dropout rate and adjust the bottom-line number based off reality instead of a best-case scenario.

Determining sample size is usually considered a bureaucratic hassle. Most choose some number based on their budget constraints and then hope it’s sufficient. This approach increase the chance of errors and bias. Conducting proper power analysis makes you face the feasibility of your own hypothesis at an earlier stage. You require five thousand participants to detect a small effect, but you has a budget for only fifty. You’re now facing a design issue. One that can’t be solved through math alone.

Accepting lower power or adjusting your alpha may seem like shortcuts, but they come at the cost of the integrity of your findings. The accompanying reference table also provide visualizations of these tradeoffs. It demonstrates why higher standards mean more data. But most of all, it’s about respect. It is for both the subjects and for the science.

Too few subject means their participation lacks significance. Too many mean exposure to unnecessary cost or risk. Balancing these two things (statistical rigor and practicality) is a skill that can’t be automated, though the calculator helps by giving you the precision. Then it’s up to you. Based on your judgment; as to whether this study is even worth undertaking.

Use a realistic effect size. Admit what you have in terms of resourses. Run the numbers before committing to your initial subject.

Sample Size Power Calculator for Effect Size & Power