Energy from the sun is captured by primary producers like plants through photosynthesis and enters ecosystems. This energy is then passed between organisms as some eat others, forming food chains and complex food webs. The amount of usable energy decreases at each trophic level as heat, with only about 10% transferred between levels. This is illustrated by ecological pyramids which show biomass and numbers decreasing with each increasing trophic level due to the loss of energy between levels in the transfer of organic matter and nutrients.