A refrigeration cycle apparatus comprising: a refrigerant circuit having a compressor, a cooling-heating switching mechanism, a condenser, a refrigerant expansion mechanism, and an evaporator; and a controller configured to control the operation of the cooling-heating switching mechanism and the refrigerant expansion mechanism; wherein refrigerant circulates through the refrigerant circuit in order of the compressor, the cooling-heating switching mechanism, the condenser, the refrigerant expansion mechanism, the evaporator, and the cooling-heating switching mechanism, the compressor having an inlet and an outlet, the refrigerant expansion mechanism being operable to open and to close the refrigerant circuit, the cooling-heating switching mechanism having a five-way valve, the five-way valve being controlled by the controller to switch to connect the outlet of the compressor to one of the condenser and the evaporator, to switch to connect the inlet of the compressor to one of the condenser and the evaporator, and to open and to close the refrigerant circuit connected to one of the outlet and the inlet of the compressor, and, during stop of the compressor the controller being configured to control the refrigerant expansion mechanism to close the refrigerant circuit, and to control the five-way valve to connect one of the outlet and the inlet of the compressor to the evaporator, and to close the refrigerant circuit connected to the other of the outlet and the inlet of the compressor. a refrigerant circuit having a compressor, a cooling-heating switching mechanism, a condenser, a refrigerant expansion mechanism, and an evaporator; and a controller configured to control the operation of the cooling-heating switching mechanism and the refrigerant expansion mechanism; wherein refrigerant circulates through the refrigerant circuit in order of the compressor, the cooling-heating switching mechanism, the condenser, the refrigerant expansion mechanism, the evaporator, and the cooling-heating switching mechanism, the compressor having an inlet and an outlet, the refrigerant expansion mechanism being operable to open and to close the refrigerant circuit, the cooling-heating switching mechanism having a five-way valve, the five-way valve being controlled by the controller to switch to connect the outlet of the compressor to one of the condenser and the evaporator, to switch to connect the inlet of the compressor to one of the condenser and the evaporator, and to open and to close the refrigerant circuit connected to one of the outlet and the inlet of the compressor, and, during stop of the compressor the controller being configured to control the refrigerant expansion mechanism to close the refrigerant circuit, and to control the five-way valve to connect one of the outlet and the inlet of the compressor to the evaporator, and to close the refrigerant circuit connected to the other of the outlet and the inlet of the compressor. to switch to connect the outlet of the compressor to one of the condenser and the evaporator, to switch to connect the inlet of the compressor to one of the condenser and the evaporator, and to open and to close the refrigerant circuit connected to one of the outlet and the inlet of the compressor, and, during stop of the compressor the controller being configured to control the refrigerant expansion mechanism to close the refrigerant circuit, and to control the five-way valve to connect one of the outlet and the inlet of the compressor to the evaporator, and to close the refrigerant circuit connected to the other of the outlet and the inlet of the compressor.