Three cations with different amine density, guanidinium, aminoguanidinium, and diaminoguanidinium, were loaded into anionic via cation-exchange. The structures and compositions of the cation-exchange products were characterized, and their N2 and CO2 adsorption properties were studied and compared.