Skip to content
Koit Academy

A/B test calculator

Your numbers

The numbers filled in are an example. Replace them with yours.

A/B test result

B wins at 95%

B converts at 5% against 4% for A. The p-value is 0.016, below the 0.05 a 95% level allows.

How it adds up

ItemValue
Conversion rate, A4%
Conversion rate, B5%
Difference, B − A+1 points
Relative lift of B+25%
p-value, two-sided0.0159
95% range for the difference+0.19 to +1.81 points
Visitors per variant to detect this difference6,745

Decide the sample size before the test starts and read the result once it is reached. Checking every day and stopping at the first significant reading makes a false winner far more likely than the confidence level suggests.

Worked out from the numbers you enter. Calculated in this browser; nothing you enter is sent anywhere or stored.

How to use it · free, no signup

How to use the A/B Test Calculator

Enter visitors and conversions for two versions to see whether the difference is statistically significant, with the p-value, lift and sample size needed. Calculated in your browser.

  1. 01

    Enter version A

    The visitors who saw the original and how many converted.

  2. 02

    Enter version B

    The same for the version you are testing.

  3. 03

    Choose a confidence level

    95% is the usual standard; a higher level demands a clearer difference.

Is the gap bigger than chance?

Two versions of a page or an ad will almost never convert at exactly the same rate, even when they are identical, because visitors arrive at random. An A/B test asks whether the gap between them is larger than chance would usually produce. The calculator runs a two-proportion z-test, the standard test for two conversion rates, and reports the p-value, the lift, a range for the true difference and how many visitors a test of this size needs.

Two hundred against two hundred and fifty

Version A converts 200 of 5,000 visitors and version B 250 of 5,000, judged at 95% confidence.

FigureValue
Conversion rate, A4.00%
Conversion rate, B5.00%
Lift of B over A+25%
p-value, two-sided0.016
95% range for the difference+0.19 to +1.81 points
Visitors per version to detect this gap6,745

The p-value is below 0.05, so B’s advantage is unlikely to be chance alone. The range is wide, though: the true improvement could be as small as 0.19 points or as large as 1.81. A test planned to detect a gap this size with 80% power would use about 6,745 visitors per version; with fewer, a significant result tends to overstate the true lift.

Habits that produce false winners

  • Peeking. Checking daily and stopping at the first significant reading.
  • Too many variants. Each extra comparison is another chance of a fluke; across twenty comparisons at 95%, one is expected to clear the bar by luck.
  • Uneven traffic. A version B shown mostly at weekends is a test of weekends.
  • Ending mid-cycle. Run for whole weeks, so weekdays and weekends are both in.

Reading a result that is not significant

A result that is not significant does not show the versions are the same; it shows the test could not tell. The range for the difference says how large a real effect could still be. For the conversion rate of a single version, use the conversion rate calculator; to see what a lift would be worth in cost per conversion, the CPC calculator.

Published by Koit Academy. Who runs it, how it is paid and how its tools are checked.

Questions

What people ask about the A/B Test Calculator

How do I know if my A/B test result is significant?
Compare the p-value with 1 minus your confidence level. At 95% the p-value must be below 0.05; 200 against 250 conversions from 5,000 visitors each gives about 0.016, so the difference is significant.
What does the p-value mean in an A/B test?
The chance of seeing a difference at least this large if the two versions really converted equally. A small p-value means chance alone is an unlikely explanation.
How many visitors does an A/B test need?
It depends on the size of the difference you want to detect. Telling 4% from 5% with 80% power at 95% confidence takes about 6,700 visitors per version; telling 4% from 4.4% takes nearly six times as many.
Can I stop the test as soon as it is significant?
Not safely. Checking repeatedly and stopping at the first significant reading raises the chance of a false winner well above what the confidence level says. Fix the sample size first.
What test does this calculator use?
A two-sided two-proportion z-test with a pooled standard error, the standard test for comparing two conversion rates when each version has a reasonable number of conversions.