- Introduced by
- Ronald A. Fisher (factorial design); digital A/B testing popularized by Google, Microsoft, and Amazon in the 2000s
- Year
- Factorial design: 1920s–1930s; applied online as factorial A/B test: 2000s–2010s
- Type
- Controlled online/field experiment
- Family
- Experimental design
What does it do?
A factorial A/B test is a controlled online experiment that simultaneously manipulates two or more independent factors, each at two or more levels, exposing different user groups to every combination of factor levels.
Rooted in Fisher's factorial design and operationalised at scale by tech companies, it enables researchers to estimate both the independent main effect of each factor and the interaction effects between factors — all from a single experimental run.
The intuition behind the method
Suppose you want to know whether a new headline improves conversions, and also whether a new button color helps — but you also suspect the two changes might interact. A simple A/B test can answer one question at a time; a factorial A/B test runs all combinations at once (old headline + old button, old headline + new button, new headline + old button, new headline + new button) and tells you not only which factors matter but whether their effects amplify or cancel each other. You get more answers with the same traffic, and you avoid the trap of deploying two changes whose individual benefits disappear when combined.
History
The mathematical foundations of factorial experimentation were laid by Ronald A. Fisher and Frank Yates at Rothamsted Experimental Station in the 1920s and 1930s, codified in Fisher's The Design of Experiments (1935). For decades the method was used primarily in agriculture, manufacturing, and clinical trials. With the rise of large-scale online platforms in the 2000s, Google, Microsoft, and Amazon industrialized the approach as factorial A/B testing, enabling rapid simultaneous evaluation of multiple product changes on millions of users. Kohavi et al.'s 2020 handbook systematized current industry practice.
When to use it
Use a factorial A/B test when you want to evaluate two or more independent changes in one experiment and have a reason to expect those changes might interact, for example when a copy change and a layout change both act on the same click-through step. The traffic must be sufficient to power every cell at once. Each cell needs roughly the sample a standard A/B test would need for the same effect size, so the total sample is that per-cell figure multiplied by the number of cells. Do not use it when traffic cannot power all cells; run sequential A/B tests or a reduced design instead. Avoid it when the changes are known to act independently and interaction is implausible, since separate A/B tests are then simpler to communicate. As the number of factors grows, the number of cells grows multiplicatively, so a fractional design or a smaller set of factors becomes necessary. The design should be fixed before the experiment starts. Users must be randomized independently and must not influence one another across cells (for example through shared social features or limited inventory), because spillover between cells biases the effect estimates.
Limitations and considerations
- Total sample scales with the number of cells. A 2×2×2 design has eight cells, so it needs eight times the per-cell sample. Compared with a standard two-arm test at the same per-cell size, the total sample is four times as large (eight cells versus two). This may be infeasible for low-traffic products.
- Higher-order interactions (three-way and beyond) are difficult to interpret and are typically underpowered unless the experiment is very large.
- Each main effect is averaged over the levels of the other factors in the design. A conclusion about one factor therefore holds only for the combinations of the other factors and for the user population that were actually tested.
- Interpreting interactions requires statistical sophistication that stakeholders may not have, so the pre-specified analysis plan and the table of cell means must be communicated explicitly.
- Validity rests on standard assumptions: users are assigned independently and at random to one cell; there is no interference or spillover between users in different cells; the sample per cell is large enough for the normal approximation; and variance is roughly equal across cells or is modelled explicitly.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Tests several factors in one experiment, so a single run and a single traffic allocation yield a main effect for every factor, instead of one test per factor run in sequence.
- Estimates interaction effects directly. A sequential test cannot show that two changes that each help on their own offset each other when deployed together.
- In a balanced full factorial with equal allocation, main effects and interactions are estimated from orthogonal contrasts, so each term can be read without being confounded with the others.
- The analysis (factorial ANOVA or regression with interaction terms) can be pre-specified in an analysis plan and fitted within either a frequentist or a Bayesian framework.
Applications
- Testing headline copy and hero image simultaneously on a landing page to identify the winning combination that maximizes sign-up rate.
- Evaluating two email subject-line variants crossed with two send-time variants to determine whether timing interacts with messaging in driving open rates.
- Optimizing checkout flow by simultaneously varying button placement and form length to find the cell with the lowest cart-abandonment rate.
- Assessing the joint impact of recommendation algorithm and display layout on streaming platform watch-time.
How it works
How it works
Identify the independent factors (variables) to be tested and specify the discrete levels each factor will take. In a 2×2 factorial A/B test there are two factors, each at two levels, producing four treatment cells. Larger designs (2×2×2, 3×2, etc.) are possible, but each added cell increases the total sample requirement.
Enumerate all combinations of factor levels — these are the experimental cells or arms. For a full factorial design every combination is included; if the number of cells is prohibitively large, a fractional factorial design may be used, sacrificing the ability to estimate high-order interactions in exchange for a smaller experiment. In a fraction, some effects are aliased (confounded) with others, so the design's resolution determines which effects can be estimated cleanly.
Users (or sessions) are randomly assigned to exactly one cell, typically using a hash of a stable user identifier modulo the number of cells, ensuring balanced and independent allocation. Randomization removes selection bias and is the feature that distinguishes a factorial A/B test from observational multi-variate analysis.
The experiment is run for a pre-determined duration — long enough to achieve the target sample size per cell and to account for weekly seasonality effects (typically at least one full week). Outcome metrics (conversion rate, revenue per user, engagement time, etc.) are logged at the user or session level for every cell throughout the exposure window.
Primary analysis uses a factorial ANOVA or regression framework that partitions variance into main effects (one per factor) and interaction effects (one per pair of factors, and higher-order terms if the design is full factorial). For two factors the model is y_ijk = μ + α_i + β_j + (αβ)_ij + ε_ijk, where α_i and β_j are the main effects of the two factors, (αβ)_ij is their interaction and ε_ijk is random error. Each effect is a contrast of cell means. Effect sizes, confidence intervals, and multiplicity-adjusted p-values (e.g., Bonferroni or Benjamini-Hochberg) are reported for each estimated effect.
Formula
y_{ijk} = \mu + \alpha_i + \beta_j + (\alpha\beta)_{ij} + \varepsilon_{ijk}Interpret the pattern of main effects and interactions. If a significant interaction exists, main effects alone can mislead — the winning combination must be identified from the cell means rather than from each factor's marginal average. The winning cell (or cells) is then deployed to 100% of users.
Common pitfalls
- Ignoring significant interactions. Reporting only main effects when an interaction is present produces incorrect recommendations; always inspect the cell means or interaction plots before interpreting individual factor effects.
- Underpowering individual cells. Designers sometimes calculate power for the full experiment rather than per cell, which leaves some cells unable to detect the effects of interest.
- Non-independence of factors. If the implementation of one factor level changes the meaning of another (for example, a layout change that hides the button being tested), the factorial assumption that factor effects can be separated is violated and the interaction estimates are not interpretable.
- Adding factors without a fractional strategy. Each added factor multiplies the number of cells, each of which needs its own sample, and increases the number of tested effects, which inflates the false discovery rate unless corrected.
- Novelty effects that differ between cells. If one combination is new to users, its cell may gain engagement that fades later, creating a spurious main effect or interaction that is not present after full rollout.
Frequently asked questions
How is a factorial A/B test different from running multiple separate A/B tests?
Sequential A/B tests cannot detect whether two factors interact — you might find that each change improves conversion individually but that deploying both actually hurts performance. A factorial A/B test runs all combinations simultaneously, so it estimates interaction effects directly. The benefit is that all comparisons run in one window with one shared traffic allocation; it does not necessarily shorten the total duration.
When should I use a fractional rather than a full factorial design?
A full factorial tests every combination of every factor level. As factors are added, the number of cells multiplies, so the experiment quickly outgrows the available traffic. A fractional factorial design tests a chosen subset of cells, giving up information about high-order interactions that are often (though not always) unimportant. Fractional designs alias effects: in lower-resolution fractions, main effects and low-order interactions can be confounded with each other. The design's resolution determines which main effects and two-factor interactions can be estimated cleanly, so choose the fraction with that in mind. Choose the design before the experiment starts, based on how many factors you need to test and how much traffic you have. If neither design is feasible, consider a sequential testing strategy.
How do I handle multiple comparisons in a factorial A/B test?
Each main effect and each interaction term is a separate hypothesis. Without adjustment, the familywise false-discovery rate increases with the number of tests. Common approaches include Bonferroni correction (conservative, controls familywise error), Benjamini-Hochberg procedure (controls false discovery rate, more power), or a Bayesian model, which handles uncertainty across effects through its prior and likelihood, provided the prior and model are specified in advance. The correction method should be pre-specified in the analysis plan.
What sample size do I need?
Power each cell as you would a two-arm A/B test, using your expected effect size and desired power; each cell then needs roughly that same sample. The total is that per-cell figure multiplied by the number of cells. For a 2×2 design the total is four times the per-cell sample. If powering all cells is infeasible, consider a fractional design or fewer factors. The per-cell requirement depends on the effect size and variability of your own outcome metric, so it should be computed for your study rather than taken from a rule of thumb.
Can I analyze a factorial A/B test with a simple t-test per pair?
No. Pairwise t-tests between cells ignore the factorial structure, inflate the false-discovery rate, and — most critically — do not estimate interaction effects. The correct analysis is a factorial ANOVA or an equivalent regression model with indicator variables for each factor and their products (interaction terms). Only this approach correctly partitions the variance into main effects and interactions.
Related methods
Sources
Kohavi, R., Tang, D., & Xu, Y. (2020). Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing. Cambridge University Press.
ISBN: 978-1108724265Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). Wiley.
ISBN: 978-1119113478