Each feeding step in a food chain represents a trophic level, defined by the number of energy transfers separating an organism from primary producers. Producers occupy level one, herbivores level two, and their predators level three. In food webs, trophic positions may be fractional because consumers use prey from several levels. A trophic level is therefore an energy-flow category, not a taxonomic class; unrelated species can share one level, and one omnivorous species may span several. Food-web structure also reflects population persistence: upper levels need enough total production and sufficiently stable prey populations to avoid demographic extinction. Detrital and grazing channels continually exchange material, because waste and mortality feed decomposers while microbial and detritivore biomass supports predators. Quantitative interpretation requires explicit system boundaries and time scales; otherwise export, migration, storage, or seasonal turnover can appear to violate energy balance. Thermodynamic constraints set broad patterns, but species traits, defenses, body size, habitat structure, and disturbance determine the efficiencies observed in a particular ecosystem.
Ref:
Fundamentals of Ecology, Odum & Barrett, 5th Ed., Ch. 3