Osmotic pressure arises when a semipermeable membrane separates solutions of different concentrations — van 't Hoff's law gives π = iMRT for dilute solutions. The Donnan equilibrium describes ion distribution across membranes with fixed charges (e.g. cell walls), creating a transmembrane potential with unequal ionic concentrations.