A/B Test Significance Calculator

Is version B really better than A? A two-proportion z-test with the p-value and a confidence range.

How it works

This compares two conversion rates with a two-proportion z-test. You enter visitors and conversions for versions A and B. The tool pools the rates, computes a z score and a p-value, and says whether the difference is bigger than chance at the confidence you choose.

A small p-value means the gap is unlikely to be luck alone. It does not say the gap is large or important.

The formula

p1 = conversions A / visitors A, p2 = conversions B / visitors B
pooled p = (cA + cB) / (nA + nB)
z = (p2 - p1) / sqrt(pooled p x (1 - pooled p) x (1/nA + 1/nB))

Worked example

A: 100 of 1000 convert (10%). B: 130 of 1000 (13%). z is 2.103 and the p-value is 0.03549, so B is better at 95% confidence. The 95% range for the difference runs from 0.2068% to 5.793%.

Good to know

Common questions

What is a p-value?
It is the chance of seeing a gap at least this big if A and B were really the same. Lower means stronger evidence.
Is 95% confidence the right choice?
It is the usual default. Use 99% when a wrong call is costly.
Can I test more than two versions?
Not here. Compare pairs, but note that more comparisons raise the chance of a false win.

More in Math, Science & Engineering.