A computational model based on the exergy analysis is presented for the investigation of the effects of the evaporating and condensing temperatures on the pressure losses, the exergy losses, the second law of efficiency, and the coefficient of performance (COP) of a vapor compression refrigeration cycle. It is found that the evaporating and condensing temperatures have strong effects on the exergy losses in the evaporator and condenser, and on the second law of efficiency and COP of the cycle but little effects on the exergy losses in the compressor and the expansion valve. The second law efficiency and the COP increases, and the total exergy loss decreases with decreasing temperature difference between the evaporator and refrigerated space and between the condenser and outside air.