Anisopteran leg functions change dramatically from the final larval stadium to the adult. Larvae use legs mainly for locomotion, walking, climbing, clinging, or burrowing. Adults use them for foraging and grasping mates, for perching, clinging to the vegetation, and for repelling rivals. In order to estimate the ontogenetic shift in the leg construction from the larva to the adult, this study quantitatively compared lengths of fore, mid, and hind legs and the relationships between three leg segments, femur, tibia, and tarsus, in larval and adult Anisoptera of the families Gomphidae, Aeshnidae, Cordulegastridae, Corduliidae, and Libellulidae, represented by two species each. We found that leg segment length ratio as well as ontogenetic shift in length ratios was different between families, but rather similar within the families. While little ontogenetic shift occurred in Aeshnidae, there were some modifications in Corduliidae and Libellulidae. The severest shift occurred in Gomphidae and Cordulegastridae, both having burrowing larvae. These two families form a cluster, which is in contrast to their taxonomic relationship within the Anisoptera. Cluster analysis implies that the function of larval legs is primarily responsible for grouping, whereas adult behavior or the taxonomic relationships do not explain the grouping. This result supports the previous hypothesis about the convergent functional shift of leg characters in the dragonfly ontogenesis.