Skip to content

A/B test significance calculator

Money & finance
Math & numbers

Is your A/B test result real or just chance?

Conversion rates, lift, p-value and the confidence interval of an A/B test, with the sample size it needs.

Test settings
Look for
%

%

Lift of B over A

+25%

Significant at 95% confidence (p < 0.001): a difference this large would be unlikely if A and B converted equally.

More about the test

Conversion rate A
4%
Conversion rate B
5%
Difference B − A
+1 percentage points
95% interval of the difference
0.43 to 1.57 percentage points
p-value
< 0.001
Visitors per variant for 80% power
6,745

Significance only says the difference is unlikely to be pure chance. It does not say how big the true lift is, that the change caused it, or that it will last. Decide the sample size before you start and don't stop the test the moment it looks significant.

Sponsored Links

Conversion rates, lift, p-value and the confidence interval of an A/B test, with the sample size it needs.

How to use

  1. Enter how many visitors saw each variant and how many of them converted.
  2. Read the lift of B over A and whether the difference is significant; the facts show both rates, the interval of the difference and the p-value.
  3. Check the visitors each variant needs; open Test settings to change the confidence level, a one-sided test or the power.

Sponsored Links

How it works

An A/B test shows two versions of a page to different visitors and compares how often each one converts. Even two identical pages rarely get exactly the same rate, so the question is whether the gap is bigger than chance alone would usually produce.

The test pools both groups into one rate p̂ and compares the difference with its standard error: z = (p_B − p_A) ÷ √(p̂(1 − p̂)(1/n_A + 1/n_B)). The p-value is the chance of a gap at least that large if the two versions really converted equally. The method follows the NIST/SEMATECH e-Handbook; the sample size needed for a given power follows R's power.prop.test.

Significance is not the size of the effect: the interval of the difference shows how large or small the true gain could plausibly be. Decide the sample size before the test, run it in full weeks, and don't stop as soon as it turns significant, or chance wins far more often than the confidence level suggests.

Worked example

What is the relative lift from 200 to 250 conversions per 5,000 visitors?

  1. A = 200 ÷ 5,000 = 4%; B = 250 ÷ 5,000 = 5%.
  2. (B − A) ÷ A = 25%.

Relative lift: 25%. The two-sided test at 95% confidence gives p = 0.01587.

Frequently asked questions

What does a p-value of 0.05 mean?

If A and B truly converted at the same rate, a difference at least this large would show up in about 5 % of tests. It is not the chance that B is better.

How many visitors does my A/B test need?

It depends on the rates and the smallest lift worth detecting. Going from 4 % to 5 % needs about 6,745 visitors per variant for 80 % power at 95 % confidence; smaller lifts need many more.

Should I use a one-sided test?

Only if you decided before the test that you care about one direction. A one-sided test reaches significance sooner, but it can't tell you that B made things worse.

The test is not significant. Does that mean A and B are the same?

No. It means the data can't tell them apart yet. With too few visitors, even a real difference often looks like chance.

Can I compare revenue per visitor?

No. This test needs binary outcomes: each visitor either converts or does not. Revenue amounts need a different statistical test.

Sponsored Links

Sponsored Links