The ratio of the useful work accomplished by a machine or process compared to the total energy expended or heat taken in.