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.

Your figures

Example result — edit the figures to make it yours

1.4293

Conversion rate A12%
Conversion rate B10%
Difference (A - B)2 percentage points
Relative difference vs B20%
Two-sided p-value15.291778%

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

z = (p̂₁ − p̂₂) / √(p̄(1−p̄)(1/n₁ + 1/n₂)), with pooled p̄ = (x₁+x₂)/(n₁+n₂)

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

Quick reference — varying conversions, variant a
Conversions, variant AResult
60-3.2969
96-0.3008
1201.4293
1503.3806
1805.1554
2408.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.