DNA electrophoresis works by passing an electric current over cells to enable them to take up extracellular DNA. separating different sizes of negatively-charged DNA fragments in a gel matrix. having different sizes of DNA fragments separate by having the DNA run toward the negative electrode..