What this calculator does
This Bayesian A/B test calculator treats each variant's true conversion rate as an uncertain quantity and updates that uncertainty with your data. Instead of a p-value, you get answers to the questions stakeholders actually ask: What is the probability the variant is better? How big is the lift likely to be? How much do we risk if we ship it and we are wrong? It reports probability to be best, probability of beating control, expected loss against a configurable risk threshold, a credible interval on relative lift, and a chart of the full posterior distributions.
The model
Conversions are modeled as draws from a Binomial distribution, with a Beta prior on the conversion rate. The Beta is the conjugate prior for the Binomial, so the posterior has a closed form: starting from a prior and observing conversions in visitors, the posterior is
The probability that variant B beats control A is computed exactly using the closed-form summation
(Evan Miller's formula), and the expected loss uses Chris Stucchio's closed form. Probability-to-be-best across three or more variants and the credible interval on lift are estimated by Monte Carlo simulation with 100,000 posterior draws.
A worked example
Control: 5,000 visitors, 500 conversions (10.0%). Variant B: 5,000 visitors, 560 conversions (11.2%). With the uniform prior, the posterior for control is Beta(501, 4501) and for B is Beta(561, 4441). The calculator reports roughly a 97.5% probability that B beats control, a median lift of about +12%, and an expected loss of around 0.005% of conversion rate — if B is secretly worse, you stand to lose almost nothing, so shipping is a low-risk decision even though a frequentist test at 99% confidence would still be "inconclusive".
When to use Bayesian over frequentist
- When you need a decision, not a publication: expected loss gives you a quantified risk to weigh against the cost of keeping the test running.
- When sample sizes are small and you have solid priors from previous tests on the same funnel.
- When communicating with non-statisticians: "93% chance B is better" lands better than "p = 0.07, fail to reject the null".
- Read the deeper comparison in our Bayesian vs frequentist guide.
Common mistakes
- Treating 95% probability as a magic gate. Combine it with expected loss — a coin-flip probability with negligible downside can still justify shipping.
- Overconfident priors. An informative prior based on wishful thinking rather than data will drag your posterior toward fiction. Beta(1, 1) is the honest default.
- Skipping data-quality checks. Bayesian math does not rescue broken randomization — run the SRM checker before believing any posterior.
- Aggressive optional stopping. Checking constantly and stopping at the first 95% crossing still overstates your win rate; prefer expected-loss decision rules or planned durations.