Hydrogen bonding is among the most important interactions in molecular crystals, and examples are abundant. As a consequence of such interactions, many molecules crystallize in complex but intriguing structures, in contrast to the relatively simple packing principles of metallic or ionic solids. In this work, we present a computational approach based on plane-wave density-functional theory (DFT) and supercell techniques, aiming to understand and quantify hydrogen-bonded networks in the solid state and in two-, one-, and zero-dimensional fragments derived from the molecular crystal. With such methodology at hand, we investigate guanidine, a fitting example of a molecular crystal and an important compound for inorganic and organic chemistry alike. On the basis of our computations, we discuss the initially proposed layered structure of guanidine and identify both stabilizing and destabilizing cooperative interactions in the three crystalline dimensions.