The relative stability of metastable phases of RDX, HMX and CL-20 in solution has been revealed by experimental and DFT studies. Molecular conformation during prenucleation clustering and lattice barrier essentially determines the stability of metastable phases during crystallization.