A/B tests · PlanningA/B test duration

How long an A/B test should run: sample and traffic → whole weeks, the end date with Russian public holidays, the traffic budget. If the duration is unrealistic — four ways to shorten it, recalculated, and the reverse question: which effect you will see in the time you can wait.

Your numbers stay in the browser and are never sent anywhere

01Calculation02Reverse question03Examples04Questions05Related
01

Calculation

Sample size
→ 36,693 per group · two-sided test
Groups
Traffic to the page
Optional — for the budget
α = 0.05 · power 80% · two-sided test
The test will take
3 weeks

73,386 visitors in total · 5,000 a day in the test

Exactly 14.7 days. Rounded up to whole weeks: people behave differently on weekdays and weekends, and a cut-off week would skew the result.

Set a start date to see the end date and the holidays in the period.

3 weeks — feasible.
Do not stop it before the planned date, even if it is “already significant”.
02

How long you can wait — which effect you will see

In 4 weeks the test sees effects from +11 % (2.00 → 2.22 %)

A realistic threshold for a noticeable change.

DurationEffect fromConversion B
1 wk+22 %2.44 %
2 wk+15 %2.31 %
3 wk+12 %2.25 %
4 wk+11 %2.22 %
6 wk+9 %2.17 %
8 wk+8 %2.15 %
12 wk+6 %2.12 %
03

Examples

04

Frequently asked questions

Until the sample calculated in advance is reached, rounded up to whole weeks and no shorter than one week. The duration is all test visitors divided by daily traffic. Example: 2% conversion and an expected +15% uplift need 36,693 visitors per group, 73,386 in total. At 5,000 visitors a day that is 14.7 days, so 3 whole weeks rather than 15 days.

Updated