A high-intensity X-ray diffraction method was developed to monitor the phase transitions during the entire freeze-drying cycle. The high sensitivity of SXRD allowed us to monitor all the crystalline phases simultaneously. While DHPD crystallizes in frozen solution, it dehydrates incompletely during primary drying and completely during secondary drying. The impact of initial solute concentration on the phase composition during the entire freeze-drying cycle was quantified.