Two-Way Analysis of Variance (Two-Way ANOVA)
Two-Way Analysis of Variance · Also known as: factorial ANOVA, two-factor ANOVA, İki Yönlü ANOVA
Two-Way ANOVA is a parametric hypothesis test that simultaneously examines the main effects of two independent categorical factors and their interaction effect on a single continuous dependent variable. The technique was developed within the broader framework of the analysis of variance established by Ronald A. Fisher in 1925 and remains the standard approach whenever an experiment or survey includes exactly two between-subjects factors.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
+7 more
When to use it
Use Two-Way ANOVA when you have one continuous outcome variable, exactly two independent categorical factors (each with two or more levels), and independent observations. Three assumptions must hold: residuals within each cell are approximately normally distributed (check with Shapiro-Wilk applied per cell), variances are homogeneous across all cells (check with Levene's test), and the two factors are independent of each other. A minimum of roughly 40 total observations is recommended so that each cell contains enough cases for reliable F statistics. If cells are severely unbalanced, use Type III sums of squares. When normality fails, consider the Aligned Rank Transform (ART) ANOVA; when variance homogeneity fails, Welch ANOVA is an alternative; when sample size is too small, a permutation test or Kruskal-Wallis may be more appropriate.
Strengths & limitations
- Tests both main effects and their interaction with a single analysis, offering greater statistical efficiency than running separate one-way tests.
- Detects interaction effects that separate analyses would miss entirely.
- Widely accepted in all empirical disciplines and supported by a mature body of statistical theory (Montgomery, 2017).
- Partial eta-squared provides a standardised, interpretable effect size that can be compared across studies.
- Requires a minimum sample size (around 40 observations) so that every cell has adequate observations for stable F ratios.
- Sensitive to violations of normality and variance homogeneity, particularly in small or unbalanced designs.
- A significant interaction makes the main effects harder to interpret and typically requires follow-up simple effects analysis or interaction plots.
- Restricted to between-subjects designs; repeated measurements require a different model.
Frequently asked
What should I do when the interaction effect is significant?
A significant interaction means the effect of Factor A differs depending on the level of Factor B (and vice versa), so the main effects alone do not tell the full story. The standard approach is to produce an interaction plot to visualise the crossing or diverging lines, and then conduct simple effects analysis — that is, test the effect of one factor separately at each level of the other factor, applying an appropriate correction for multiple comparisons.
Does the order in which I enter the factors matter?
In a balanced design (equal cell sizes) the order does not matter because the factors are orthogonal. In unbalanced designs, however, Type I (sequential) sums of squares depend on the order of entry, which can lead to different conclusions. Always use Type III sums of squares for unbalanced data, as implemented by default in most software when a Type is specified explicitly.
How is Two-Way ANOVA different from running two separate One-Way ANOVAs?
Running two separate one-way ANOVAs inflates the experiment-wise error rate, ignores the interaction between the factors, and uses only the marginal data rather than the full cross-classified structure. Two-Way ANOVA tests both main effects and their interaction simultaneously within a single model, preserving the nominal significance level and providing the additional, often critical, interaction test.
Which effect size should I report?
Partial eta-squared (η²p) is the conventional choice for factorial ANOVA. It expresses each effect's sum of squares as a proportion of that effect's SS plus the error SS, making it interpretable on its own: values around 0.01 are considered small, 0.06 medium, and 0.14 large. Omega-squared (ω²) is a less biased estimator and is preferred for small samples or when generalising beyond the specific study.
Sources
- Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). Wiley. ISBN: 978-1119113478
How to cite this page
ScholarGate. (2026, June 1). Two-Way Analysis of Variance. ScholarGate. https://scholargate.app/en/statistics/two-way-anova
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- ANCOVAStatistics↔ compare
- Kruskal-Wallis testStatistics↔ compare
- MANOVAStatistics↔ compare
- One-way ANOVAStatistics↔ compare
- Repeated-measures ANOVAStatistics↔ compare
- Welch ANOVAStatistics↔ compare