Home · Statistics · Inference & Tests · AB Test Calculator
AB Test Calculator
The two-proportion z-test behind an A/B test: whether the conversion rates of two variants differ, using the pooled proportion under the null hypothesis.
What this calculator does
The two-proportion z-test behind an A/B test: whether the conversion rates of two variants differ, using the pooled proportion under the null hypothesis. Every figure on this page is computed from the standard definition stated below — the same definition used in textbooks and reference tables — with no hidden rounding steps, and the method notes name the exact convention where more than one exists.
The formula and method
Both sample proportions are compared against the pooled proportion p̄, which is the best estimate of the common rate if the variants truly perform identically.
The test is two-sided: |z| above 1.96 corresponds to significance at the 5% level.
Rates are entered as counts (conversions out of visitors), not percentages.
Worked example
With the example inputs this page opens with (conversions, variant a 120, visitors, variant a 1000, conversions, variant b 100, visitors, variant b 1000), the result is 1.4293. Change any figure and the result updates with the same formula.
Quick reference
| Conversions, variant A | Result |
|---|---|
| 60 | -3.2969 |
| 96 | -0.3008 |
| 120 | 1.4293 |
| 150 | 3.3806 |
| 180 | 5.1554 |
| 240 | 8.3339 |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why pool the two proportions?
The test statistic is built under the null hypothesis that both variants share one conversion rate. Pooling gives the best estimate of that shared rate, and the standard error is computed from it.
My z is 1.43 — is variant A better?
Not at the usual 5% level: |z| would need to reach 1.96 (two-sided p ≈ 0.15 here). The observed 12% versus 10% gap is within the range chance alone produces at these sample sizes; more traffic or a bigger true gap is needed.
How does the AB Test Calculator work?
The two-proportion z-test behind an A/B test: whether the conversion rates of two variants differ, using the pooled proportion under the null hypothesis. Conversions 1 · Visitors 1 · Conversions 2 · Visitors 2 → z-statistic. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the AB Test Calculator need?
Conversions 1 · Visitors 1 · Conversions 2 · Visitors 2 → z-statistic. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.