A/B Test Duration Calculator [Free Downloadable Excel]
In a previous post, I provided a downloadable A/B testing significance calculator (in excel). In this post, I will provide a free calculator which lets you estimate how many days should you run a test in order to obtain statistically significant results. But, first, a disclaimer.
There is no guarantee of results for an A/B test
When someone asks how long should s/he run an A/B test, the ideal answer would be until eternity or till the time you get results (whichever is sooner). In an A/B test, you can never say with full confidence that you will get statistically significant results after running the test X number of days. Instead, what you can say is that there is 80% (or 95%, whatever you choose) probability of getting statistically significant result (if it indeed exists) after X number of days. But, of course, it may be the case that there is in fact no difference in performance of control and variation so no matter how long you wait, you will never get a statistically significant result.
So, how long should you run your A/B test?
Download and use the calculator below to find out how many visitors you need to include in the test. There are 4 pieces of information that you need to enter:
- Conversion Rate of original page
- What % difference in conversion rate do you want to detect (if you want to detect even the slightest improvement, it will take much longer)
- Number of variations to test (more variations you test, more traffic you need)
- Average daily traffic on your site (not really needed, optional)
Once you enter these 4 parameters, the calculator below will find out how many visitors you need to test (for 80% and 95% probability of finding the result). You can stop the test after you test those many visitors, but you should never stop earlier than that. You may end up concluding wrong results.
A/B test duration calculator (Excel spreadsheet)
Click below to download the calculator:
Please feel free to share the file with your friends and colleagues or post it on your blog/twitter.
By the way, if you want to do quick calculations, we have a version of this calculator hosted on Google Docs (this will make a copy of the Google sheet into your own account before you can make any changes to it).
For all the people looking to calculate their calculation without the trouble of going through “sheets or documents”, we created a simple to use A/B testing duration calculator.
How does the calculator work?
Ah! The million dollar calculator. Explaining how it works is beyond the scope of this post as it is too technical (maybe a separate post). But, if you have got stomach for it, below is gist of how we calculate number of visitors needed to get significant results.
The graph above is taken from an excellent book called Statistical Rules of Thumb.
Luckily, the chapter on estimating sample size is available to download freely. Another excellent source to get more information on sample size estimation for A/B testing is Microsoft’s paper: Controlled Experiments on the Web: Survey and Practical Guide.
Hope you like the calculator and related A/B testing tools & resources. Excited to know your thoughts at email@example.com!