Energy from the sun enters ecosystems through photosynthesis in plants and algae. These producers use solar energy to produce carbohydrates which provide energy for other organisms. As organisms consume producers and each other, energy is transferred between trophic levels in a food chain or food web. However, about 90% of energy is lost at each transfer, so fewer organisms can be supported at higher trophic levels and ecosystems are limited to a few levels.