Most ecosystems rely on energy from sunlight that is harvested through photosynthesis by producer organisms. This chemical energy is then passed on to consumers through food chains and webs. There are losses of energy at each trophic level due to the inefficiencies of energy transfer between organisms and the conversion of useful energy to heat. These energy losses restrict the length and complexity of food chains and limit the biomass that can be supported at higher trophic levels.