What an A/B test calculator tells you
An A/B test shows two versions of a page, email or ad to comparable groups at the same time and counts how many people in each group convert. Even when the versions perform the same, the two rates are rarely identical, because which visitors land in which group is down to chance. The calculator asks whether the gap you measured is larger than chance alone would usually produce.
The answer is the p-value: the probability of seeing a difference at least this large if both versions really converted equally. When it falls below the significance level that goes with your confidence level (0.05 for 95%), the result counts as statistically significant.
How the test is calculated
This is the two-proportion z-test that statistics textbooks teach for comparing two conversion rates. It pools both groups to estimate the rate on the assumption that A and B are the same, measures the difference in standard errors (the z-score) and turns that into a two-sided p-value with the normal distribution. The confidence interval uses each group’s own rate instead, which is why the interval and the test can disagree right at the edge.
The normal distribution is only a good approximation when each group has enough conversions and enough non-conversions. A common textbook rule of thumb is at least 10 of each in every group; some books use 5.
p_A = conversions_A ÷ visitors_A, p_B = conversions_B ÷ visitors_B p = (conversions_A + conversions_B) ÷ (visitors_A + visitors_B) SE = √(p × (1 − p) × (1 ÷ visitors_A + 1 ÷ visitors_B)) z = (p_B − p_A) ÷ SE p-value = 2 × (1 − Φ(|z|)) Interval = (p_B − p_A) ± z* × √(p_A × (1 − p_A) ÷ visitors_A + p_B × (1 − p_B) ÷ visitors_B) z* = 1.645 (90%), 1.960 (95%), 2.576 (99%) A: 250 of 5,000 (5%), B: 300 of 5,000 (6%) p = 550 ÷ 10,000 = 0.055, SE = 0.00456 z = 0.01 ÷ 0.00456 = 2.19, p-value = 0.028 95% interval: +0.11 to +1.89 percentage points
Running fair tests for clients
For an agency, the result is also something to show the client. Report both rates, the interval and the confidence level you agreed on before the test, not only the word “significant”. A few habits keep the numbers honest:
- Decide the sample size before you start and read the result once it is reached; checking every day and stopping at the first significant result raises the chance of a false winner
- Run tests over whole weeks, so weekday and weekend visitors are both in the sample
- Change one thing at a time, or you will not know which change made the difference
- Split traffic at random and run both versions at the same time
- Significant means the difference is probably not chance, not that it is large enough to matter: look at the interval too