Gel electrophoresis is used to separate macromolecules, like DNA, RNA, and proteins. DNA fragments are separated according to their size. Proteins can be separated according to their size and their charge. Gel electrophoresis is used for a range of purposes, like to get a DNA fingerprint for forensic purposes, for paternity testing, to check a PCR reaction