An air conditioner comprising: a refrigerant circuit which includes a refrigerant compressor, a heat source side heat exchanger, an electronic expansion valve for heating, an electronic expansion valve for cooling, and a use side heat exchanger; and an expansion valve control unit configured to control a refrigerant superheating degree of an exit of the heat source side heat exchanger by the electronic expansion valve for heating and to control a refrigerant supercooling degree of an exit of the use side heat exchanger by the electronic expansion valve for cooling at the time of a heating cycle for heating an use side with a refrigerant by the use side heat exchanger, wherein the expansion valve control unit includes: a target value correction control unit which is configured to gradually lower a target supercooling degree of the electronic expansion valve for cooling when an opening of the electronic expansion valve for heating becomes equal to or larger than a set opening; characterized in that the expansion valve control unit further includes: a set opening correction control unit which is configured to correct the set opening of the electronic expansion valve for heating, which has been previously set as a threshold for determining whether or not increasing or lowering the target supercooling degree by the target value correction control unit, according to a rotation speed of the refrigerant compressor. a refrigerant circuit which includes a refrigerant compressor, a heat source side heat exchanger, an electronic expansion valve for heating, an electronic expansion valve for cooling, and a use side heat exchanger; and an expansion valve control unit configured to control a refrigerant superheating degree of an exit of the heat source side heat exchanger by the electronic expansion valve for heating and to control a refrigerant supercooling degree of an exit of the use side heat exchanger by the electronic expansion valve for cooling at the time of a heating cycle for heating an use side with a refrigerant by the use side heat exchanger, wherein the expansion valve control unit includes: a target value correction control unit which is configured to gradually lower a target supercooling degree of the electronic expansion valve for cooling when an opening of the electronic expansion valve for heating becomes equal to or larger than a set opening; characterized in that the expansion valve control unit further includes: a set opening correction control unit which is configured to correct the set opening of the electronic expansion valve for heating, which has been previously set as a threshold for determining whether or not increasing or lowering the target supercooling degree by the target value correction control unit, according to a rotation speed of the refrigerant compressor. a target value correction control unit which is configured to gradually lower a target supercooling degree of the electronic expansion valve for cooling when an opening of the electronic expansion valve for heating becomes equal to or larger than a set opening; characterized in that the expansion valve control unit further includes: a set opening correction control unit which is configured to correct the set opening of the electronic expansion valve for heating, which has been previously set as a threshold for determining whether or not increasing or lowering the target supercooling degree by the target value correction control unit, according to a rotation speed of the refrigerant compressor.