What is the gel electrophoresis process?
Samples are put into a gel medium and an electric current is passed through.
The DNA, as it is negatively charged, moves towards the positive electrode.
The smaller fragments move faster and therefore further in the same amount of time.