{"id":2009,"date":"2026-10-15T17:00:00","date_gmt":"2026-10-15T17:00:00","guid":{"rendered":"https:\/\/freestatisticaltools.com\/blog\/?p=2009"},"modified":"2026-10-15T17:00:00","modified_gmt":"2026-10-15T17:00:00","slug":"ancova-analysis-of-covariance","status":"publish","type":"post","link":"https:\/\/freestatisticaltools.com\/blog\/ancova-analysis-of-covariance\/","title":{"rendered":"ANCOVA Explained: Adjusted Means, Assumptions and APA Reporting"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>ANCOVA<\/strong> (analysis of covariance) compares group means on an outcome while statistically controlling for one or more continuous variables, called <strong>covariates<\/strong>. The classic use is a pretest-posttest design: compare posttest scores between an intervention and a control group, adjusting for each person&#39;s pretest score.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Adding a covariate that is strongly related to the outcome removes some of the unexplained variance, so the group comparison becomes more precise and more powerful.<\/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\/ancova-calculator\/\" style=\"text-decoration:none;color:inherit\">ANCOVA Calculator<\/a><span class=\"t-desc\">Free one-way ANCOVA calculator: Type III tests, adjusted (estimated marginal) means, partial eta squared and the homogeneity of regression slopes test.<\/span><\/span><a class=\"btn accent\" href=\"https:\/\/freestatisticaltools.com\/ancova-calculator\/\" data-tool=\"ancova-calculator\">Run an ANCOVA \u2192<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What ANCOVA does<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">ANCOVA fits a regression of the outcome on the covariate within each group and compares the groups at the same value of the covariate, usually its overall mean. The group means at that point are the <strong>adjusted means<\/strong> (also called estimated marginal means). The F test for the group factor tests whether these adjusted means differ.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to use it<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A continuous outcome, a categorical grouping factor and one or more continuous covariates.<\/li>\n\n<li>The covariate was measured <strong>before<\/strong> the treatment, or cannot be affected by it (age, baseline score).<\/li>\n\n<li>Ideally, participants were randomly assigned to groups. Then ANCOVA increases precision without changing what is being compared.<\/li>\n<\/ul>\n\n\n\n<div class=\"fst-note warning\"><b>ANCOVA cannot rescue non-equivalent groups<\/b><p>If intact groups differ on the covariate (one school has much higher baseline scores), adjusting statistically does not make them comparable. The covariate may be measured with error, and other differences between the groups remain. Interpret ANCOVA on non-randomized groups cautiously.<\/p><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Assumptions<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Linear relationship<\/strong> between the covariate and the outcome in every group. Check with a scatter plot.<\/li>\n\n<li><strong>Homogeneity of regression slopes:<\/strong> the covariate\u2013outcome slope is the same in every group. Test it by adding the group \u00d7 covariate interaction. If it is significant, the group difference depends on the covariate value, and ordinary ANCOVA is not appropriate.<\/li>\n\n<li><strong>Independence<\/strong> of the covariate and the treatment, which random assignment provides.<\/li>\n\n<li><strong>Normal residuals and equal variances<\/strong> across groups, as in ANOVA.<\/li>\n\n<li><strong>Covariate measured reliably.<\/strong> Measurement error in the covariate leads to under-adjustment.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Worked example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sixty students are randomly assigned to a new tutoring program or the usual teaching (30 each). Their math pretest is the covariate and the posttest is the outcome.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Homogeneity of slopes: the group \u00d7 pretest interaction is not significant, <i>F<\/i>(1, 56) = 0.42, <i>p<\/i> = .520, so the assumption holds.<\/li>\n\n<li>The pretest strongly predicts the posttest, <i>F<\/i>(1, 57) = 48.30, <i>p<\/i> &lt; .001, \u03b7\u00b2<sub>p<\/sub> = .46.<\/li>\n\n<li>After adjusting for pretest, the groups differ: <i>F<\/i>(1, 57) = 6.80, <i>p<\/i> = .012, \u03b7\u00b2<sub>p<\/sub> = .107.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Group<\/th><th>Unadjusted mean<\/th><th>Adjusted mean<\/th><th>SE<\/th><\/tr><\/thead><tbody><tr><td>Tutoring<\/td><td>71.8<\/td><td>72.2<\/td><td>1.31<\/td><\/tr><tr><td>Usual teaching<\/td><td>67.6<\/td><td>67.4<\/td><td>1.31<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The adjusted means compare the two groups as if they had the same average pretest score. The tutoring group scored about 4.8 points higher.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to report ANCOVA 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 one-way ANCOVA compared posttest math scores between the tutoring and usual-teaching groups, controlling for pretest scores. The assumption of homogeneity of regression slopes was met, <i>F<\/i>(1, 56) = 0.42, <i>p<\/i> = .520. Pretest scores were significantly related to posttest scores, <i>F<\/i>(1, 57) = 48.30, <i>p<\/i> &lt; .001, \u03b7\u00b2<sub>p<\/sub> = .46. After adjustment, the tutoring group (<i>M<\/i><sub>adj<\/sub> = 72.2, <i>SE<\/i> = 1.31) scored significantly higher than the usual-teaching group (<i>M<\/i><sub>adj<\/sub> = 67.4, <i>SE<\/i> = 1.31), <i>F<\/i>(1, 57) = 6.80, <i>p<\/i> = .012, \u03b7\u00b2<sub>p<\/sub> = .107.<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">ANCOVA vs gain scores vs repeated measures<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For a randomized pretest-posttest design, ANCOVA on the posttest with the pretest as covariate is generally more powerful than comparing gain scores (posttest \u2212 pretest) or running a mixed ANOVA, and it is the approach most methodologists recommend. With non-randomized groups the methods can give different answers (Lord&#39;s paradox), and none of them fully solves the problem.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common mistakes<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Using a covariate measured after the treatment, which may itself be affected by the treatment and remove part of the effect you want to find.<\/li>\n\n<li>Skipping the homogeneity of slopes test.<\/li>\n\n<li>Reporting unadjusted means alongside the ANCOVA F test. Report the adjusted means that the test actually compares.<\/li>\n\n<li>Adding many weakly related covariates. Each one costs a degree of freedom without reducing error much.<\/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 adjusted mean in ANCOVA?<\/summary><div class=\"a\"><p>It is the estimated group mean at the overall mean of the covariate, which shows how the groups would compare if they had the same covariate value. It is also called the estimated marginal mean.<\/p><\/div><\/details><details><summary>What if the homogeneity of regression slopes assumption is violated?<\/summary><div class=\"a\"><p>The group effect depends on the covariate value, so a single adjusted difference is misleading. Report the model with the interaction, or use the Johnson-Neyman technique to show where groups differ.<\/p><\/div><\/details><details><summary>Can I use more than one covariate?<\/summary><div class=\"a\"><p>Yes, but each should be theoretically justified, measured before treatment and related to the outcome. A good rule is no more covariates than about one per 10 participants per group.<\/p><\/div><\/details><details><summary>Is ANCOVA the same as regression?<\/summary><div class=\"a\"><p>Yes. ANCOVA is a linear regression with a categorical predictor (dummy coded) and continuous covariates. The ANCOVA table is a different presentation of the same model.<\/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>ANCOVA Calculator<\/i> [Web application]. FreeStatisticalTools.com. https:\/\/freestatisticaltools.com\/ancova-calculator\/<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Compare groups while controlling for a covariate such as a pretest score. How ANCOVA works, which assumptions matter, and how to report adjusted means.<\/p>\n","protected":false},"author":1,"featured_media":2010,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_fst_seo_title":"ANCOVA: Adjusted Means, Assumptions and How to Report It","_fst_meta_desc":"ANCOVA step by step: when to add a covariate, adjusted (estimated marginal) means, homogeneity of regression slopes, partial eta squared and an APA example.","_fst_primary_tool":"ancova-calculator","_fst_canonical":"","_fst_noindex":false,"_fst_no_toc":false,"_fst_no_autolink":false,"footnotes":""},"categories":[3],"tags":[64,20,19,71],"class_list":["post-2009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-compare-means","tag-ancova","tag-anova","tag-apa-style","tag-covariate"],"_links":{"self":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2009","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=2009"}],"version-history":[{"count":1,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2009\/revisions"}],"predecessor-version":[{"id":2048,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/posts\/2009\/revisions\/2048"}],"wp:attachment":[{"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/media?parent=2009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/categories?post=2009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freestatisticaltools.com\/blog\/wp-json\/wp\/v2\/tags?post=2009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}