{"id":2005,"date":"2026-10-15T13:00:00","date_gmt":"2026-10-15T13:00:00","guid":{"rendered":"https:\/\/freestatisticaltools.com\/blog\/?p=2005"},"modified":"2026-10-15T13:00:00","modified_gmt":"2026-10-15T13:00:00","slug":"two-way-anova","status":"publish","type":"post","link":"https:\/\/freestatisticaltools.com\/blog\/two-way-anova\/","title":{"rendered":"Two-Way ANOVA: Main Effects, Interactions and APA Reporting"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A <strong>two-way ANOVA<\/strong> tests how two categorical factors affect one continuous outcome, for example how teaching method (lecture, online, workshop) and gender affect exam scores. It answers three questions at once:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Does the first factor matter, averaging over the second? (<strong>main effect<\/strong> of A)<\/li>\n\n<li>Does the second factor matter, averaging over the first? (<strong>main effect<\/strong> of B)<\/li>\n\n<li>Does the effect of one factor <em>depend on<\/em> the level of the other? (<strong>interaction<\/strong> A \u00d7 B)<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The interaction is often the most interesting result, and it changes how you should read the main effects.<\/p>\n\n\n<div class=\"fst-tool\"><span class=\"ico\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 20V10M10 20V4M16 20v-7M22 20H2\"\/><\/svg><\/span><span><span class=\"t-eyebrow\">Free tool \u00b7 runs in your browser<\/span><a class=\"t-name\" href=\"https:\/\/freestatisticaltools.com\/two-way-anova-calculator\/\" style=\"text-decoration:none;color:inherit\">Two-Way ANOVA Calculator<\/a><span class=\"t-desc\">Free factorial two-way ANOVA calculator with Type III sums of squares, partial eta squared, cell means and an interaction plot. Matches SPSS.<\/span><\/span><a class=\"btn accent\" href=\"https:\/\/freestatisticaltools.com\/two-way-anova-calculator\/\" data-tool=\"two-way-anova-calculator\">Run a two-way ANOVA \u2192<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Main effects vs interaction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine a 2 \u00d7 3 design: gender (2 levels) \u00d7 teaching method (3 levels). A <strong>main effect of method<\/strong> means the three methods differ on average. An <strong>interaction<\/strong> means the gap between methods is not the same for men and women; perhaps the workshop helps women much more than men.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Plot the cell means with one factor on the x-axis and a line for each level of the other. <strong>Parallel lines suggest no interaction; lines that diverge or cross suggest one.<\/strong><\/p>\n\n\n\n<div class=\"fst-note warning\"><b>Interpret main effects carefully when the interaction is significant<\/b><p>If the effect of method reverses between men and women, the &#8220;average&#8221; effect of method can be misleading or even zero. With a significant interaction, describe the simple effects (the effect of one factor at each level of the other) rather than the main effects alone.<\/p><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Assumptions<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Independent observations<\/strong>, with each participant in one cell only. For repeated measurements use a mixed or repeated measures ANOVA.<\/li>\n\n<li><strong>Normally distributed residuals<\/strong> within each cell. ANOVA is fairly robust with 15\u201320 or more per cell.<\/li>\n\n<li><strong>Equal variances<\/strong> across cells, checked with Levene&#39;s test. Unequal variances are most harmful when cell sizes also differ.<\/li>\n\n<li><strong>Reasonable cell sizes.<\/strong> Unbalanced designs are fine with Type III sums of squares, which is what SPSS and the free calculator use by default.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Worked example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A researcher compares three teaching methods for men and women, with 20 students in each of the six cells (<i>N<\/i> = 120). The error degrees of freedom are 120 \u2212 6 = 114.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Source<\/th><th><i>df<\/i><\/th><th><i>F<\/i><\/th><th><i>p<\/i><\/th><th>Partial \u03b7\u00b2<\/th><\/tr><\/thead><tbody><tr><td>Gender<\/td><td>1<\/td><td>9.36<\/td><td>.003<\/td><td>.076<\/td><\/tr><tr><td>Method<\/td><td>2<\/td><td>3.12<\/td><td>.048<\/td><td>.052<\/td><\/tr><tr><td>Gender \u00d7 Method<\/td><td>2<\/td><td>4.21<\/td><td>.017<\/td><td>.069<\/td><\/tr><tr><td>Error<\/td><td>114<\/td><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">All three effects are significant. Because the interaction is significant, the next step is to test the effect of method separately for men and for women (simple effects), with post hoc comparisons inside each gender, and to show the pattern in a plot of cell means.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Effect size: partial eta squared<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Partial \u03b7\u00b2 is the proportion of variance explained by an effect after removing the other effects: <i>SS<\/i><sub>effect<\/sub> \/ (<i>SS<\/i><sub>effect<\/sub> + <i>SS<\/i><sub>error<\/sub>). You can also compute it from F: \u03b7\u00b2<sub>p<\/sub> = (<i>F<\/i> \u00d7 <i>df<\/i><sub>effect<\/sub>) \/ (<i>F<\/i> \u00d7 <i>df<\/i><sub>effect<\/sub> + <i>df<\/i><sub>error<\/sub>). For the interaction, (4.21 \u00d7 2) \/ (4.21 \u00d7 2 + 114) = .069. Common benchmarks are .01 small, .06 medium and .14 large.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to report a two-way ANOVA in APA 7<\/h2>\n\n\n\n<div class=\"fst-report\"><b>How to report it (APA 7)<button type=\"button\" data-copy-report>Copy<\/button><\/b><div><p>A 2 (gender) \u00d7 3 (teaching method) between-subjects ANOVA was conducted on exam scores. There was a significant main effect of gender, <i>F<\/i>(1, 114) = 9.36, <i>p<\/i> = .003, \u03b7\u00b2<sub>p<\/sub> = .076, and of teaching method, <i>F<\/i>(2, 114) = 3.12, <i>p<\/i> = .048, \u03b7\u00b2<sub>p<\/sub> = .052. These were qualified by a significant gender \u00d7 method interaction, <i>F<\/i>(2, 114) = 4.21, <i>p<\/i> = .017, \u03b7\u00b2<sub>p<\/sub> = .069. Simple effects analysis showed that teaching method affected scores among women but not among men.<\/p><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Add a table of cell means and SDs and a line plot of the interaction. Report the simple effects with their own F or t tests.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common mistakes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reporting the main effects as the headline finding when a significant interaction shows they depend on the other factor.<\/li>\n\n<li>Running separate one-way ANOVAs for each factor, which ignores the interaction entirely.<\/li>\n\n<li>Using Type I sums of squares in an unbalanced design, where the results then depend on the order in which factors are entered.<\/li>\n\n<li>Calling an interaction &#8220;significant for women but not men&#8221; without testing whether the two simple effects differ from each other. That comparison is exactly what the interaction test does.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<div class=\"fst-faq\"><details><summary>What is an interaction effect in a two-way ANOVA?<\/summary><div class=\"a\"><p>An interaction means the effect of one factor depends on the level of the other factor. On a plot of cell means, the lines are not parallel.<\/p><\/div><\/details><details><summary>What should I do after a significant interaction?<\/summary><div class=\"a\"><p>Test simple effects: the effect of one factor at each level of the other, followed by post hoc comparisons where a factor has three or more levels. Describe the pattern with a plot.<\/p><\/div><\/details><details><summary>Can I run a two-way ANOVA with unequal group sizes?<\/summary><div class=\"a\"><p>Yes. Use Type III sums of squares, which do not depend on the order of the factors. Very unequal cells combined with unequal variances can distort the F tests, so check Levene\u2019s test.<\/p><\/div><\/details><details><summary>What is the difference between eta squared and partial eta squared?<\/summary><div class=\"a\"><p>Eta squared divides by the total sum of squares, so effects in the same model add up to at most 1. Partial eta squared divides by the effect plus error only, so values for different effects do not sum to the total. Most software, including SPSS, reports partial eta squared.<\/p><\/div><\/details><details><summary>How many participants do I need per cell?<\/summary><div class=\"a\"><p>A common rule of thumb is at least 15\u201320 per cell. For a planned study, run a power analysis for the effect you care most about, usually the interaction, which needs larger samples.<\/p><\/div><\/details><\/div>\n\n\n<div class=\"fst-report\"><b>Cite the tool (APA 7)<button type=\"button\" data-copy-report>Copy<\/button><\/b><div>Xavier, B. (2026). <i>Two-Way ANOVA Calculator<\/i> [Web application]. FreeStatisticalTools.com. https:\/\/freestatisticaltools.com\/two-way-anova-calculator\/<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Two factors, one outcome. How to read main effects and interactions in a two-way ANOVA, follow up an interaction and report the results in APA style.<\/p>\n","protected":false},"author":1,"featured_media":2006,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_fst_seo_title":"Two-Way ANOVA Explained: Interaction Effects and APA Report","_fst_meta_desc":"Understand two-way ANOVA: main effects, interaction effects, assumptions, simple effects follow-up, partial eta squared and how to report it in APA 7.","_fst_primary_tool":"two-way-anova-calculator","_fst_canonical":"","_fst_noindex":false,"_fst_no_toc":false,"_fst_no_autolink":false,"footnotes":""},"categories":[3],"tags":[20,19,80,94],"class_list":["post-2005","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-compare-means","tag-anova","tag-apa-style","tag-interaction-effect","tag-two-way-anova"],"_links":{"self":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/comments?post=2005"}],"version-history":[{"count":1,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2005\/revisions"}],"predecessor-version":[{"id":2046,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2005\/revisions\/2046"}],"wp:attachment":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/media?parent=2005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/categories?post=2005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/tags?post=2005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}