A/B Test Power Planner

A/B Test Power Planner

Find out how long an A/B test has to run before you can trust the result.

Many "inconclusive" tests never had enough traffic to find anything. If the test is too short for the lift you care about, a real win looks like noise and a lucky streak looks like a win. A power analysis before launch tells you how much traffic you need, how many weeks that takes, and the smallest lift you could detect in the time you have.

  1. Pick your KPI and baselineChoose what you're measuring, then type in its current level and daily traffic, or load daily history.
  2. Pick the lift that mattersThe smallest improvement worth shipping, plus your confidence and power.
  3. Get length and sample sizeThen use the slider to see what you can and can't detect in the time you have.

Data optional

Test settings

KPI and baseline
Less exposure is safer and slower.
Design
Each variant is compared to control.
Uneven splits limit risk but need more time.
1 − α. Chance a no-difference test stays non-significant.
1 − β. Chance of catching a real lift of that size.
Hypothesis
Detects a win or a loss.

Test length scenarios

How likely you are to catch a real lift at each test length.

Lift vs. test length

Relative lift Conversion rate
control → variant
Visitors
per variant
Visitors
total
Days of
traffic
Run for Power at
planned length
Verdict

Click a row to make it your target lift. "Run for" rounds up to whole weeks so every weekday appears equally in every arm.

Detectable lift by test length

Power by true lift

How the numbers are calculated

Sample size: rates

Conversion, click-through, add-to-cart, lead and checkout rates use a two-proportion z-test. With control rate p₁, variant rate p₂ = p₁ × (1 + lift) and variant-to-control ratio r:

n_control = (zα·√(p̄q̄(1+1/r)) + zβ·√(p₁q₁ + p₂q₂/r))² ÷ (p₂ − p₁)², where p̄ is the pooled rate. Each variant needs r × n_control.

Sample size: averages

Revenue per visitor and average order value use a two-sample z-test on means, assuming the same standard deviation σ in each arm:

n_control = (zα + zβ)² · σ² · (1 + 1/r) ÷ (μ × lift)². The standard deviation can't be worked out from daily totals, so it comes from you: take it from a user-level or order-level export.

Length and detectable lift

Days of traffic = units needed ÷ (eligible units per day × share in test × arm share), where units are visitors, impressions, checkout starts or orders depending on the KPI. "Run for" rounds up to whole weeks, with a one-week minimum.

The detectable lift (MDE) at a given length is the smallest lift whose power reaches your target. It's found by searching, using the same formula.

Multiple variants and sides

With more than two arms, α is split across the comparisons with control (Bonferroni), so the overall false-positive rate stays at 1 − confidence. One-sided tests use the whole α on one tail. They're shorter, but they can't tell you when a variant is hurting.

From your data

The baseline is the KPI's total over the chosen window divided by its traffic total (for example orders ÷ sessions, or revenue ÷ orders), and traffic is the daily average. The line next to the file name shows which columns were used. The chart also shows weekday swing and drift in the KPI.

What it can't fix

Decide the length before launch and don't stop early because the result looks significant. Checking daily and stopping at the first p < 0.05 inflates false positives several times over. Randomize by user, not by session. If you count sessions or impressions but split users, one person's visits aren't independent, so you need more traffic than shown here; plan with users where you can. Check that the arms got the traffic split you set (sample ratio mismatch) before reading results.