Learn

How long should you run an A/B test?

Run an A/B test for at least one full week, ideally two, and until each version reaches the sample size your conversion rate and target lift need. Stopping as soon as a result looks significant, or after a set number of days regardless of traffic, produces false winners.

Updated by Baneet Singh, founder of Luria.

The two rules

  1. Whole weeks. People buy differently on Monday and Saturday, and on payday. One or two full weeks cover that.
  2. Enough visits. Each version needs the sample size for your rate: about 21,106 visitors per version to see a 20% lift at a 2% conversion rate (full table).

Worked examples

Visitors a month on the pageConversion rateLift to detectAbout how long
10,0002%20%18.3 weeks
50,0002%20%3.7 weeks
50,0003%30%1.1 weeks
200,0002%10%3.5 weeks

95% confidence, 80% power, two versions. Round up to whole weeks.

When it is fine to stop early

Fixed-sample tests should not be stopped early. Bayesian tests and multi-armed bandits are designed to be checked as they run: they move traffic to the leader and stop when the chance that it is best passes a bar such as 95%. Luria works this way, with a floor of 200 visits per version.

Questions

What is the longest an A/B test should run?

Past four to six weeks, cookie deletion, seasonality and outside changes start to blur the result. If a test needs longer, test a bigger change or a higher-traffic page.

Try Luria on your own pages

First 20 split tests free. Measured against your current page for 60 days, or your money back (needs 5,000+ tracked visits on the tested pages; full rules).

Get started See pricing