Respiration is the principal route by which usable chemical energy leaves each trophic compartment. Organisms oxidize assimilated substrates to make ATP, and the resulting energy is dispersed as heat during maintenance, movement, biosynthesis, and thermoregulation. Unconsumed and egested biomass also fail to reach the next grazing level, but they retain chemical energy and enter detrital pathways. Heat cannot be reconcentrated by organisms to power metabolism, so this loss makes ecosystem energy flow irreversible and pyramids of energy upright. The amount reaching a consumer level depends jointly on resource production, the fraction consumed, assimilation efficiency, and conversion of assimilates into new biomass. 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.
Ref:
Fundamentals of Ecology, Odum & Barrett, 5th Ed., Ch. 3