Ion-exchange chromatography separates molecules on the basis of charge. The stationary phase contains resin beads with cationic or anionic functional groups that can bind positively or negatively charged molecules. Proteins either bind to the resin based on their net charge or pass through. Elution is achieved by changing pH or adding salts to compete for binding sites on the resin. Modern systems automate ion-exchange chromatography using gradients controlled by multiple pumps and fraction collectors.