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.
| 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.
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.
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.
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.
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.
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.
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.