As energy flows through ecosystems, the amount of available energy decreases at each trophic level. At each level, some energy is lost as heat. Food chains and webs show the transfer of energy as organisms consume other organisms. The second law of thermodynamics explains that as energy is transferred and changed between trophic levels, some is lost as heat. Productivity decreases with each increasing trophic level, following the typical 10% efficiency rule. Primary productivity refers to the energy captured by producers, with net primary productivity being the energy left over after producer needs.