Free tool · Runs in your browser

A/B test significance calculator

Enter visitors and conversions for each version. You get the lift, how sure you can be that it is real, a check that the traffic split worked, and how many visitors you would need if it is not provable yet.

Nothing you type leaves your browser.

VisitorsConversionsA · controlB · variant
Result

Rate A

Rate B

p-value

Split check

Short answer

When is an A/B test result significant?

An A/B test result is statistically significant when the p-value is below your threshold, usually 0.05, and the confidence interval for the difference excludes zero. Set the sample size before you start, check that traffic split as planned, and do not stop early because the result looks good.

Before you start

Sample size calculator.

Decide how small a lift is worth finding, then run the test until each variant has this many visitors. Stopping earlier, or peeking and stopping at the first good result, makes false wins far more likely.

Two-sided test of two proportions, equal split.

You need

Reading the result

What each number tells you.

Relative lift

How much better or worse B converted than A, as a share of A's rate. 5.0% to 5.8% is a 16% relative lift, or 0.8 percentage points.

Confidence interval

The range of lifts consistent with the data. If it runs from +2% to +30%, the effect is probably positive but its size is uncertain. Plan on the low end.

p-value

How surprising the difference would be if A and B were truly the same. It is not the chance that B is better, and a small p-value does not mean the lift is large.

Split check

A chi-square test of whether visitors split as planned, 50/50 here. A failed check, a sample ratio mismatch, usually means broken assignment or tracking. Fix that before reading the result.

Be careful

Five ways a significant result misleads.

Peeking. Checking every day and stopping at the first p < 0.05 pushes the real false positive rate well above 5%. Fix the sample size first.

Too many metrics. Test twenty metrics and one will look significant by chance. Pick one primary metric before the test.

Novelty and timing. A new design can win for a week because it is new. Run full weeks, and long enough to cover your normal cycle.

Conversions are not profit. A discount can lift conversion and lose money. Where you can, test on revenue or margin per visitor.

The wrong question. A test tells you the average effect. Who responds, and who would have bought anyway, is a question for uplift modelling.

When you cannot run a test

Most business decisions never get an A/B test.

Promotions, price changes, store layouts and retention offers are often rolled out without a control group. The effect then has to be estimated from observational data, which is harder and needs explicit checks for confounding.

That is the job of causal machine learning, and the reason Graphite Note says "not provable yet" when the data cannot separate the effect from everything else. For promotions specifically, see how promotion incrementality is measured, and for marketing budgets, MMM vs incrementality.

The formulas used

z = (pB − pA) / √(p̄(1 − p̄)(1/nA + 1/nB))

The p-value is two-sided, from the pooled two-proportion z-test. The confidence interval uses the unpooled standard error. Sample size uses the standard normal approximation for two proportions.

Direct answers

Questions about A/B tests.

How do I know if my A/B test is statistically significant?

Compare the p-value with your threshold, usually 0.05 for 95% confidence. If the p-value is below it and the confidence interval for the difference does not include zero, the result is statistically significant. Decide the sample size before the test and do not stop early because the result looks good.

What does the p-value mean in an A/B test?

It is the probability of seeing a difference at least this large if the two versions really performed the same. A p-value of 0.03 means a difference this big would happen by chance about 3% of the time. It is not the probability that B is better.

How many visitors do I need for an A/B test?

It depends on the baseline conversion rate and the smallest lift worth detecting. With a 10% baseline and a 10% relative lift, you need about 14,750 visitors per variant at 95% confidence and 80% power. Smaller lifts or lower baselines need many more.

What is a sample ratio mismatch?

A sample ratio mismatch happens when the split between variants differs from what you planned, for example 52/48 instead of 50/50 on a large test. It usually points to a bug in assignment or tracking, and the result should not be trusted until it is explained.

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

No. Checking repeatedly and stopping at the first significant result inflates false positives well above 5%. Fix the sample size or duration in advance, or use a sequential testing method designed for repeated looks.

Page updated