The amount of energy entering an ecosystem from the Sun is equal to the amount of energy used by organisms plus the amount of energy lost as heat.