How to use the A/B test calculator
- Planning a test: enter today’s conversion rate and the smallest improvement worth finding. The calculator gives the visitors each version needs, and the days it takes at your traffic.
- Checking a result: enter visitors and conversions for both versions once the test has reached that size.
- Read the verdict, the p-value and the range for the difference, and copy the result into your notes.
An example
Version A converted 96 of 2,400 visitors (4.0%) and version B 131 of 2,380 (5.5%). That is a 38% relative lift with a p-value of 0.014, so at 95% confidence the difference is unlikely to be chance. The 95% range for the gain runs from about 0.3 to 2.7 percentage points: real, but possibly much smaller than it first looks.
Planning is the step most small sites skip. At a 4% conversion rate, finding a 20% relative improvement takes about 10,300 visitors per version; a 50% improvement takes about 1,900. With little traffic, test bold changes.
The method
A two-sided z-test on two proportions, with the confidence range from the normal approximation, and the standard sample size formula for two proportions. These assume you fix the sample size first and look once. Checking every day and stopping at the first significant result makes false wins much more likely. Running whole weeks evens out weekday and weekend visitors.
Testing headlines? The guide to writing a launch listing has variants worth testing.