text: The distribution coefficient, log D, is the ratio of the sum of the concentrations of all forms of the compound (ionized plus un-ionized) in each of the two phases, one essentially always aqueous; as such, it depends on the pH of the aqueous phase, and log D = log P for non-ionizable compounds at any pH. For measurements of distribution coefficients, the pH of the aqueous phase is buffered to a specific value such that the pH is not significantly perturbed by the introduction of the compound. The value of each log D is then determined as the logarithm of a ratio—of the sum of the experimentally measured concentrations of the solute's various forms in one solvent, to the sum of such concentrations of its forms in the other solvent; it can be expressed as
  In the above formula, the superscripts "ionized" each indicate the sum of concentrations of all ionized species in their respective phases. In addition, since log D is pH-dependent, the pH at which the log D was measured must be specified. In areas such as drug discovery—areas involving partition phenomena in biological systems such as the human body—the log D at the physiologic pH = 7.4 is of particular interest.
  It is often convenient to express the log D in terms of P, defined above (which includes P as state ), thus covering both un-ionized and ionized species. For example, in octanol–water:
  which sums the individual partition coefficients (not their logarithms), and where  indicates the pH-dependent mole fraction of the -th form (of the solute) in the aqueous phase, and other variables are defined as previously.