Energy flows through an ecosystem, whereas chemical nutrients cycle within it.
Energy enters an ecosystem as solar radiation, moves as chemical energy through the food web, and exits as heat.
Transfers of chemical nutrients through the trophic levels lead eventually to detritus (nonliving organic matter); the nutrients then cycle back to primary producers.