A new guanine salt hydrate, K+·C5H4N5O−·H2O, was obtained and characterized by single-crystal X-ray diffraction in the temperature range 100 K–300 K and compared with that of the previously documented sodium salt hydrate (2Na+·C5H3N5O2−·7H2O) [Gur & Shimon (2015). Acta Cryst. E71, 281–283; Gaydamaka et al. (2019). CrystEngComm, 21, 4484–4492]. Both sodium and potassium salt hydrates have channels. However, the structure of the channels, the cation coordination, the protonation (and, respectively, the charge) of the guanine anions, as well as the role of water molecules in the crystal structure are different for the two salt hydrates. In the crystal structures of the potassium salt, the guanine anions are linked via hydrogen bonds into quartets that form open cylindrical channels in a honeycomb framework. Water molecules `line the walls' of the channels, whereas the potassium cations fill the intra-channel space. This contrasts with the structure of the sodium salt hydrate in which guanine anions form channels with water molecules filling in the channel space together with sodium cations coordinating them. The 1D anionic assembly generated through numerous hydrogen bonds and cation interactions with guanine anions and water molecules is energetically the most distinctive part of the structure of the potassium salt hydrate. In the case of the guanine sodium salt, the structure contains purely inorganic polymeric fragments – sodium cations coordinated to a water molecule forming a 1D polymeric structure and guanine anions interconnecting these polymers via hydrogen bonds with water molecules. The structural differences account for the difference in the anisotropy of strain on temperature variation for the two salt hydrates: whereas in both structures the values of the bulk thermal expansion coefficients are similar in the two structures and the major expansion is observed along the channel axes, the degree of anisotropy for the K salt is more than four times higher than that for the Na salt.