A/B testing: how to tell if a result is significant
An A/B test shows two versions of a page, ad, email or price to similar groups of people at the same time and compares the results. The question is always the same: is the difference real, or could it be chance?
Significance and p-value
The p-value is the probability of seeing a difference at least as large as the one observed if both versions were actually the same. With 95% confidence, the result is considered significant when the p-value is below 5%. This calculator uses the z-test for two proportions, the standard method for conversion rates.
Confidence interval
Besides saying whether there is a difference, the test estimates its size. A lift of +22% with an interval from +2% to +42% means the improvement is real but could be small. For business decisions, look at the lower bound.
Sample size before you start
The smaller the improvement you want to detect, the more visitors you need. Detecting a 5% lift takes about four times as many visitors as detecting a 10% lift. Decide the size and duration before starting.
Common mistakes
- Stopping as soon as it turns significant: checking results every day and stopping at the first good day greatly increases false positives.
- Partial weeks: weekday and weekend behavior differ; run full weeks.
- Many changes at once: you will not know which one made the difference.
- Many metrics: with 20 metrics, one will look significant by chance; choose the main metric in advance.