Quick answer
A/B/n testing is a controlled experiment that splits traffic at random between one control and two or more variants of the same element. Each extra arm thins the traffic and adds a comparison, so it needs a larger sample and a correction such as Bonferroni or Dunnett to keep false winners at 5%.
Formula: n per arm ≈ 2(z₁₋α′/₂ + z₁₋β)² p(1 − p) ÷ δ², α′ = α ÷ m; uncorrected FWER = 1 − (1 − α)^m
What is A/B/n testing?
A/B/n testing (also written ABn testing) is a controlled experiment that compares one control with two or more variants of the same element at the same time, splitting traffic at random across all of them. "A" is the control, "B" the first variant and "n" stands for however many more versions are added. A test of a current headline against three new headlines is an A/B/C/D test, which is one kind of A/B/n test.
The appeal is speed: you test several ideas in one run instead of three A/B tests in a row. The cost is less obvious and is the point of this page. Every extra arm splits the traffic thinner, and every extra comparison against the control is another chance to declare a false winner. An A/B/n test with three variants needs about 2.7 times the traffic of a simple A/B test once you correct for that, and without the correction its false-positive rate rises from 5% to 14.3%.
A/B vs A/B/n vs multivariate testing
| Test type | What varies | Arms | Question answered | Traffic need |
|---|---|---|---|---|
| A/B test | One element, one new version | 2 | Is B better than A? | Lowest |
| A/B/n test | One element, several new versions | 3 or more | Which of these versions beats the control? | Grows with the number of arms and comparisons |
| Multivariate test | Several elements at once, every combination | Product of the levels, e.g. 2 × 2 × 2 = 8 | Which combination works, and do elements interact? | Highest |
A/B/n keeps the design simple: each variant is a complete alternative to the control, and you only compare each variant with the control. A multivariate test changes several elements together and estimates the effect of each element and their interactions, so it needs far more traffic. See multivariate testing for factorial designs and the A/B testing guide for running a two-arm test.
How extra arms raise the traffic you need
For a conversion-rate test, the visitors needed per arm are approximately:
n per arm ≈ 2 × (z₁₋α/₂ + z₁₋β)² × p(1 − p) ÷ δ²
where p is the baseline conversion rate, δ the absolute minimum detectable effect, α the significance level and 1 − β the power. This is the two-group version of the normal-approximation formulas in the NIST/SEMATECH e-Handbook. With m variants each compared with the control, a Bonferroni correction tests each comparison at α′ = α ÷ m, which raises z and therefore n.
Sample data: baseline conversion 4%, minimum detectable effect 0.8 percentage points (4.0% → 4.8%), α = 0.05, power 80%, 20,000 eligible visitors per day. Recomputed in Python:
| Design | Arms | α per comparison | z₁₋α/₂ | Visitors per arm | Total visitors | Days of traffic |
|---|---|---|---|---|---|---|
| A/B | 2 | 0.05 | 1.960 | 9,419 | 18,838 | 0.9 |
| A/B/C/D, no correction | 4 | 0.05 | 1.960 | 9,419 | 37,676 | 1.9 |
| A/B/C/D, Bonferroni (m = 3) | 4 | 0.0167 | 2.394 | 12,563 | 50,252 | 2.5 |
| A/B/C/D/E/F, Bonferroni (m = 5) | 6 | 0.01 | 2.576 | 14,015 | 84,090 | 4.2 |
Two effects stack. More arms means more groups to fill (37,676 instead of 18,838), and the stricter threshold means each group must be larger (12,563 instead of 9,419). The corrected four-arm test needs 50,252 visitors, 2.7 times the A/B test. Even when the traffic arrives in a few days, run whole weeks so weekday and weekend visitors are both in every arm.
Why several variants inflate false positives
Each comparison at α = 0.05 has a 5% chance of a false positive when the variant truly does nothing. With m independent comparisons, the chance that at least one is a false winner, the familywise error rate (FWER), is:
FWER = 1 − (1 − α)^m
This treats the comparisons as independent. Comparisons that share one control are positively correlated, so the true rate is slightly lower, but the order of magnitude holds.
| Variants compared with control (m) | FWER at α = 0.05 each | FWER with Bonferroni α ÷ m |
|---|---|---|
| 1 | 5.0% | 5.0% |
| 3 | 14.3% | 4.9% |
| 5 | 22.6% | 4.9% |
| 9 | 37.0% | 4.9% |
With three variants and no correction, one test in seven will crown a winner that is not real. The same logic applies to checking several metrics or segments in one test; p-hacking is what happens when nobody counts those extra looks.
Bonferroni, Dunnett and Holm corrections
- Bonferroni: test each comparison at α ÷ m. Simple and conservative; the NIST handbook notes the overall confidence is at least 1 − α, so the true error rate is a little below 5%.
- Dunnett's test (Dunnett, 1955): built for exactly the A/B/n case, several treatments each compared with one control. It accounts for the shared control group, so it is less conservative than Bonferroni and gives slightly more power for the same traffic.
- Holm's step-down method: sort the p-values, compare the smallest with α ÷ m, the next with α ÷ (m − 1), and so on, stopping at the first that fails. It never rejects fewer hypotheses than Bonferroni.
- False discovery rate control: when you test many variants or metrics and can accept some false winners in exchange for power, control the false discovery rate instead of the familywise rate.
Decide the correction before the test starts and plan the sample size with it.
Worked example: control plus three headlines
Sample data: the four-arm test above runs for two full weeks, and each arm gets 12,563 visitors.
| Arm | Conversions | Conversion rate | Relative lift | z vs control | p-value | Winner at α = 0.05? | Winner at α′ = 0.0167? |
|---|---|---|---|---|---|---|---|
| A (control) | 503 | 4.00% | |||||
| B | 574 | 4.57% | +14.1% | 2.21 | 0.027 | Yes | No |
| C | 616 | 4.90% | +22.5% | 3.46 | 0.0005 | Yes | Yes |
| D | 540 | 4.30% | +7.4% | 1.17 | 0.24 | No | No |
Without the correction, B and C both "win". With it, only C does. B's p = 0.027 is exactly the kind of result that appears about once in seven uncorrected three-variant tests even when nothing works. Ship C, and if B's idea still matters, retest it head to head with a fresh sample.
When to use A/B/n testing
- Use it when you have three or four genuinely different versions of one element (a headline, a hero image, a price display) and the corrected sample size fits into about four weeks of traffic.
- Run sequential A/B tests instead when the corrected total would need more than a month, or when the variants are small tweaks of each other.
- Use a multivariate test only when you need to know how two or more elements interact and you have the traffic for every combination.
- Keep the split equal unless you have planned for an unequal one; an arm that gets half the traffic needs twice the time to reach the same precision.
Common A/B/n testing mistakes
- Picking the best of n variants with an uncorrected α. The best-looking arm is the one most likely to be inflated by noise.
- Comparing variants with each other as well as with the control without counting those comparisons in m.
- Stopping as soon as one arm crosses the line. Repeated peeking inflates false positives on top of the multiple-arm problem.
- Adding an arm halfway through. The new arm sees different weeks; restart instead.
- Sizing the test as if it were A/B. The table above shows the corrected four-arm test needs 2.7 times the traffic.
Measuring an A/B/n test with TapCub
TapCub does not split traffic or serve variants; your testing tool or your own code assigns each visitor to an arm. TapCub can measure the arms if each event carries the variant:
- Send the assignment as an event property. When a visitor sees the page, call
tapcub.track('experiment_viewed', { experiment: 'headline-q4', variant: 'C' }), and put the samevariantproperty on the conversion event. - Create two goals per arm. In Web analytics › Goals, add an event goal on
experiment_viewedwith the conditionvariant=C, and a second on the conversion event with the same condition. Repeat for each arm. The distinct converters column of the exposure goal is the arm's visitors; the conversion goal's is its converters. - Check the split and property coverage. All-platform analytics › Data › Events & properties shows the property value breakdown of
variantfor the selected dates, so an arm with far fewer events than the others shows up before you analyse results. - Run the corrected comparison outside TapCub. Put each arm's visitors and converters into the two-proportion test and compare each p-value with α ÷ m, as in the example table.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods, 7.4.7.3 Bonferroni's method.
- NIST/SEMATECH e-Handbook of Statistical Methods, 7.2.4.2 Sample sizes required (normal-approximation sample size for proportions).
- Dunnett, C. W. (1955). A multiple comparison procedure for comparing several treatments with a control. Journal of the American Statistical Association, 50(272), 1096–1121.
Was this explanation clear?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Technical Engineer
Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.