A/B test calculator
How it adds up
| Item | Value |
|---|---|
| Conversion rate, A | 4% |
| Conversion rate, B | 5% |
| Difference, B − A | +1 points |
| Relative lift of B | +25% |
| p-value, two-sided | 0.0159 |
| 95% range for the difference | +0.19 to +1.81 points |
| Visitors per variant to detect this difference | 6,745 |
Decide the sample size before the test starts and read the result once it is reached. Checking every day and stopping at the first significant reading makes a false winner far more likely than the confidence level suggests.
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 Calculator
Enter visitors and conversions for two versions to see whether the difference is statistically significant, with the p-value, lift and sample size needed. Calculated in your browser.
01
Enter version A
The visitors who saw the original and how many converted.
02
Enter version B
The same for the version you are testing.
03
Choose a confidence level
95% is the usual standard; a higher level demands a clearer difference.
Is the gap bigger than chance?
Two versions of a page or an ad will almost never convert at exactly the same rate, even when they are identical, because visitors arrive at random. An A/B test asks whether the gap between them is larger than chance would usually produce. The calculator runs a two-proportion z-test, the standard test for two conversion rates, and reports the p-value, the lift, a range for the true difference and how many visitors a test of this size needs.
Two hundred against two hundred and fifty
Version A converts 200 of 5,000 visitors and version B 250 of 5,000, judged at 95% confidence.
| Figure | Value |
|---|---|
| Conversion rate, A | 4.00% |
| Conversion rate, B | 5.00% |
| Lift of B over A | +25% |
| p-value, two-sided | 0.016 |
| 95% range for the difference | +0.19 to +1.81 points |
| Visitors per version to detect this gap | 6,745 |
The p-value is below 0.05, so B’s advantage is unlikely to be chance alone. The range is wide, though: the true improvement could be as small as 0.19 points or as large as 1.81. A test planned to detect a gap this size with 80% power would use about 6,745 visitors per version; with fewer, a significant result tends to overstate the true lift.
Habits that produce false winners
- Peeking. Checking daily and stopping at the first significant reading.
- Too many variants. Each extra comparison is another chance of a fluke; across twenty comparisons at 95%, one is expected to clear the bar by luck.
- Uneven traffic. A version B shown mostly at weekends is a test of weekends.
- Ending mid-cycle. Run for whole weeks, so weekdays and weekends are both in.
Reading a result that is not significant
A result that is not significant does not show the versions are the same; it shows the test could not tell. The range for the difference says how large a real effect could still be. For the conversion rate of a single version, use the conversion rate calculator; to see what a lift would be worth in cost per conversion, the CPC calculator.
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 Calculator
How do I know if my A/B test result is significant?
What does the p-value mean in an A/B test?
How many visitors does an A/B test need?
Can I stop the test as soon as it is significant?
What test does this calculator use?
Related tools
Conversion Rate Calculator
Conversion rate, and what a better one would bring
Open itCPC Calculator
Average cost per click, and the most a click can cost
Open itUTM Builder
Tagged campaign links for Google Analytics
Open itCPM Calculator
Cost per thousand impressions, with CTR and CPC
Open itA/B Test Sample Size Calculator
Visitors and days an A/B test needs
Open itKeyword Match Type Tool
Format a keyword list for broad, phrase, exact and every negative type
Open it