The transition structures (TS) between H-bonded (H) and stacked (S) structures of 9-methyladenine1-methylthymine and 9-methylguanine1-methylcytosine base pairs were localized at the DFT-D/TZVP potential energy surface. The energy barrier between the S and TS structures is considerably higher for the former pair than for the latter, which makes localization of the stacked structure of this pair possible.