The solubility of midazolam is < 0.1 mg ml-1 at neutral pH and it increases considerably in acidic media. A pK(a) value of 6.04 at 24 +/- 1-degrees-C was calculated from the solubility data. In acidic media midazolam is reversibly converted to the corresponding benzophenone (open-ring form). The extent of this reaction was investigated by assaying the two compounds simultaneously by UV spectrophotometry with multicomponent software. The structure of the benzophenone derivative was verified by IR, MS and H-1 and C-13 NMR spectrometry.