Density functional theory with a gradient PBE functional and dispersion correction D3(BJ) in the basis of localized orbitals of the CRYSTAL17 package was used to study the effect of pressure on the structural, electronic, and elastic properties of K2Ca(CO3)2, K2Mg(CO3)2, Na2Ca2(CO3)3, Na2Mg(CO3)2. The parameters of the third-order Birch-Murnaghan equation of state are determined, and it is shown that the equilibrium volume and compressibility modulus depend linearly on the average cation radius. Under pressure, the widths of the upper valence bands increase maximally in K2Ca(CO3)2 and minimally in Na2Ca2(CO3)3, while the centers of gravity of the cationic states shift by ~0.2 eV. Elastic constants and polycrystalline moduli are calculated, which increase with decreasing average cation radius. The shear modulus for K2Ca(CO3)2 and K2Mg(CO3)2 decreases with increasing pressure, and this leads to anomalous behavior of the longitudinal and transverse acoustic wave velocities.