Energy flows through ecosystems in food chains and webs from primary producers to consumers. A food chain traces the transfer of energy between organisms as they eat and are eaten, while a food web depicts the complex network of feeding relationships in an ecosystem. Ecological pyramids illustrate the amount of energy, biomass, and numbers of organisms at each trophic level, with lower levels generally supporting more energy and biomass than higher consumer levels due to energy losses between trophic transfers.