Identifying the microscopic mechanism of CO 2 −oil miscibility is significant for the CO 2 enhanced oil recovery (CO 2 − EOR) in tight sandstone reservoirs. In this work, the effects of oil composition, formation pressure, temperature, and methane content on the characteristics of the CO 2 −oil miscibility were systematically studied by molecular simulation methods. According to the change of oil−gas centroid displacement, the CO 2 −oil miscibility behavior was divided into four stages: rapid diffusion, CO 2 dissolution and oil swelling, competitive adsorption and oil film detachment, and complete miscibility or dynamic equilibrium stability. The results showed that light or medium component oil is more easily miscible with CO 2 under reservoir conditions. The changes in temperature and pressure will greatly influence the oil−gas miscibility. Increasing the temperature is conducive to reducing the adsorption energy between oil and quartz, thus improving the miscibility of CO 2 and heavy component oil. However, the static swelling effects of CO 2 alone cannot effectively displace the heavy component oil on quartz. The CO 2 diffusion coefficient perpendicular to the quartz surface does not increase continuously with the temperature increase due to the adsorption of oil and quartz. There is a critical temperature range of 320−340 K, which makes the miscibility effects the best. A small amount of CH 4 can enhance the interaction energy between the two phases of oil and gas, thus promoting the miscibility of CO 2 and oil at the interface. However, it is not conducive to oil film detachment, with the CH 4 content increasing.