StackPractices

A/B Test Significance Calculator

Check whether a conversion-rate difference is statistically significant, then go further: a Bayesian second reading, non-inferiority testing for safe rollouts, and a validity audit that tells you whether the result can be trusted at all. Plus sample size, detectable effect and duration planning, SRM detection and Holm-corrected multi-variant analysis. Free, client-side and shareable by URL — no signup.

Experiment results

Control (A)

Variant B

Non-inferiority fits refactors, migrations and canary rollouts.

Two-tailed is the safe default.

Used for the sample ratio mismatch check. Variants are assumed to split the rest equally.

Significance result

—

Control conversion rate
—
Variant conversion rate
—
Absolute uplift
—
Relative uplift
—
z-score
—
p-value
—
Confidence interval of difference
—

What this calculator measures

The significance mode uses a two-proportion z-test: the standard test for comparing conversion rates in a control and a variant. It reports both conversion rates, absolute uplift in percentage points, relative uplift, the z-score, the exact p-value and a confidence interval for the difference. The hypothesis test uses the pooled standard error; the confidence interval uses the unpooled standard error, which is the usual pairing in reference implementations.

The sample-size mode uses relative MDE. If your baseline is 5% and the MDE is 20%, you are sizing the test to detect a move to 6%. That distinction matters more than it seems: a “20% lift” and a “20 percentage-point lift” are very different experiments, and confusing them is an easy way to underpower a test by orders of magnitude.

The peeking trap

The most common way to ruin an A/B test is also the most natural one: check the dashboard every morning and stop as soon as the result crosses 95%. Under that workflow the 5% false-positive threshold no longer means 5%. Each look is another opportunity for random noise to reach the line, so the actual false-positive rate climbs — sometimes past 20 or 30% with frequent checks.

The fix is boring and effective: calculate the sample size before launch, write it down, and do not make a ship/no-ship decision before reaching it. You can still monitor guardrails for breakage. If a variant is hurting revenue or latency badly enough to threaten the business, stop it — but treat that as a guardrail decision, not a statistical win.

Why duration is rounded to full weeks

Conversion behavior usually has a weekly rhythm. B2B products often convert better on weekdays; consumer products often peak on weekends or paydays. A test that starts Monday and stops Thursday samples one slice of that rhythm and calls it representative. Rounding to complete weekly cycles gives every weekday the same exposure in both variants.

That is why the estimator shows the mathematical minimum and then rounds up. One full cycle is the floor; two cycles are safer when the required sample fits. If the raw answer is months long, the honest conclusion is usually not “wait longer” — it is that the effect is too small, the traffic is too low, or the metric is too noisy for this page.

Work backwards from your traffic

The usual workflow sizes the test for the effect you hope exists. The detectable-effect mode inverts the question: given your traffic, what is the smallest effect you could even measure? If the honest answer is a 40% relative lift and your realistic upside is 10%, the experiment cannot succeed as designed — no matter how clean the statistics are. That is a signal to pick a bolder hypothesis, a higher-traffic page, or a different method such as user research, not to run the test anyway and hope.

Testing several variants at once

Every additional variant is another lottery ticket against the same control. With three variants at 95% confidence, the chance that at least one looks significant purely by luck is well above the nominal 5%. The significance mode accepts up to four variants and reports Holm-corrected p-values alongside the raw ones. The correction is conservative but honest: use the corrected column for ship decisions, and expect each added variant to cost you sensitivity or traffic.

When not to trust the result

A clean p-value cannot rescue a broken experiment. Check the sample ratio first: if you planned a 50/50 split but one variant received materially different traffic, you probably have a sample ratio mismatch. That usually means randomization, tracking or bot filtering is broken, and the right move is to debug the delivery rather than interpret the rates. The significance mode runs this chi-square check automatically against the planned control share you enter — when it turns red, stop reading the rest of the numbers until the split is explained.

Be careful with novelty effects too. Returning users often click a visible change because it is new, then revert to the old behavior. Very short tests are especially exposed. Also question results collected during holidays, outages, pricing changes, marketing campaigns or major traffic-source shifts — anything that affects one part of the window more than another.

Finally, significance is not importance. A statistically real 0.1% relative lift may not pay for implementation and maintenance. Compare the confidence interval with the effect you sized for, not just the p-value with zero.

Frequently asked questions

What is statistical significance in an A/B test?

Statistical significance means the observed difference is unlikely under the assumption that both variants perform the same. At 95% confidence, a p-value below 0.05 passes the usual threshold. It is evidence against “no difference”, not proof that the variant will keep winning.

Should I use a one-tailed or two-tailed test?

Use a two-tailed test unless you honestly committed in advance to testing only one direction. Two-tailed tests detect improvement and harm; one-tailed tests are easier to pass and are often abused after the fact.

Why is it bad to peek at A/B test results?

Peeking inflates false positives because every look is another chance to stop on a lucky fluctuation. If you check daily and stop as soon as p falls below 0.05, the real false-positive rate can be several times higher than the nominal 5%.

How long should an A/B test run?

Long enough to reach the pre-calculated sample size and cover at least one full weekly cycle. Weekday and weekend traffic often behave differently, so stopping on a partial week can bias the result. Many teams prefer two full cycles when traffic allows it.

Why does my test need so many visitors?

Small conversion rates and small effects produce noisy measurements. Detecting a 10% relative lift on a 5% baseline is much harder than detecting a 50% lift, so the required sample grows quickly as the minimum detectable effect shrinks.

What is a sample ratio mismatch?

A sample ratio mismatch happens when the observed traffic split differs from the planned one — for example a 50/50 test that actually delivered 55/45 beyond what chance explains. It signals broken randomization, tracking or bot filtering, and the chi-square check in the significance mode flags it. When it fires, the right move is to fix the delivery, not interpret the result.

Can I test more than one variant at once?

Yes, but every extra variant compared against the same control is another chance for a false positive. This calculator supports up to four variants and applies the Holm correction to their p-values, which controls that inflation. Judge each variant by its corrected p-value, not the raw one.

When should I not trust an A/B test result?

When the experiment behind it was compromised. The usual killers are a sample ratio mismatch in the traffic split, stopping or changing the test mid-flight, checking the results repeatedly and stopping when they look good, running less than one full weekly cycle, and heavy external events overlapping the test. The validity audit mode checks each of these against your numbers and tells you whether to ship, keep running or discard the result.

What does the Bayesian view add to the significance test?

The frequentist test tells you whether the data is surprising under “no difference”. The Bayesian view answers the question stakeholders actually ask: how probable is it that the variant beats control, and what is the expected cost of each wrong decision. Both readings come from the same numbers — use them together, and be suspicious when they tell very different stories.

What is a non-inferiority test for?

For changes that are not supposed to improve the metric, only avoid making it worse: refactors, performance work, migrations and canary rollouts. Instead of testing whether the variant is better, it tests whether it is worse by more than a margin you choose. Shipping is justified when the data rules out a loss larger than that margin.

Is my experiment data sent anywhere?

No. The calculations run entirely in your browser with no experiment data sent to a server. The configuration is encoded in the URL hash so you can share or bookmark it.

Related resources