What this A/B test calculator does
An A/B test (or split test) shows two versions of something — a landing page, a headline, a checkout button — to two randomly assigned groups of users, then measures which version produces a higher conversion rate. This calculator takes the raw counts from both groups (how many visitors each variant received and how many converted) and answers the key question: is the difference in conversion rates real, or could it easily be the result of random chance?
It does this with a two-proportion z-test, the standard significance test for comparing two success rates. You get each variant's conversion rate, the relative uplift of B over A, the z-statistic, and a two-tailed p-value, plus a plain-English verdict at your chosen confidence level.
The formula
Let variant A have nA visitors and cA conversions, and variant B have nB visitors and cB conversions. The observed conversion rates are:
- p̂A = cA / nA and p̂B = cB / nB
Under the null hypothesis both variants share one true rate, estimated by the pooled proportion p̂ = (cA + cB) / (nA + nB). The pooled standard error of the difference is:
- SE = √[ p̂ (1 − p̂) (1/nA + 1/nB) ]
The test statistic and p-value are:
- z = (p̂B − p̂A) / SE
- p-value = 2 × [ 1 − Φ(|z|) ], where Φ is the standard normal CDF (two-tailed test)
If the p-value is less than or equal to your significance level α (0.05 for 95% confidence), the difference is called statistically significant. The relative uplift reported is (p̂B − p̂A) / p̂A, expressed as a percentage.
A worked example
Suppose variant A converts 100 of 1,000 visitors (10.0%) and variant B converts 130 of 1,000 (13.0%). The pooled rate is 230/2000 = 0.115, so SE = √[0.115 × 0.885 × (1/1000 + 1/1000)] ≈ 0.01427. The z-score is (0.13 − 0.10) / 0.01427 ≈ 2.10, giving a two-tailed p-value of about 0.036. Because 0.036 < 0.05, variant B's 30% relative lift is statistically significant at 95% confidence.
Common significance thresholds
- p ≤ 0.05 — 95% confidence, the default and most widely used threshold.
- p ≤ 0.01 — 99% confidence, used when a false positive would be costly.
- p ≤ 0.10 — 90% confidence, sometimes used for early exploratory reads.