FreeStatisticalTools.com
Bayesian statistics

Bayesian A/B Test Calculator

Enter visitors and conversions for two variants. The Beta-binomial model gives the probability that B is better than A, the likely size of the uplift, and the expected loss of choosing each variant.

Free · No sign-upReplaces VWO · OptimizelyCalculator
Updated · By Bibin Xavier

Variables and options

Results update automatically when you change an option.

Results

Calculated in your browser
Table 1

Posterior conversion rates

VariantVisitorsConversionsObserved ratePosterior mean95% credible interval
A (control)1,200968.00%8.07%[6.60%, 9.67%]
B (variant)1,18012110.25%10.32%[8.65%, 12.12%]

Note. Beta(1, 1) prior for each rate; posterior Beta(α + conversions, β + non-conversions).

Table 2

Decision summary

QuantityValue
P(B > A)97.18%
P(A > B)2.82%
Expected relative uplift of B29.05%
95% credible interval for uplift[-0.78%, 65.09%]
Expected loss if you choose A2.259 percentage points
Expected loss if you choose B0.013 percentage points

Note. P(B > A) by numerical integration; uplift and expected loss from 60,000 posterior draws. Expected loss is the average conversion rate you give up if the chosen variant is actually worse.

Posterior distributions of the conversion rates

Distribution of the relative uplift (B vs A)

P(B beats A)97.2%
Expected uplift29.0%
Risk of choosing B0.013 pp

Interpretation

There is a 97.2% probability that B converts better than A. The expected relative uplift is 29.0% (95% credible interval -0.8% to 65.1%). B is very likely the better variant.

How to cite this tool

Using these results in a thesis, journal article, report or class assignment? Please cite this free tool so others can find it. It keeps the site free.

APA 7

Xavier, B. (2026). Bayesian A/B Test Calculator [Web application]. FreeStatisticalTools.com. https://freestatisticaltools.com/bayesian-ab-test-calculator/

BibTeX

@software{xavier_bayesianabtest_2026,
  author = {Xavier, Bibin},
  title = {Bayesian A/B Test Calculator},
  publisher = {FreeStatisticalTools.com},
  year = {2026},
  url = {https://freestatisticaltools.com/bayesian-ab-test-calculator/},
  note = {Web application}
}

Suggested sentence for your methods section: “The analysis was carried out with the free Bayesian A/B Test Calculator tool on FreeStatisticalTools.com (Xavier, 2026).”

What is a Bayesian A/B test?

A Bayesian A/B test treats each conversion rate as uncertain and describes it with a Beta posterior distribution. From these posteriors it calculates the probability that the variant beats the control, the likely size of the uplift and the expected loss of choosing each option, which map directly onto business decisions.

When to use a Bayesian A/B test

Use it to evaluate website, email or product experiments with a binary outcome (converted or not), when you want direct probabilities such as “B is better with 97% probability” rather than a p-value.

Assumptions

  • Visitors are randomly assigned and counted once; conversions are independent.
  • A flat Beta(1, 1) prior is neutral; informative priors can encode past conversion rates.

How to set up your data

Four numbers: visitors and conversions for each variant.

How to use this calculator

  1. Enter the values. Fill in visitors a (control), conversions a, visitors b (variant) and conversions b.
  2. Read the results. Results update automatically. Read the plain-English interpretation, then use Copy table to paste APA-style tables into Word and Copy for the results sentence.

How to report a Bayesian A/B test in APA style

“Variant B converted at 10.3% vs 8.0% for A; the posterior probability that B is better was 98.6%, with an expected uplift of 28% (95% CrI 3% to 57%).”

Frequently asked questions

How do I read “probability to beat control”?

P(B > A) = 95% means that, given the data and prior, there is a 95% chance that B’s true conversion rate is higher than A’s.

When should I stop an A/B test?

Common rules are to stop when P(B > A) exceeds 95% (or falls below 5%) or when the expected loss of the leading variant drops below a threshold you can accept, after a pre-planned minimum sample.

What prior should I use?

Beta(1, 1) is flat and neutral. To encode past knowledge, use α and β proportional to previous conversions and non-conversions.

Is this better than a frequentist significance test?

It answers a more direct question, how likely B is to be better and by how much, and the expected loss helps decide even when the result is not conclusive.

Related tools

Browse all categories