Skip to content

A/B Test Significance Calculator

Find out if your test result is real. Enter the visitors and conversions for version A and version B. You get both rates, the uplift, the p-value and the range the true difference is probably in.

B converts better than A. The result is significant at 95% confidence.

Uplift of B against A

+26.7%

p-value

0.0273

Conversion rate A

3.00%

Conversion rate B

3.80%

95% interval of the difference (B − A)

0.09 to 1.51 points

Numbers are only half of it. Run a free audit to see which conversion points your store fails.

How it works

The calculator uses a two-sided two-proportion z-test. z = (rate B − rate A) ÷ √(p(1 − p)(1/visitors A + 1/visitors B)), where p is the conversion rate of A and B together.

The p-value is the chance of a difference at least this large when A and B really convert the same. At 95% confidence a result is significant when the p-value is below 0.05.

The confidence interval shows the range for the true difference in percentage points. If the range includes zero, the test has not shown a difference. The test and the interval use slightly different formulas, so on a result very close to the line they can disagree: then collect more data before you decide.

What the p-value means, and what it does not

The p-value answers one narrow question: if A and B really converted the same, how often would you see a difference at least this large by chance? A p-value of 0.03 means about 3 times in 100.

It does not tell you:

  • the chance that B is better (a p-value of 0.03 is not "97% sure B wins");
  • how big the improvement is (use the confidence interval for that);
  • that the result will hold next month, on other traffic, or on another page.

Worked example

Version A had 12,000 visitors and 360 orders. Version B had 12,000 visitors and 420 orders.

  • Rates: A 3.0%, B 3.5%. Relative uplift: +16.7%
  • z = 2.18, two-sided p-value = 0.029
  • 95% confidence interval for the difference: +0.05 to +0.95 percentage points

The result is significant at 95% (0.029 is below 0.05), and the interval does not include zero. But look at the range: the true lift could be almost nothing (+0.05 points) or close to a full point. You have a winner, and you do not know its size well.

90%, 95% or 99%?

Now a closer test: A has 10,000 visitors and 300 orders (3.0%), B has 10,000 visitors and 345 orders (3.45%, +15%). The p-value is 0.072.

Confidence levelSignificant when p is belowThis test
90%0.10Significant
95%0.05Not significant
99%0.01Not significant

Pick the level before the test, not after you see the p-value. Use 95% by default. 90% is reasonable for a cheap change that is easy to undo. Use 99% when the change is expensive to build or hard to roll back.

One-sided or two-sided

This calculator uses a two-sided test: it asks if B is different from A in either direction. A one-sided test only asks if B is better, which halves the p-value and makes winners easier to declare. It also hides the case where B hurts sales. Some testing tools use one-sided tests by default, so their p-values can look better than ours on the same data.

The peeking problem

If you check the result every day and stop the first time p drops below 0.05, your real false-winner rate is far above 5%. Evan Miller's article "How Not To Run an A/B Test" explains why. Fix the sample size in advance with the A/B test sample size calculator, and read the result once you reach it.

Statistical vs practical significance

With enough traffic, a 0.02-point difference becomes significant. That does not make it worth the cost of the change. Ask two questions: is it real (the p-value), and is it big enough to matter (the interval, multiplied by your traffic and order value)?

Check the split first: sample ratio mismatch

If you planned a 50/50 split, the visitor counts should be close. 10,000 against 9,400 is far too uneven to be chance. That usually means a bug: a redirect that loses visitors in one version, or a bot filter that treats the versions differently. When the split is wrong, the p-value is not reliable, whatever it says. Fix the setup and run the test again.

And if your store does not have the traffic for clean tests, start with the problems that need no test. Our CRO audit guide shows how to find them.

Method: two-sided two-proportion z-test with a pooled standard error; the confidence interval uses the unpooled standard error.

Frequently asked questions

Can I stop my test when it becomes significant?
No. If you check every day and stop at the first significant result, you get many false winners. Decide the sample size before the test (use our sample size calculator) and read the result when you reach it.
The result is not significant. Does that mean A and B are the same?
Not always. It means the test did not show a difference. The difference can be real but smaller than the test could detect with this traffic.
Which conversions should I count?
Count the goal the change is for, usually orders. Count each visitor once, in the version they saw.