The increase in oil production from hydrocarbon reservoirs has always been of interest due to the increase in global oil consumption. One of the effective and useful methods for enhancing oil recovery from hydrocarbon reservoirs is gas injection. Injectable gas can be injected into two modes of miscible and immiscible, but in order to inject more efficiently and efficiently, different factors, including Minimum Miscibility Pressure (MMP) in the gas near-miscible injection mode should be investigated and determined. In order to investigate the minimum miscible pressure, different laboratory and simulation methods have been prepared and developed. In this method, the theory of multiple mixing cells is used to simulate, calculate and compare the minimum miscible pressure in gas injection enriched with Naptha, LPG, and NGL. Also vaporizing and condensing process is also considered in the simulation. The constructed model is presented with a new algorithm. This modeling has been validated and compared with laboratory results. The results showed that dry gas enriched by NAFTA due to having more intermediate compounds at lower pressure (16 MPa) is miscible. In addition, dry gas, due to very light compounds needs higher pressures (20 MPa) than all enriched gases for miscibility. Therefore, to enrich gas, Naptha can be a good option for injecting rich gas into oil reservoirs.