Converter tool

A/B Test Significance Calculator

Enter visitors and conversions for a control and up to seven challengers. Get z-test, chi-square and exact p-values, confidence intervals for the lift, Holm correction, Bayesian win probabilities and a sample ratio check. Free, and nothing leaves your browser.

Step 1

Enter the counts

← Swipe to see all columns →

Variants with visitors, conversions and planned traffic share
Variant (first row = control)VisitorsConversionsPlanned splitRemove

Planned split is the share of traffic you meant to send each variant (1 and 1 for an even split, 90 and 10 for ten percent). It is only used for the sample ratio check.

Step 2

Settings

Advanced: Bayesian prior (how strongly to weight prior belief)

Enter visitors and conversions for each variant, paste a table, or press Load example. The results appear here.

A/B Test Significance Calculator

Operator: Abdulla Al Fahad. How tools are built and checked

An A/B test ends with two or more pairs of numbers, visitors and conversions, and one question: is the gap real or is it the ordinary wobble you get from sampling different people? This calculator answers that question for a control and up to seven challengers, and it shows its working. Every figure on the page comes from a formula written out below, so you can check it against your own spreadsheet instead of trusting a black box.

It goes further than a single p-value because one p-value is rarely enough. A test with three variants has two comparisons, and the more comparisons you make the easier it is to find a false winner. The page applies the Holm correction for that, flags a traffic split that does not match what you planned, switches to Fisher's exact test when counts are tiny, and gives a Bayesian answer to the question most people actually ask: how likely is it that this variant is better?

Key features

  • Two to eight variants, typed, pasted, or read from a CSV or XLSX summary or per-visitor file
  • Wilson 95% intervals for every rate and Beta credible intervals for the posterior rate
  • Pooled z-test, chi-square (optional Yates correction) and Fisher's exact test per challenger, two-sided or one-sided
  • Holm-Bonferroni adjusted p-values for the verdict, with plain Bonferroni shown next to them
  • Absolute and relative lift with 95% intervals, and an overall chi-square across all variants
  • Probability to beat control, probability of being best and expected loss, with an editable Beta prior
  • Sample ratio mismatch check against an even or custom planned split, flagged at p below 0.001
  • Sample size planner with Bonferroni option, a minimum detectable effect calculator and a duration estimate
  • Interval and posterior charts drawn as inline SVG, and results in CSV or a two-sheet XLSX

The tests behind the verdict, and what they assume

Counts can be typed into the table, pasted, or loaded from a CSV or XLSX file of up to 25 MB. Two layouts are recognised. The summary layout has one row per variant with a variant column, a visitors column (headers such as visitors, users, sessions or total) and a conversions column (conversions, converted, purchases, signups, orders). The per-visitor layout has one row per visitor, a variant column and a column holding 0/1, yes/no or true/false, and the tool counts the rows for you. Rows that repeat a variant name are added together, and the first variant in the file becomes the control.

Validation is strict because a quiet fix would change the answer. Visitors and conversions must be whole numbers, visitors must be above zero, conversions cannot exceed visitors, and names must be unique. Up to eight variants are accepted; a ninth is refused with a message rather than dropped. The optional planned split column takes relative weights such as 1 and 1, or 90 and 10, and feeds only the sample ratio check.

Rates are shown with 95 percent Wilson score intervals, which stay inside 0 to 100 percent and behave sensibly for rates near zero, unlike the textbook plus-or-minus interval. The absolute lift, the challenger rate minus the control rate, carries an unpooled Wald interval. The relative lift is the ratio minus one, and its interval comes from the delta method on the log risk ratio, with standard error the square root of (1 minus p1) over x1 plus (1 minus p2) over x2. That interval does not exist when either arm has no conversions, and the table says so instead of printing a number.

The p-value used for each verdict is the pooled two-proportion z-test, two-sided by default or one-sided if you test only whether the challenger is better. The chi-square test is shown beside it and, for a 2 by 2 table without Yates correction, equals the z statistic squared, so the two p-values match. When any expected cell count falls below 5, Fisher's exact test replaces the z-test as the p-value that counts. It is computed from the hypergeometric distribution for tables up to 200,000 visitors; above that size the page keeps the z-test and warns you.

How it works

The z-test pools both arms: pbar is total conversions over total visitors, the standard error is the square root of pbar times (1 minus pbar) times (1 over n1 plus 1 over n2), and z is the rate difference divided by that. The p-value comes from the normal distribution, which is evaluated through the incomplete gamma function and agrees with published tables to about 12 digits. Chi-square for a k by 2 table sums (observed minus expected) squared over expected for every cell, with k minus 1 degrees of freedom.

Fisher's exact p-value fixes the row and column totals and sums the probability of every table at most as likely as yours, using log-gamma for the binomial coefficients so large factorials do not overflow. The one-sided version sums the tail in the direction of a better challenger.

The Bayesian figures treat each variant's true rate as Beta(prior alpha plus conversions, prior beta plus non-conversions), with Beta(1, 1) as the default. Probability to beat control is the integral of the challenger's density times the control's cumulative distribution, computed by Simpson's rule with 4,000 steps over the range where either curve has mass. Probability of being best uses the same identity with the product of the other variants' cumulative distributions. There is no random sampling, so the same inputs always return the same numbers. Expected loss is the integral of F_challenger times (1 minus F_control), the average rate you would give up by shipping a challenger that is actually worse.

Holm's step-down procedure sorts the p-values, multiplies the smallest by the number of comparisons, the next by one fewer, and so on, then forces the results to be non-decreasing. It controls the chance of any false positive across all challengers and is never less powerful than Bonferroni. The sample size planner uses n = (z(alpha) times the square root of 2 times pbar times (1 minus pbar), plus z(power) times the square root of p1(1 minus p1) plus p2(1 minus p2)) squared, divided by (p2 minus p1) squared, rounded up. The minimum detectable effect is found by bisection on p2 until that formula gives the visitors you have.

When to use it

  • Checking whether a new checkout button, headline or form length changed signups, using the counts from your analytics export
  • Telling a stakeholder that a variant with a 98 percent chance to beat control still failed the frequentist test, and why both statements can be true
  • Catching a broken experiment: 10,250 against 9,750 visitors on a planned 50/50 split has a ratio-check p of 0.0004 and means assignment is faulty
  • Planning an experiment on a 3 percent baseline so that a 20 percent relative improvement is detectable, and finding that it needs 13,914 visitors per variant
  • Aggregating a raw per-visitor export from an email tool into variant totals without writing a pivot table

Inputs

  1. Type visitors and conversions for the control in the first row and for each challenger below it, or paste a table, or upload a file.
  2. Set alpha (0.05 is the usual choice) and decide between a two-sided test and a one-sided test for a challenger that is better.
  3. If your traffic was not split evenly on purpose, enter the planned shares in the Planned split column so the ratio check expects them.
  4. Read the verdict first, then the interval table, then the challenger table. Look at the warnings before acting on any of it.
  5. Download the CSV or XLSX to attach the numbers to a report. Use the Sample size planner tab before the next test, not after it.

Worked example

A three-variant test with 5,000 visitors each, alpha 0.05, two-sided

variant,visitors,conversions
Control,5000,400
Green button,5000,460
Short form,5000,425

What the page reports

Rates         Control 8.00% (7.28% to 8.78%), Green button 9.20%, Short form 8.50%
Green button  lift +1.20 points (+0.10 to +2.30), relative +15.0% (+1.2% to +30.7%)
              z = 2.14, raw p = 0.0323, Holm p = 0.0647, P(beats control) = 98.4%
Short form    lift +0.50 points, z = 0.91, p = 0.3635, P(beats control) = 81.8%
P(best)       Control 1.1%, Green button 88.3%, Short form 10.6%
Overall       chi-square 4.64, df 2, p = 0.098; traffic split OK
Verdict       no challenger significant after Holm; the raw 0.0323 does not survive two comparisons

Tips for best results

  • Decide the sample size, alpha and number of variants before launch, then read the result once at the end. The p-values here assume exactly that plan.
  • Use a one-sided test only if you would ship nothing, and would not care, when the challenger is worse. If a drop would change your decision, keep two-sided.
  • With many challengers, look at the Holm column rather than the raw p-value. In the worked example the green button moves from 0.032 to 0.065 once the second challenger counts.
  • Run at least one full week so weekday and weekend visitors both appear in every arm, even if the planner says you reach the sample size sooner.
  • Read expected loss next to probability to beat control. A 95 percent chance of winning with an expected loss of 0.003 points is a much cheaper bet than the same chance with 0.4 points at stake.

Limits

Peeking breaks the maths. Stopping the first time p dips below 0.05 in a test you check daily produces false winners far more often than five percent of the time. This page cannot detect that you did it.

A flagged sample ratio mismatch invalidates the comparison. The usual causes are redirects that drop visitors, bot filtering that hits one arm, or a bucketing bug. The p-values below it are arithmetic on a biased sample.

Conversions are counted once per visitor. If your numbers count every purchase, and one visitor can buy twice, the binomial assumptions fail and the intervals come out too narrow.

Overlapping Wilson intervals do not mean no significant difference, and separated intervals are a stricter bar than the test uses. Decide with the p-value and the lift interval, and use the chart to see magnitude.

The exact test is skipped above 200,000 visitors in a pair. Those samples are large enough for the z-test unless the conversion count itself is tiny, in which case the page warns you.

Common errors and how to fix them

"conversions cannot exceed visitors"
Check the columns are not swapped, and that a file holding revenue or a count of events per visitor is not being read as conversions.
"Could not find the counts" when uploading
Rename the header cells to variant, visitors and conversions, or add a column of 0/1 or yes/no values named converted for a per-visitor file.
Relative lift shows n/a
One of the two arms has zero conversions, so the ratio and its interval are undefined. The absolute lift and the exact test are still shown.

Best practices

  • Write down the metric, the minimum lift worth shipping and the sample size before the test starts, and keep the note with the result.
  • Always check the traffic split first. A result from a mismatched split is not worth interpreting.
  • Pair statistical significance with a business threshold: a significant 0.05 point lift may not cover the cost of the change.

Why the Bayesian and the p-value answers can disagree

In the worked example the green button has a 98.4 percent probability of beating the control, yet its Holm-adjusted p-value is 0.065. Both are correct, because they answer different questions. The probability says: given this data and a flat prior, how much of the plausible range for the true rate difference lies above zero? The p-value says: if the buttons were identical, how often would a test of this size, run alongside another challenger, produce a gap this large somewhere among its comparisons?

The Bayesian figure ignores the extra challenger, which is why it looks more optimistic. Neither number tells you the size of the prize. For that, use the lift interval: the green button's absolute gain could be as small as 0.10 points or as large as 2.30. Use whichever framework your team agreed on before the test, and report the interval beside it.

Reading the sample size planner

The planner is deliberately sensitive to the numbers you give it. At a 10 percent baseline, detecting a 10 percent relative improvement (10% to 11%) at 80 percent power and two-sided alpha 0.05 takes 14,751 visitors in each variant. Halve the improvement to 5 percent and the answer grows to 57,763, roughly four times as many, because the required sample scales with the inverse square of the effect. Raising power to 90 percent moves the first case to 19,747, and Bonferroni-splitting alpha across two challengers moves it to 17,864.

The reverse calculator answers the question traffic-limited sites ask: with 10,000 visitors per variant and a 5 percent baseline, the smallest improvement you can reliably detect is about 0.90 points, from 5.00% to 5.90%, an 18 percent relative lift. Anything smaller will usually look like noise. The duration estimate divides the total visitors needed across all variants by the daily traffic you enter.

What stays on your device

The tables, pasted text and files are read and calculated in this browser tab. Nothing is uploaded, and the page does not store your numbers between visits. The XLSX workbook is generated locally, and its libraries load only when you ask for the download.

Frequently asked questions

How many visitors do I need before I can trust the result?

It depends on the baseline rate and the smallest improvement you care about, not on a fixed number. Use the Sample size planner: a 10 percent baseline and a 10 percent relative improvement needs 14,751 visitors per variant at 80 percent power. Fewer visitors can still show a large effect, but cannot reliably show a small one.

Why is the Holm p-value larger than the raw p-value?

With more than one challenger you are running several tests at once, and each extra test gives chance another opportunity to produce a false positive. Holm raises the p-values to compensate. With a single challenger it leaves the p-value unchanged.

What does a sample ratio mismatch mean?

It means the numbers of visitors per variant differ from your planned split by more than random assignment explains, flagged here when the chi-square goodness-of-fit p-value is below 0.001. It usually points to a technical fault in how visitors were assigned or counted, and the comparison below it should not be trusted until it is fixed.

Can I use this for revenue or average order value?

No. The tests here are for yes/no outcomes, a visitor either converts or does not. Revenue per visitor is a continuous measure with a skewed distribution and needs a different test, such as a t-test or a bootstrap.