The partitioning behaviours of impure CO2 in geological formations are investigated. The effects of N2, CH4 or the mixture of N2 and CH4 are generally similar. Less soluble N2 and CH4 enhance gas breakthroughs and the partitioning. More soluble species such as H2S dissolves preferentially in the formation brine.