Claws are involved in a number of behaviours including locomotion and prey capture, and as a result animals evolve claw morphologies that enable these functions. Past authors have found geometry of the keratinous sheath of the claw to correlate with mode of life for extant birds and squamates; this relationship has frequently been cited to infer lifestyles for Mesozoic theropods including Archaeopteryx. However, many fossil claws lack keratinous sheaths and thus cannot be analysed using current methods. As the ungual phalanx within the claw is more commonly preserved in the fossil record, geometry of this bone may provide a more useful metric for paleontological analysis. In this study, ungual bones of 108 birds and 5 squamates were imaged using X-ray techniques and a relationship was found between curvatures of the ungual bone within the claw of pedal digit III and four modes of life; ground-dwelling, perching, predatory, and scansorial; using linear discriminant analysis with weighted accuracy equal to 0.79. Our model predicts arboreal lifestyles for Archaeopteryx and Microraptor and a predatory ecology for Confuciusornis. These findings demonstrate the utility of our model in answering questions of palaeoecology, the theropod-bird transition, and the evolution of avian flight. Though the metric exhibits a strong correlation with lifestyle, morphospaces for PD-III curvatures overlap and so this metric should be considered alongside additional evidence.