This study aims to simulate the process of enhanced oil recovery (EOR) during gas injection along with nanoparticles and investigate the affecting parameters in a conventional carbonate oil reservoir. Ansys Fluent software with a suitable multiphase model was used to simulate natural gas injection with a nanoparticle into a core sample. The simulation model was validated with a laboratory test of natural gas injection. Then, to obtain the optimal values of each of the parameters affecting the process of EOR during the natural gas injection along with nanoparticles, the design of the experiment was carried out with the help of Qualitek‐4 software and the Taguchi method. Therefore, three factors, including nanoparticle type (clay, titanium oxide, and silica nanoparticles), nanoparticle diameter (2–50 nm), and the volume fraction of nanoparticles in the base fluid (0.5–5 vol.%), as influential factors on the EOR during natural gas injection along with nanoparticles were chosen. The results of the numerical study indicated that silica nanoparticles significantly affect EOR more than clay and titanium oxide nanoparticles. Moreover, the smaller the diameter of nanoparticles (close to 2 nm) and the more significant the volume fraction of nanoparticles in the base fluid (close to 5 vol.%), the higher the oil recovery factor will be. This phenomenon occurs due to changes in the density and viscosity of the base fluid and, consequently, improves the mobility ratio of the injected fluid. On the other hand, the tiny size of nanoparticles allows them to easily enter the pores of the reservoir rock without entrapping and producing oil from them. Eventually, the highest oil recovery factor (59%) was obtained using silica nanoparticles with a diameter of 2 nm and a volume fraction of 5 vol.% in natural gas injection.