The average efficiency of energy transfer from herbivores to carnivores is 10%.
Any energy transformation is governed by the second law of thermodynamics. It simply states that whenever energy is transformed, there is a loss of energy through the release of heat. Similarly, energy is lost as heat when it is transferred between trophic levels like in a food chain/food web. This makes the flow of energy in an ecosystem unidirectional.