The two-phase compression process in the rotary compressor often occurs, such as defrosting and startup processes, which has a significant impact on the performance and reliability of air conditioning systems. In this paper, the CFD simulations predicting the two-phase refrigerant compression process in the compressor cylinder are conducted using the commercial software ANSYS Fluent. The dynamic mesh for the fluid domain and phase change model for the refrigerant are considered in the simulation. Effects of initial liquid volume fraction, refrigerant type and compressor type on the two-phase compression characteristics using R290 as refrigerant are carried out. Variations of the pressure, temperature, gas fraction distribution and evaporation rate in the cylinder are discussed. The results show that most liquid accumulates near the leakage gap and the bottom of the compression chamber during the two-phase compression process. The peak pressure during the two-phase compression decreases with the increase of the liquid volume fraction. The evaporation rate of R32 in the cylinder is much higher than that of R290. The maximum pressure of the reciprocating compressor is 2.26 times higher than that of the rotary compressor.