In thermal engineering, exergy efficiency (also known as the second-law efficiency or rational efficiency) computes the effectiveness of a system relative to its performance in reversible conditions. It is defined as the ratio of the thermal efficiency of an actual system compared to an idealized or reversible version of the system for heat engines. It can also be described as the ratio of the useful work output of the system to the reversible work output for work-consuming systems. For refrigerators and heat pumps, it is the ratio of the actual coefficient of performance (COP) and reversible COP.