We have developed a model to study the kinetics of the redistribution of ions and molecules through a semipermeable membrane in complex mixtures of substances penetrating and nonpenetrating through a membrane. It takes into account the degree of dissociation of these substances, their initial concentrations in solutions separated by a membrane, and volumes of these solutions. The model is based on the assumption that only uncharged particles (molecules or ion pairs) diffuse through a membrane (and not ions as in the Donnan model). The developed model makes it possible to calculate the temporal dependencies of concentrations for all processing ions and molecules at system transition from the initial state to equilibrium. Under equilibrium conditions, the ratio of ion concentrations in solutions separated by a membrane obeys the Donnan distribution. The Donnan effect is the result of three factors: equality of equilibrium concentrations of penetrating molecules on each side of a membrane, dissociation of molecules into ions, and Le Chatelier's principle. It is shown that the Donnan distribution (irregularity of ion distribution) and accordingly absolute value of the Donnan membrane potential increases if: (i) the nonpenetrating salt concentration (in one of the solutions) and its dissociation constant increases, (ii) the total penetrating salt concentration and its dissociation constant decreases, and (iii) the volumes ratio increases (between solutions with and without a nonpenetrating substance). It is shown also that only a slight difference between the degrees of dissociation of two substances can be used for their membrane separation.