What is A/B testing?
A/B testing (split testing) shows two or more versions of a page, email or feature to randomly split groups of users and compares an outcome such as sign-ups or purchases. Because users are assigned at random, a difference that is too large to be chance can be credited to the change you made. This calculator answers the key question: is the difference real, or just noise?
How to read the results
| Metric | What it tells you |
|---|---|
| Conversion rate | Conversions รท visitors for each variant. |
| Uplift | How much better or worse a variant is than control, in relative terms (+12% means 5.0% โ 5.6%). |
| p-value | How likely a difference this big would be if the variants were really identical. Below 0.05 means significant at 95% confidence. |
| Confidence interval | The range of uplifts consistent with the data. If it excludes 0%, the result is significant. |
| Chance to beat control | A Bayesian probability that the variant's true rate is higher than control's: easier to explain to stakeholders than a p-value. |
| SRM check | Flags when visitor counts are too uneven for an intended 50/50 split, a sign of a broken setup. |
Statistical vs practical significance
With enough traffic, even a 0.5% uplift becomes "significant". Always look at the size of the uplift and the lower end of its confidence interval, and ask whether it is worth the cost of shipping the change.
How long should an A/B test run?
Decide before the test starts. The sample size tab uses the standard two-proportion formula: you need more visitors when your baseline rate is low, when you want to detect a small effect, or when you want higher confidence and power. Divide by daily traffic for the duration, and round up to whole weeks so weekdays and weekends are equally represented.
Common A/B testing mistakes
- Peeking and stopping early: checking daily and stopping at the first significant result can raise the false-positive rate from 5% to over 25%.
- Too many variants: each extra comparison raises the chance of a fluke win. This calculator applies a Bonferroni correction automatically.
- Ignoring SRM: an uneven split usually means tracking or assignment problems; fix them before trusting any result.
- Testing revenue with a conversion test: averages like revenue per user need a t-test, which you'll find in the third tab.
- Novelty effects: big early lifts often fade; run at least one to two full business cycles.
Methods used
- Significance: pooled two-proportion z-test; Bonferroni-adjusted when there are more than two variants.
- Intervals: Wilson score intervals for each rate; delta-method interval for relative uplift.
- Bayesian: Beta(1 + conversions, 1 + non-conversions) posteriors, 40,000 Monte Carlo draws for "chance to beat control" and "chance to be best".
- SRM: chi-square goodness-of-fit against an even split; flagged at p < 0.001.
- Sample size: two-proportion formula with chosen ฮฑ (Bonferroni-adjusted for multiple variants) and power.
- Averages: Welch's unequal-variance t-test with WelchโSatterthwaite degrees of freedom.
Frequently asked questions
How do I know if my A/B test is statistically significant?
Enter visitors and conversions for each variant. If the p-value is below your threshold (0.05 for 95% confidence), the difference is statistically significant: a gap this large would be unlikely if the variants truly performed the same.
What does the p-value mean?
The p-value is the probability of seeing a difference at least as large as the one observed if there were really no difference between the variants. A small p-value means the result is unlikely to be pure chance. It is not the probability that B is better; for that, use the Bayesian 'chance to beat control'.
How many visitors do I need for an A/B test?
It depends on your baseline conversion rate, the smallest uplift you want to detect, the confidence level and the power. Use the sample size tab: for example, detecting a 10% relative lift on a 5% conversion rate at 95% confidence and 80% power needs about 31,000 visitors per variant.
What is a sample ratio mismatch (SRM)?
If traffic was meant to be split evenly but the visitor counts differ more than chance allows, something in the setup is broken (tracking, redirects, bots or assignment bugs). The calculator flags an SRM when the chi-square test p-value is below 0.001. Results from such a test should not be trusted.
Can I stop the test as soon as it becomes significant?
No. Checking repeatedly and stopping at the first significant result greatly increases false positives. Decide the sample size up front, run the test for full weeks to cover weekday patterns, and evaluate once at the end.
How do I test revenue per visitor or average order value?
Use the means tab. Enter the sample size, average and standard deviation for each variant; the calculator runs Welch's t-test, which does not assume equal variances, and reports the difference, uplift, confidence interval and p-value.