Math · A/B testing

A/B test significance calculator.

Enter visitors and conversions for each variant. You get the conversion rates, relative lift, z-score, p-value and a confidence interval for the difference. Everything runs in your browser.

If A converts 200 of 1,000 visitors (20.0%) and B converts 240 of 1,000 (24.0%), B has a 20.0% relative lift. The two-proportion z-test gives z = 2.16 and a two-sided p-value of 0.0308, so the difference is significant at 95% confidence. The 95% confidence interval for the difference is +0.37 to +7.63 percentage points.

z = (p̂B − p̂A) / √(p̂(1−p̂)(1/nA + 1/nB))Pooled two-proportion z-testOpened sources 8 October 2026

Advertisement

Test results

Your result

Fill the form and press Calculate.

How the test works

The null hypothesis is that both variants share one true conversion rate. Pool the data: p̂ = (xA + xB) / (nA + nB). The test statistic is

z = (p̂B − p̂A) / √( p̂(1 − p̂)(1/nA + 1/nB) )

For a two-sided test the p-value is 2 × P(Z > |z|); for a one-sided test where the alternative is “B is better” it is P(Z > z). The result is called significant when the p-value is below α = 1 − confidence level. The confidence interval for the difference uses the unpooled standard error: (p̂B − p̂A) ± z1−α/2 √( p̂A(1−p̂A)/nA + p̂B(1−p̂B)/nB ). Relative lift is the difference divided by A's rate.

Worked example

A: 200 of 1,000 = 20.0%. B: 240 of 1,000 = 24.0%. Pooled p̂ = 440 / 2,000 = 0.22. Standard error = √(0.22 × 0.78 × 0.002) = 0.018526. z = 0.04 / 0.018526 = 2.159. Two-sided p = 2 × P(Z > 2.159) = 0.0308, below 0.05, so significant at 95% but not at 99% (p is above 0.01). The unpooled standard error is 0.018504, so the 95% interval is 0.04 ± 1.960 × 0.018504 = +0.0037 to +0.0763, or +0.37 to +7.63 percentage points. Relative lift = 0.04 / 0.20 = 20.0%.

Limits

The normal approximation needs reasonably large samples. NIST gives min{Np0, N(1 − p0)} ≥ 5 as a criterion for its one-sample proportion test; this page applies the same check to the pooled expected successes and failures in each variant and warns when it fails. That application is a common rule of thumb, not a published A/B-testing standard. For small samples NIST calls the Fisher exact test an excellent choice. Decide the sample size in advance (see the sample size calculator) and read the p-value once the planned traffic is in: checking repeatedly and stopping at the first significant reading raises the false-positive rate. Statistical significance says the difference is unlikely to be chance under the model, not that it is large or valuable; the confidence interval shows how big it might be.

Sources, opened 8 October 2026: NIST/SEMATECH e-Handbook of Statistical Methods, 7.3.3 How can we determine whether two processes produce the same proportion of defectives? (pooled z statistic, one- and two-sided comparison, Fisher exact test for small samples); Wikipedia, Z-test (two-proportion Z-test and the confidence interval for the difference of two proportions); NIST/SEMATECH e-Handbook, 7.1.3.1 Critical values and p values (definition of the p-value and comparing it with α); NIST/SEMATECH e-Handbook, 7.2.4 Does the proportion of defectives meet requirements? (the min{Np0, N(1−p0)} ≥ 5 criterion).

Frequently asked questions

What is statistical significance in an A/B test?

A result is significant when the p-value is below your chosen significance level, usually 0.05. NIST defines the p-value as the probability of a test statistic at least as extreme as the one observed if the null hypothesis is true. A small p-value is an indication that the null hypothesis is false.

What does a p-value of 0.0308 mean?

If A and B truly had the same conversion rate, a difference at least as large as the one observed would turn up in about 3.1% of repeats of the experiment. It is not the probability that B is better. For that, use the Bayesian A/B test calculator.

Should I use a one-sided or two-sided test?

Use two-sided unless you decided before the test that only an improvement matters. A one-sided test gives a smaller p-value for the same data but cannot flag B being worse. Choose before you look at the data.

Is 95% confidence required?

No. It is a convention. NIST notes that 0.1, 0.05 and 0.01 are common significance levels. Pick the level before running the test, based on how costly a false positive is.

Can I stop the test as soon as it is significant?

Not safely with this method. A fixed-sample z-test assumes the sample size was set in advance, and repeatedly peeking and stopping at the first significant reading raises the chance of a false positive. Plan the sample size first.

What if I have very few conversions?

With small counts the normal approximation is poor. This page warns when the pooled expected successes or failures in a variant fall below 5. NIST calls the Fisher exact test an excellent choice for small samples.

Planning and learning aid

Statistical estimate under a random, independent-visitor model. It does not correct for multiple variants, multiple metrics or repeated looks, and it cannot detect tracking bugs or biased traffic assignment.

Advertisement
Advertisement