Abstract The prevalence of poor linear growth among African children with perinatally acquired HIV remains high. There is concern that poor linear growth may to lead to later total and central fat deposition and associated non-communicable disease risks. We investigated associations between height-for-age Z score (HAZ) and total and regional fat and lean mass measured by dual-energy X-ray absorptiometry, expressed as internal population Z scores, among 839 Zimbabwean and Zambian perinatally HIV-infected male and female adolescents aged 11–19 years. Stunting (HAZ < –2) was present in 37 % of males and 23 % of females. HAZ was strongly positively associated with total, trunk, arm and leg fat mass and lean mass Z scores, in analyses controlling for pubertal stage, socio-economic status and HIV viral load. Associations of linear growth with lean mass were stronger than those with fat outcomes; associations with total and regional fat were similar, indicating no preferential central fat deposition. There was no evidence that age of starting antiretroviral therapy was associated with HAZ or body composition. Non-suppressed HIV viral load was associated with lower lean but not fat mass. The results do not support the hypothesis that poor linear growth or stunting are risk factors for later total or central fat deposition. Rather, increased linear growth primarily benefits lean mass but also promotes fat mass, both consistent with larger body size. Nutritional and/or HIV infection control programmes need to address the high prevalence of stunting among perinatally HIV-infected children in order to mitigate constraints on the accretion of lean and fat mass.