Cocrystals of a weakly basic drug (nevirapine) with acidic coformers are shown to alter the solubility dependence on pH, and to exhibit a pHmax above which a less soluble cocrystal becomes more soluble than the drug. The cocrystal solubility advantage can be dialed up or down by solution pH.