Gel electrophoresis is a method to separate macromolecules like DNA, RNA, and proteins based on their size and charge by applying an electric current through a gel matrix. Most molecular biology labs use agarose gel electrophoresis to separate and analyze DNA fragments. During electrophoresis, DNA molecules are separated based on their rate of migration through the agarose gel under an applied electric field with smaller fragments moving faster.