Efficiency η = 1 –\(\frac{T_2}{T_1}\)
Where T2 is the temperature of the sink and T1 is the temperature of the source.
Also η = 1 –\(\frac{Q_2}{Q_1}\)
Where Q2 is the amount of heat rejected to sink and Q2 is the amount of heat rejected to sink and Q1 is the amount of heat supplied by the source.