A/B test sample size calculator
How it adds up
| Item | Per variant | Time |
|---|---|---|
| 5% lift | 207,938 | 9.1 months |
| 10% lift | 53,211 | 2.3 months |
| 15% lift | 24,193 | 33 days |
| 20% lift | 13,914 | 19 days |
| 30% lift | 6,455 | 9 days |
| 50% lift | 2,518 | 4 days |
Decide the sample size before the test starts and stop only when it is reached; checking the result every day and stopping at the first good-looking number makes false winners far more likely. Run it for whole weeks so weekdays and weekends are both included.
Worked out from the numbers you enter. Calculated in this browser; nothing you enter is sent anywhere or stored.
How to use it · free, no signup
How to use the A/B Test Sample Size Calculator
Enter your conversion rate, the smallest lift worth detecting and your daily traffic to see how many visitors and days a test needs before it starts. Calculated in your browser.
01
Enter the baseline
Your current conversion rate for the page or step being tested.
02
Choose the lift
The smallest improvement worth acting on, as a percentage of the baseline.
03
Enter the traffic
Visitors a day across all variants, and how many variants there are.
Sizing a test before it starts
An A/B test needs enough visitors to tell a real difference from chance. How many depends on four choices: the current conversion rate, the smallest lift worth detecting, the confidence level and the power. The example uses the starting values: a 3% conversion rate, a 20% relative lift, 95% confidence and 80% power.
| Figure | Value |
|---|---|
| Baseline and target rates | 3% and 3.6% |
| Visitors per variant | 13,914 |
| Visitors for two variants | 27,828 |
| Days at 1,500 visitors a day | 19 |
The lift you look for decides the size
The sample size grows with the square of how small the effect is: looking for a 10% lift instead of 20% needs about four times the visitors, 53,211 per variant here, and over two months of traffic. That is why small sites do better testing bold changes, such as a new offer or page layout, than small ones such as a button colour. A test sized for a 20% lift that shows nothing has not proved there is no difference, only that there is no large one.
Running it properly
- Fix the size first, and stop only when it is reached; stopping at the first good-looking result produces false winners.
- Run whole weeks, so weekdays and weekends are both in the sample.
- Split traffic evenly and keep everything else the same while the test runs.
- More variants need more visitors, and each extra comparison raises the chance of a false positive.
When the test is done
Enter the visitors and conversions of each version in the A/B test calculator to see whether the difference is significant. To see what the lift would be worth, the conversion rate calculator turns a rate into conversions and the sales funnel calculator into revenue.
Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.
Questions
What people ask about the A/B Test Sample Size Calculator
How do I calculate the sample size for an A/B test?
What is the minimum detectable effect?
What do confidence and power mean?
Can I stop the test early if one version is winning?
How is this different from the A/B test calculator?
Related tools
Conversion Rate Calculator
Conversion rate, and what a better one would bring
Open itA/B Test Calculator
Is the difference between two versions real?
Open itUTM Builder
Tagged campaign links for Google Analytics
Open itKeyword Match Type Tool
Format a keyword list for broad, phrase, exact and every negative type
Open itInvoice Generator
Build a clean invoice in 30 languages and print it to PDF
Open itQR Code Generator
Make a QR code for a link, wifi, contact card, email, phone or SMS
Open it