In this work, the capability of the Cubic Two State (CTS) equation of state (EoS) has been evaluated using the solubility of carbon dioxide (CO2), hydrogen sulfide (H2S), and their mixture in ionic liquids (ILs). The imidazolium-based ILs with [BF4], [PF6], and [Tf2N] anions have been studied. The self-association between IL molecules, CO2, and H2S molecules has been considered to optimize the pure model parameters. In addition to self-association between similar molecules, the cross-association between CO2-IL and H2S-IL in the binary mixtures has been considered. The results show that the CTS EoS can predict (kij=0.0) the solubility of H2S and CO2 in ILs ranging from 1 to 1000 bar satisfactory. The average ARD value for binary CO2-IL and H2S-IL systems has been obtained 20.3 % and 9.02, respectively. The CTS model has been used to predict the phase behavior of ternary systems containing CO2H2S-[C4mim][PF6], CO2H2S-[C8mim][PF6], and CO2H2S-[C8mim][Tf2N] at various temperatures. Finally, the CTS results have been compared to soft-SAFT and PC-SAFT EoSs. The results show that simple association contribution and the cubic term of the CTS EoS can model the molecular interactions between gases and ILs satisfactory. The CTS model can be considered as a robust and efficient thermodynamic model for the prediction of separation of CO2 and H2S using ILs.