The moving-boundary electrophoresis apparatus includes a U-shaped cell filled with buffer solution and electrodes immersed at its ends. The sample applied could be any mixture of charged components such as a protein mixture. On applying voltage, the compounds will migrate to the anode or cathode depending on their charges. The change in the refractive index at the boundary of the separated compounds is detected using schlieren optics at both ends of the solution in the cell.