The partition coefficient is commonly measured using the shake-flask method, where the compound is shaken with equal volumes of two immiscible solvents until equilibrium is reached. The concentration of the compound in each phase is then analyzed, and the partition coefficient is calculated as the ratio of its concentration in the organic phase to that in the aqueous phase.