What this calculator does
This A/B test calculator evaluates your experiment two ways at once. You enter visitors and conversions for each group, and it runs a frequentist significance test and a Bayesian analysis side by side: p-values, confidence intervals, and lift on the left; probability to be best, expected loss, credible intervals, and the full posterior probability distribution of each group's conversion rate on the right. The two frameworks answer different questions about the same data, and seeing them together tells you far more than either alone.
It also runs a sample ratio mismatch (SRM) check on your visitor counts automatically — if your traffic split is broken, no amount of statistics can rescue the test, so the calculator warns you before you read anything else.
Every input is encoded in the URL, so you can share a link to your exact result with your team, and export the result card as a PNG for decks and readouts.
The frequentist test
The calculator runs a two-proportion z-test. With visitors and observed conversion rates for control and variant, the test statistic is:
where are the conversion counts and is the pooled rate under the null hypothesis that both groups convert identically. The two-tailed p-value is , where is the standard normal CDF. The confidence interval on the difference uses the unpooled standard error, and the interval on relative lift uses the delta method.
The Bayesian model
The Bayesian panel treats each group's true conversion rate as an uncertain quantity with a Beta prior (uniform Beta(1, 1) by default, configurable under Advanced). Observing conversions in visitors gives the closed-form posterior
which is exactly the probability distribution drawn for each group in the posterior chart. The probability a variant beats control is computed with Evan Miller's exact summation, expected loss uses Chris Stucchio's closed form, and probability-to-be-best across three or more variants plus the credible interval on lift are estimated by Monte Carlo simulation with 100,000 posterior draws.
A worked example
Suppose your control had 10,000 visitors and 1,000 conversions (10.0%), and your variant had 10,000 visitors and 1,120 conversions (11.2%). The pooled rate is 10.6%, giving a standard error of 0.435 percentage points and . The two-tailed p-value is 0.006 — well below 0.05 — so the 12% relative lift is statistically significant at the 95% (and even 99%) confidence level. The 95% confidence interval on the relative lift runs from roughly +3.5% to +20.5%: the true effect is very likely positive, but its size is still uncertain.
When to use it
- After your test has reached its planned sample size (use the sample size calculator before launch).
- For binary metrics: conversion, sign-up, click-through. For revenue or other continuous metrics, use the revenue-per-visitor calculator.
- For 2+ variants: add variants and the calculator applies an omnibus chi-square test plus Holm-corrected pairwise comparisons automatically.
Common mistakes
- Peeking. Checking daily and stopping when p first dips below 0.05 inflates false positives dramatically. Decide the sample size in advance, or use the sequential testing calculator, whose p-values remain valid under continuous monitoring.
- One-tailed tests chosen after the fact. Halving the p-value by switching to one-tailed after seeing a positive result is p-hacking. Default to two-tailed.
- Ignoring sample ratio mismatch (SRM). If your 50/50 test shows a badly uneven split of actual traffic, your assignment may be broken and every p-value in the test suspect. This calculator checks for SRM automatically; the standalone SRM checker is still available for checking splits on their own.
- Multiple comparisons without correction. Each extra variant or metric multiplies your chances of a fluke. Use the built-in Holm correction for A/B/n tests.
- Confusing significance with size. With enough traffic, a trivial +0.2% lift can be "significant". Read the confidence interval, not just the verdict.