Sympatric gibbon species Hylobates lar and H. syndactylus were censused on a mountain in Malaya (West Malaysia). Habitat quality was assessed between 380- and 1,525-m altitudes. H. syndactylus was found to occur up to altitudes higher than does H. lar, and this is discussed with reference to the two species' divergent foraging strategies indicated by previous research. It is suggested that gibbons are restricted in their altitudinal range by an increasingly unfavourable ratio of food consumed to energy expended in its location, caused by a reduced food-source density and more difficult terrain at higher elevations.