Bargaon
Conversion optimisation Runs in your browser · Free · No sign-up

A/B Test Calculator

Check whether an A/B test result is statistically significant, with the p-value, confidence interval and a sample ratio mismatch check, and plan the next test: sample size per version and how many days to run it. The method and formulas are shown.

Loading the tool…

Runs in your browser. Nothing you enter is stored on our server.

About this tool

Most A/B test mistakes come from two places: stopping a test as soon as one version looks better, and running a test that never had enough visitors to detect a realistic change. This calculator handles both, and shows its working.

To check a finished test, enter visitors and conversions for A and B, the confidence level and whether the test is one-sided or two-sided. You get both conversion rates, the relative lift, the p-value from a two-proportion z-test, a confidence interval for the difference shown as a bar, and a verdict. It also runs a sample ratio mismatch check: if a 50/50 test ends up with a very uneven split, something in the set-up is wrong and the result should not be trusted.

To plan a test, enter the current conversion rate, the smallest lift worth detecting (relative or in percentage points), confidence, power, number of versions, daily visitors and the share of traffic in the test. The calculator gives the visitors needed per version, the total, the minimum number of days, and a duration rounded up to full weeks. With more than two versions it splits the significance level across comparisons (Bonferroni). Open “Show the method” to see every formula with your numbers.

How to use it

  1. Enter visitors and conversions for A and B.
  2. Choose the confidence level and test type.
  3. Read the verdict, interval and sample ratio check.
  4. For the next test, enter your baseline and the lift you want to detect.
  5. Run the test for the full number of days shown.

How it works

Significance
Two-proportion z-test with p-value and verdict.
Confidence interval
Range for the true difference between B and A.
Sample ratio mismatch
Chi-square check of the traffic split.
Sample size
Visitors per version for your baseline, lift, confidence and power.
Duration
Days needed, rounded up to full weeks.
FAQ

Questions about this tool.

01 What does statistically significant mean here?

That a difference this large would be unlikely if A and B really performed the same. At 95% confidence the p-value must be below 0.05. It does not tell you the lift is large enough to matter.

02 Can I stop the test once it becomes significant?

No. This is a fixed-horizon test: decide the sample size first and read the result once. Stopping at the first significant result greatly increases false winners.

03 What is a sample ratio mismatch?

When the split of visitors differs from the plan (for example 53/47 in a 50/50 test) by more than chance allows. It usually means a bug in assignment, redirects or tracking.

04 What lift should I plan for?

The smallest change that would be worth acting on. Smaller lifts need far more visitors; if the test would take months, test a bolder change or a higher-traffic goal.

05 Why run for full weeks?

Behaviour differs by day of the week. Running whole weeks makes sure each weekday is counted equally in both versions.

Free growth audit

Want help acting on the results?

Share your website and what the tool showed. We'll review it and reply by email.