TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is A/B/n testing? Traffic math and multiple comparisons

A/B/n testing compares one control with several variants of the same element. How it differs from A/B and multivariate tests, how much more traffic each extra arm needs, and why a correction such as Bonferroni or Dunnett is required.

Chen Yu Reviewed by Sophia Bennett Also called ABn testing Last updated Nov 29, 2026 Glossary

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 typeWhat variesArmsQuestion answeredTraffic need
A/B testOne element, one new version2Is B better than A?Lowest
A/B/n testOne element, several new versions3 or moreWhich of these versions beats the control?Grows with the number of arms and comparisons
Multivariate testSeveral elements at once, every combinationProduct of the levels, e.g. 2 × 2 × 2 = 8Which 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:

DesignArmsα per comparisonz₁₋α/₂Visitors per armTotal visitorsDays of traffic
A/B20.051.9609,41918,8380.9
A/B/C/D, no correction40.051.9609,41937,6761.9
A/B/C/D, Bonferroni (m = 3)40.01672.39412,56350,2522.5
A/B/C/D/E/F, Bonferroni (m = 5)60.012.57614,01584,0904.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 eachFWER with Bonferroni α ÷ m
15.0%5.0%
314.3%4.9%
522.6%4.9%
937.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.

ArmConversionsConversion rateRelative liftz vs controlp-valueWinner at α = 0.05?Winner at α′ = 0.0167?
A (control)5034.00%
B5744.57%+14.1%2.210.027YesNo
C6164.90%+22.5%3.460.0005YesYes
D5404.30%+7.4%1.170.24NoNo

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:

  1. 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 same variant property on the conversion event.
  2. Create two goals per arm. In Web analytics › Goals, add an event goal on experiment_viewed with the condition variant=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.
  3. Check the split and property coverage. All-platform analytics › Data › Events & properties shows the property value breakdown of variant for the selected dates, so an arm with far fewer events than the others shows up before you analyse results.
  4. 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

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

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

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is the difference between A/B/n testing and multivariate testing?

A/B/n testing compares complete alternative versions of one element, each against the control. Multivariate testing changes several elements at once and tests every combination to measure interactions, so it needs far more traffic. Use A/B/n when you have a few distinct versions of one thing.

How many variants should an A/B/n test have?

Usually three or four arms in total. In the sample calculation, a control plus three variants with Bonferroni correction needs 50,252 visitors, 2.7 times a simple A/B test; with five variants it needs 84,090. If the corrected total exceeds about a month of traffic, run sequential A/B tests.

Do you need to correct for multiple comparisons in A/B/n tests?

Yes. With three variants each tested at 5%, the chance of at least one false winner is 1 − 0.95³ = 14.3%. Bonferroni (α ÷ m), Dunnett's test for comparisons with a shared control, or Holm's step-down method bring it back to about 5%.

Can TapCub run an A/B/n test?

No. TapCub does not split traffic or serve variants. It measures each arm if your testing tool or code sends the variant as an event property, for example through one exposure goal and one conversion goal per variant in Goals.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics