Three categories of dietary adaptation are recognized--faunivory, frugivory, and folivory--according to the distinctive structural and biochemical features of animal matter, fruit, and leaves respectively, and the predominance of only one in the diets of most species. Mammals subsisting mainly on animal matter have a simple stomach and colon and a long small intestine, whereas folivorous species have a complex stomach and/or an enlarged caecum and colon; mammals eating mostly fruit have an intermediate morphology, according to the nature of the fruit and their tendency to supplement this diet with either animal matter or leaves. The frugivorous group are mostly primates: 50 of the 78 mammalian species, and 117 of the 180 individuals included in this analysis are primates. Coefficients of gut differentiation, the ratio of stomach and large intestine to small intestine (by area, weight, and volume), are low in faunivores and high in folivores; the continuous spread of coefficients reflects the different degrees of adaptation to these two dietary extremes. Interspecific comparisons are developed by allowing for allometric factors. In faunivores, in which fermentation is minimal, the volume of stomach and large intestine is related to actual body size, whereas these chambers are more voluminous in larger frugivores and mid-gut fermenting folivores; fore-gut fermenters show a marked decrease in capacity with increasing body size. Surface areas for absorption are related to metabolic body size, directly so in frugivores; area for absorption is relatively less in larger faunivores and more in large folivores, especially those with large stomachs. Indices of gut specialization are derived from these regressions by nonlinear transformation, with references to the main functional features of capacity for fermentation and surface area for absorption. These are directly comparable with the dietary index, derived from quantitative feeding data displayed on a three-dimensional graph, with all species within a crescentic path from 100% faunivory through 55--80% frugivory to 100% folivory, perhaps illustrating, at least for primates, the evolutionary path from primitive insectivorous forms through three major ecological grades.