Using quantum chemistry and atom-atom potential methods, the molecular and crystal structures of cubane 1 and all types of unsubstituted azacubanes 2-22 were calculated. Alternative possible polymorphs of cubane 1 have been proposed. The thermochemical properties of azacubanes in the gas and solid phases were assessed. Thermodynamic aspects of stability are considered, and a significant decrease in stability is revealed upon transition from cubane 1 to octaazacubane 22. It has been shown that the density and energetic properties of azacubanes depend nonlinearly on the number of nitrogen atoms in the structure and the density of octaazacubane 22 at room temperature is 1.546gcm-3, which is significantly lower than the previously given estimate. In this work, DFT calculations were conducted through the software Gaussian 09 using B3LYP functional with basis set aug-cc-PVDZ and the Grimme dispersion correction D2. For crystal structure optimization, the atom-atom potential methods with PMC (packing of molecules in crystal) program were used. Charges for molecular electrostatic potential were fitted by FitMEP, and enthalpies of formation in gas phase were assessed by G3B3.