How Does an Agarose Gel Electrophoresis System Work?

An agarose gel electrophoresis system separates DNA (or RNA) fragments by pulling them through a porous gel matrix with an electric field, sorting them by size so researchers can see what they have. It remains one of the most widely used tools in molecular biology, found in virtually every teaching lab and research facility on the planet. The technique is straightforward in concept but surprisingly nuanced in practice, and the choices you make about gel concentration, buffer, voltage, and staining method all shape the quality of your results.

How the Separation Works

Agarose is a polysaccharide extracted from seaweed. When you dissolve it in hot buffer and let it cool, the polymer chains associate with one another through non-covalent bonds, forming a mesh of bundles with tiny pores running through them. The size of those pores is what does the actual work of separating molecules. DNA carries a negative charge along its sugar-phosphate backbone, so when you apply voltage across the gel, DNA fragments migrate toward the positive electrode. Smaller fragments slip through the pores more easily and travel farther in a given time; larger ones get held up and lag behind.

Seven factors determine how fast a given DNA molecule moves through the gel: the size of the DNA, the concentration of agarose, the conformation of the DNA molecule, the voltage applied, whether ethidium bromide is present in the gel, the type of agarose used, and the electrophoresis buffer.1PubMed Central. Agarose gel electrophoresis for the separation of DNA fragments Of these, gel concentration and fragment size are the ones most people think about first. A 0.8% gel has larger pores and works well for separating big fragments in the range of several thousand base pairs, while a 2% gel has smaller pores and resolves differences between fragments that are only a few hundred base pairs apart. Getting the concentration wrong for your target size range is one of the fastest ways to produce a useless gel.

The relationship between a DNA molecule’s size and its mobility follows a predictable pattern. For large, double-stranded DNA, electrophoretic mobility is roughly proportional to molecular weight raised to a negative power, meaning that as fragments get bigger the differences in migration speed shrink.2Gene. Electrophoretic mobility of high-molecular-weight, double-stranded DNA on agarose gels In practical terms, this is why standard agarose gels lose their ability to distinguish between very large fragments. Above roughly 20 to 25 kilobases, the bands start running together and you need a different approach entirely.

Buffers and the Heat Problem

The two buffers you will encounter in nearly every protocol are TAE (Tris-acetate-EDTA) and TBE (Tris-borate-EDTA). Both maintain a stable pH so the gel chemistry stays consistent during a run, but they behave differently in ways that matter. TAE gives better resolution for very large DNA fragments and is the standard choice when you plan to cut a band out of the gel and use the DNA afterward. TBE has higher buffering capacity and holds up better during long runs, making it the go-to for smaller fragments where you need sharp bands after an extended separation.

One of the practical headaches of gel electrophoresis is heat. Running current through a conductive medium generates heat, and uneven heating across the gel causes band distortion and artifacts that make results hard to interpret. Research into minimizing this problem found that the electrical current running through the gel depends strongly on the amount and type of EDTA used and on the concentrations of the major buffer components. Using thinner gels and smaller volumes of buffer in the chamber also cuts current, though changing the agarose concentration or adding ethidium bromide does not make a meaningful difference.3PubMed Central. Modification of gel architecture and TBE/TAE buffer composition to minimize heating during agarose gel electrophoresis The conventional rule of thumb is to keep the field strength at or below about 10 volts per centimeter of gel length to avoid these problems, though many labs routinely push higher and accept some trade-off in resolution for speed.

Why DNA Shape Changes Everything

If you only think about fragment length, you will misread gels regularly. The three-dimensional shape of a DNA molecule has a dramatic effect on how it moves through agarose. The same sequence of DNA, with the same molecular weight, migrates at different speeds depending on whether it is a linear strand, a relaxed circle (nicked), or a tightly wound supercoiled circle.

Studies using plasmid DNA derived from resistance factors showed that the relative migration order of these forms shifts depending on conditions. Supercoiled circular DNA and linear DNA can actually reverse their relative positions on the gel as the agarose concentration changes: at one concentration the supercoiled form runs ahead, and at another concentration the linear form does.4Nucleic Acids Research. Physical properties and gel electrophoresis behavior of R12-derived plasmid DNAs Meanwhile, the point at which nicked circular DNA becomes too large to enter the gel at all depends on the ionic strength of the running buffer, not on the gel concentration. These are not obscure corner cases. Anyone working with plasmid DNA from a bacterial miniprep will routinely see multiple bands from a single plasmid, and understanding that those bands represent different conformations of the same molecule prevents misinterpretation.

A related phenomenon occurs with curved DNA sequences. Research comparing the behavior of DNA in agarose versus polyacrylamide gels found that intrinsically curved DNA molecules migrate anomalously slowly in polyacrylamide gels, and that this is primarily because curved DNA interacts preferentially with the polyacrylamide matrix rather than because the pores are physically restrictive.5PubMed Central. Electrophoresis of DNA in agarose gels, polyacrylamide gels and in free solution In agarose, curved DNA behaves more normally, which is one reason agarose remains the default matrix for routine DNA work despite polyacrylamide offering better resolution for very small fragments.

Staining DNA and the UV Trap

DNA is invisible in a gel. To see your results, you need a way to make the bands visible, and for decades the default method has been ethidium bromide (often abbreviated EtBr). This small fluorescent molecule wedges itself between the stacked base pairs of DNA, a process called intercalation. When you shine ultraviolet light on the gel, the ethidium bromide fluoresces bright orange, revealing the bands.

The fluorescence enhancement happens because binding to DNA physically shields the ethidium bromide molecule from water. In free solution, excited ethidium bromide transfers a proton from its amino groups to surrounding water molecules, which quenches the fluorescence. When the molecule is tucked between base pairs, that proton transfer is blocked, and the fluorescence lifetime increases roughly 3.5-fold compared to free dye in water.6PubMed. Mechanism of ethidium bromide fluorescence enhancement on binding to nucleic acids The result is that DNA-bound ethidium bromide glows brightly while unbound dye in the gel background stays dim, giving you contrast.

There is an important practical pitfall that catches people off guard. The UV transilluminators used to visualize ethidium bromide-stained gels also damage the DNA. Research found that DNA recovered from agarose gels after UV exposure performed poorly in downstream applications like in vitro transcription, bacterial transformation, and PCR. The problem was not contaminants leaching from the agarose but damage inflicted by the 312-nanometer UV light itself.7BioTechniques. Protection of DNA during preparative agarose gel electrophoresis against damage induced by ultraviolet light If you plan to use the DNA after cutting it from the gel, minimize UV exposure time, use a longer-wavelength transilluminator if available, or use a blue-light source with compatible dyes instead.

Safety of Staining Dyes

Ethidium bromide’s reputation as a dangerous mutagen has fueled a cottage industry of “safer” alternative dyes. The reality is more complicated than marketing materials suggest. A comparative study testing ethidium bromide and two popular commercial alternatives, GelRed and RedSafe, found that all three compounds were toxic and mutagenic in yeast cells. GelRed was actually the most growth-inhibitory of the three and the only one that caused outright cell death. It was also the most mutagenic at increasing the reversion rate of a chromosomal point mutation. RedSafe was the least mutagenic and least toxic in the yeast system, likely because cells barely took it up at all.8PubMed. Toxicity, mutagenicity and transport in Saccharomyces cerevisiae of three popular DNA intercalating fluorescent dyes

Ethidium bromide did uniquely cause massive loss of mitochondrial DNA, which is a distinctive biological effect not shared by the alternatives. But the broad takeaway is that the narrative of “ethidium bromide is dangerous, alternatives are safe” is an oversimplification. Any molecule that intercalates into DNA and fluoresces when it does so has the potential to interact with your own cells’ DNA too. The practical safety advice has not changed much: wear gloves, avoid skin contact, don’t breathe aerosols, and dispose of waste properly regardless of which dye you use.

Separating Very Large DNA with Pulsed Fields

Standard agarose gel electrophoresis tops out somewhere around 20 to 50 kilobases. Above that range, large DNA molecules cannot reorient quickly enough to thread through the pores, and everything above a certain size runs together in one smear. Pulsed-field gel electrophoresis (PFGE) solves this by periodically switching the direction of the electric field, forcing the DNA to change orientation before it can start migrating again. Because larger molecules take longer to reorient, they fall behind smaller ones, and separation resumes even for enormous fragments.

Research pushing this technique to its limits demonstrated separation of DNA molecules up to six megabases, which is six million base pairs, at higher field strengths and faster run times than earlier methods had achieved.9PubMed Central. Pulsed-field electrophoresis of megabase-sized DNA That work also revealed some genuinely strange behavior: under certain pulsed-field conditions, larger DNA moved faster than smaller DNA, a complete inversion of the normal migration pattern. This anomalous migration could be spotted by looking for lateral band spreading, where a band stayed sharp vertically but smeared sideways. Knowing what this artifact looks like is important because if you don’t recognize it, you might misidentify band sizes entirely.

PFGE has been essential for applications like genome mapping, epidemiological fingerprinting of bacterial strains, and separating intact chromosomes. Run times are much longer than standard electrophoresis, often measured in hours to days, and the equipment is more specialized. But for questions involving very large DNA, it remains the gold standard in gel-based approaches.

Using Agarose Gels for RNA

Agarose electrophoresis is not limited to DNA. RNA can also be separated on agarose gels, but because RNA molecules fold into secondary structures through internal base pairing, you need a denaturing agent to unfold them. Otherwise two RNA molecules of the same length but different sequence could migrate differently depending on how they fold. The traditional approach uses formaldehyde as the denaturant, with a MOPS-based buffer system.

Improvements to this protocol have replaced the MOPS buffer with alternative “pK-matched” buffer systems that allow shorter run times, a five-fold reduction in the amount of formaldehyde needed, and better resolution of high-molecular-weight RNA species like ribosomal RNA precursors.10PubMed Central. Separation of long RNA by agarose-formaldehyde gel electrophoresis Reducing formaldehyde is a genuine quality-of-life improvement in the lab, since the fumes are unpleasant and the chemical is a known carcinogen at high exposure levels. If you are running denaturing RNA gels regularly, these updated buffer systems are worth adopting.

Getting Numbers from Gel Images

A gel photo gives you qualitative information at a glance: how many fragments are present, roughly how big they are compared to the molecular weight ladder, and whether your reaction worked. But researchers often need quantitative data too, like how much DNA is in each band or what the relative intensities of different PCR products are.

Software tools designed for this task automatically locate lanes, find bands within each lane, and measure the fluorescence intensity of each band while subtracting local background. Programs like GelScann demonstrated the ability to accurately determine DNA concentrations for routine molecular biology work and to measure the relative intensities of PCR-amplified fragments for genetic testing applications.11Oxford Academic. Accurate determination of DNA in agarose gels using the novel algorithm GelScann(1.0) Modern gel documentation systems now bundle image capture, automated lane detection, and quantitation software into a single instrument, making this kind of analysis routine rather than heroic.

The accuracy of quantitation depends on getting the gel image right in the first place. Overexposed images saturate bright bands and make intensity measurements meaningless. Uneven illumination across the gel creates artificial intensity gradients. And as mentioned earlier, UV exposure damages DNA, so if you plan to extract bands after imaging, you need to balance getting a good photo against preserving the DNA for downstream use.

Microfluidic Chip Systems and Where the Field Is Heading

Traditional slab gels have limitations that become painful at scale. Each gel takes time to pour, load, run, stain, and image. Throughput tops out at perhaps a few dozen samples per gel. And the resolution, while adequate for most purposes, cannot distinguish fragments that differ by only a handful of base pairs.

Microfluidic chip electrophoresis addresses several of these problems by miniaturizing the separation onto a chip. One such system demonstrated processing times of about one minute per sample with automated sample loading and data acquisition, handling up to 48 samples from a 96-well plate in a single run. The system achieved a size resolution of five nucleotides for fluorescence-labeled DNA and RNA fragments.12Oxford Academic. Application of microfluidic chip electrophoresis for high-throughput nucleic acid fluorescence fragment analysis assays That resolution is far beyond what a standard agarose gel can deliver, and the automated data processing eliminates the subjective step of eyeballing band positions against a ladder.

These systems occupy a different niche than traditional gels, though. They require expensive instruments and proprietary reagents, and they work best for applications where you already know roughly what to expect and need precise sizing or quantitation. A standard agarose gel remains hard to beat for situations where you want a quick, cheap look at what your reaction produced, where you need to recover DNA from specific bands, or where you are working in a teaching lab on a budget. The two technologies complement rather than replace each other. The slab gel is the workhorse; the chip system is the precision instrument you bring in when throughput or resolution demands it.

Agarose Versus Polyacrylamide

Agarose gels and polyacrylamide gels both separate nucleic acids by size, but their pore structures and physical properties are different enough that they suit different tasks. Agarose gels have larger pores and work well for fragments ranging from a few hundred to tens of thousands of base pairs. Polyacrylamide gels have much smaller pores and excel at resolving fragments that differ by as little as a single base pair in the range below about 500 base pairs, which is why they are the standard for DNA sequencing gels and for analyzing small PCR products.

The interaction between DNA and the gel matrix also differs between the two. As noted by research comparing the two systems, curved DNA molecules migrate anomalously slowly in polyacrylamide because they interact preferentially with the matrix itself, not primarily because the pores are too small.13PubMed Central. Electrophoresis of DNA in agarose gels, polyacrylamide gels and in free solution Agarose is more forgiving in this respect. Polyacrylamide also involves handling acrylamide monomer, a potent neurotoxin before it polymerizes, which adds a safety consideration that agarose does not share. For most routine work in molecular biology, agarose is the default because it covers the useful size range, is easy to prepare, and does not require special safety precautions beyond the staining dye.

Polyacrylamide comes into play when you need single-base resolution, when you are working with very small fragments or oligonucleotides, or when you are running native gels to study protein-DNA interactions (a technique called electrophoretic mobility shift assay). If your fragments are in the hundreds-to-thousands base pair range and you just need to confirm a restriction digest or check a PCR, agarose is almost always the right call.