Most ecosystems rely on energy from sunlight. Photosynthesis converts light energy into chemical energy stored in carbon compounds. This chemical energy is then passed between organisms through food chains via feeding. At each trophic level, some energy is lost as heat. Energy losses limit the length and biomass of higher trophic levels in food chains. Pyramids of energy show the decrease in available energy at higher trophic levels due to these energy losses between levels.