Power for a Proportion Test Calculator

Power for a Proportion Test Calculator

Estimate achieved power for one-proportion or two-proportion z tests. The calculator uses the null or pooled standard error to set the critical cutoff, the alternative standard error to compute power, and searches sample size for your target power.

šŸŽÆProportion Power Presets

šŸ“Test Design Inputs

Two-proportion mode compares treatment p2 with baseline p1.

Choose the direction before analyzing observed results.

Two-sided tests split alpha across both tails.

This determines the z beta reference and required n search.

For one-proportion mode, this is the null benchmark p0.

The absolute lift is p2 - p1 in percentage points.

In one-proportion mode this is the total sample size.

Used in two-proportion mode; 1 means equal groups.

Achieved power 0.0% probability of rejecting H0 at p2
Beta risk 0.0% Type II error = 1 - power
Required sample size 0 for target power
Absolute lift 0.00 pp p2 - p1

šŸ”¢Current Test Snapshot

0.000z alpha
0.000target z beta
0.0000null SE
0.0000alternative SE

šŸ“Formula Breakdown

Absolute liftLift = p2 - p1. The calculator reports this in percentage points so 12% minus 10% is +2 pp.
One-proportion null SESE0 = sqrt(p0(1 - p0) / n). Critical cutoffs are p0 +/- zαSE0 for a two-sided z test.
One-proportion powerUnder the alternative, phat is approximated by Normal(pa, SEa) where SEa = sqrt(pa(1 - pa) / n).
Two-proportion pooled SESE0 = sqrt(pbar(1 - pbar)(1/n1 + 1/n2)), with pbar = (n1p1 + n2p2) / (n1 + n2) for planning the null cutoff.
Two-proportion alternative SESEa = sqrt(p1(1 - p1)/n1 + p2(1 - p2)/n2). Power evaluates the lift distribution against the null critical difference.
z alpha and z betazα = inverse normal critical value for the selected alpha and tails. zβ = inverse normal value for the selected target power.

šŸ“ŠCritical Z Reference

AlphaTwo-Sided zαOne-Sided zα80% zβ90% zβTypical Use
0.101.6451.2820.8421.282Screening design
0.051.9601.6450.8421.282Standard test
0.0252.2411.9600.8421.282Stricter one test
0.012.5762.3260.8421.282Confirmatory test
0.0052.8072.5760.8421.282Very strict alpha
Power 95%variesvaries1.6451.645Low beta risk

🧪Common Proportion Power Scenarios

ScenarioTest Typep1 or p0p2LiftUsual TailPlanning Note
Checkout conversionTwo proportion10%12%+2 ppGreaterLarge n for small lifts
Defect reductionTwo proportion8%5%-3 ppLessLower is better
Survey supportOne proportion50%56%+6 ppTwo-sidedNear 50% has high variance
Clinical responseTwo proportion42%51%+9 ppGreaterDirection should be pre-set
Retention programTwo proportion68%72%+4 ppGreaterModerate baseline variance
Benchmark pass rateOne proportion60%70%+10 ppGreaterSingle group vs target
Adverse event dropTwo proportion22%18%-4 ppLessWatch total event count
Pilot signalTwo proportion15%22%+7 ppTwo-sidedWide uncertainty

āš–Allocation Ratio Reference

Ratio n2/n1Split Share n2SE ImpactWhen It AppearsDesign Caution
0.2520%Much higherScarce treatment casesPower drops fast
0.5033%HigherLimited variant exposureMay need more total n
1.0050%Lowest for equal costMost A/B testsBest default split
1.5060%Slightly higherMore traffic to variantSmall efficiency loss
2.0067%HigherEthical or rollout reasonsControl group thins
4.0080%Much higherRare control allocationOften expensive in total n

šŸ”Comparison Grid for Test Designs

DesignModeBaselineAlternativeLiftn1 StartRatioAlphaTailBest Read
A/B conversion liftTwo10%12%+2 pp50001.000.05GreaterGrowth test
Manufacturing defectsTwo8%5%-3 pp8001.000.05LessQuality gain
Benchmark pass rateOne60%70%+10 pp1801.000.05GreaterSingle sample
Support surveyOne50%56%+6 pp9001.000.05TwoPoll shift
Clinical responseTwo42%51%+9 pp4201.000.05GreaterResponse gain
Retention campaignTwo68%72%+4 pp8000.750.05GreaterUneven split
Traffic ramp testTwo4.8%5.4%+0.6 pp200001.500.05GreaterTiny lift
Pilot signal checkTwo15%22%+7 pp1201.000.10TwoEarly evidence

šŸ’”Practical Power Tips

Effect tip: Enter absolute proportions, not relative lift. A move from 10% to 12% is a 2 percentage point lift, even though it is a 20% relative improvement.
Tail tip: A one-sided design gives more power only when the scientific or product question truly has one pre-specified direction.
Allocation tip: Equal allocation is most efficient when observations cost the same. Uneven ratios can be valid, but the smaller group drives the standard error.
Boundary tip: Very rare or very common proportions can need exact or simulation checks. This normal z approximation is strongest with adequate expected successes and failures.

With a combination of glee and fear you fire off the new checkout button. Traffic flows. Launch is live. And then… nothing. There is no data yet.

You wonder if maybe your sample size wasn’t large enough to pick up on even a minor enhancement if there were one. That’s where statistical power comes in, an insurance policy that ensures you don’t miss out on detecting a true result. This tool above will estimate the likelihood that you’ll be able to find a difference between two proportion based off your design parameters.

Why You Need to Plan Your Test Before You Start

The typical metric used to decide if something is significant is called alpha (and this is what most folks refer to as ā€œsignificance levelā€). The flipside is power: it is the probability that we reject the null hypothesis given that alternative is true. If you have low power, you’re betting that you’ll see what’s actually happening, but in fact you might not.

Statisticians call this beta risk, which is the risk of failing to detect something when it’s realy there. That’s a bad bet to make. Minimize that error.

In either case, one- or two-sample, the calculator do all the hard work. With a two-proportion test, that means you’re testing whether a new treatment rate is different than some kind of baseline rate. You input your assumed baseline, the hoped-for lift, and how many samples you intend to take. It then spits out the probability that your null and alternate distributions will be close enough together (or not) so that you can make an educated guess about what’s going on.

And this is where folks go astray: they think if only their sample size was larger, they’d have more power. But they don’t account for how variable their proportions might be. Take that as a hint to consider the base rate itself. If your base rate is closer to ten percent, you have less variance. A conversion rate of half would represent maximum variance. Because of this, you require fewer observations to see the same level of absolute lift then if your base rate were closer to 50%.

The tool adjusts its standard error according to the specific proportions you input, in other words, it doesn’t presume a constant degree of variance regardless. That’s what makes a general-purpose sample size table fall short. You want the math to be about your own base case, not some average for your industry.

A trickier aspect is allocation ratios. In general, using as much of your data as possible is best; if you skew your allocations, for example by sending 80% of traffic to the control group, then you’re wasting some of your data. Precision depend on how many people are in each group. With the calculator, you can change this ratio and observe that the more you skew things, the more you dilute your power.

When you’re trying to justify running a test, every little bit helps, so you may discover that moving only ten percent of your traffic back to an even split will increase your power a lot.

So what should you do when you look at the outputs? Focus on required sample size and achieved power. Required sample size tells you how many more users you need to reach your target. Achieved power tells you about the sensitivity of your current plan: if it’s less than eighty percent, there’s a high probability that you’ll miss modest effects.

In other words, it’s a simple trade-off between precision and time. Do you want to be precise (accepting the possibility of a false negative)? Or do you want to run the test longer?

To anchor all of this in reality we have some reference tables on the page to illustrate what happens when you change the direction of tails or the significance (alpha) level. You see the critical value changes as a result. When you’re sure that the effect is going one way or the other, you’ll get more power from a one-sided test, but you also bear greater scientific and ethical responsibility for getting it right.

Before you look at the data, you need to decide. If you change your mind midway through, then the math should of been off. But really, power analysis is all about setting reasonable expectations. It avoids a heartbreaking null (which could simply be an underpowered failure).

The calculator does this math for you, taking out the guesswork. It makes the abstract world of statistical theory concrete. What can my design find? What can’t it find? It lets you see the answers up front before launching your experiment. It is better than wondering about it afterwards.

With confidence, not just hope, you go off to the races.

Power for a Proportion Test Calculator