Abstract Transformation of the solid-state form of a drug compound in the lumen of the gastrointestinal tract may alter the drug bioavailability and in extreme cases result in patient fatalities. The solution-mediated anhydrate-to-hydrate phase transformation was examined using an in vitro model with different biorelevant media, simulated fasted and fed state intestinal fluids containing bile salt and dioleoylphosphatidylcholine (DOPC) micelles, DOPC/sodium dodecyl sulfate (SDS) mixture, bile salt solution and water. Two anhydrate compounds (carbamazepine, CBZ and nitrofurantoin, NF) with different overall transformation time into hydrate form were used as model compounds. The transformations were monitored using direct structural information from time-resolved synchrotron X-ray diffraction. The kinetics of these transformations were estimated using multivariate data analysis (principal component analysis, PCA) and compared to those for nitrofurantoin (NF). The study showed that the solution-mediated phase transformation of CBZ anhydrate was remarkably faster in the DOPC/SDS medium compared to transformation in all the other aqueous dispersion media. The conversion time for CBZ anhydrate in water was shorter than for DOPC/SDS but still faster than the conversion seen in fed and fasted state micellar media. The conversion of CBZ anhydrate to hydrate was the slowest in the solution containing bile salt alone. In contrast, the solution-mediated phase transformations of NF did only show limited kinetic dependence on the dispersion media used, indicating the complexity of the nucleation process. Furthermore, when the CBZ and NF material was compacted into tablets the transformation times were remarkably slower. Results suggest that variations in the composition of the contents of the stomach/gut may affect the recrystallization kinetics, especially when investigating compounds with relatively fast overall transformation time, such as CBZ.