What Is Gel Electrophoresis and How Does It Work?

Gel electrophoresis is a laboratory technique that separates molecules, most commonly DNA, RNA, or proteins, by pulling them through a jelly-like gel with an electric current. Smaller molecules slip through the gel’s tiny pores faster than larger ones, so after running for a while the molecules sort themselves into distinct bands by size. The technique is one of the most widely used tools in molecular biology, central to everything from crime-scene forensics to the sequencing of the human genome.

The Basic Mechanism

The idea behind gel electrophoresis is straightforward. You load a sample of molecules into small wells at one end of a gel slab, then apply a voltage across the gel. DNA and RNA carry a negative charge along their backbones, so they migrate toward the positive electrode. Proteins are a bit more complicated because they carry variable charges, but researchers use chemical tricks (more on those shortly) to make proteins migrate predictably too.

The gel itself acts as a molecular sieve. It is riddled with microscopic pores, and the size of those pores determines which molecules pass easily and which get held back. A short fragment of DNA threads through the mesh quickly, while a long fragment has to snake and wriggle its way through, falling behind. After the current runs for a set period, you end up with bands arranged roughly by molecular weight: the smallest molecules near the far end of the gel, the largest still close to where they started.

To figure out the actual size of a molecule, researchers run a “ladder” alongside their sample. A ladder is a premixed set of fragments with known sizes. By comparing where your unknown bands sit relative to the ladder’s bands, you can estimate how many base pairs (for DNA) or how heavy (for a protein) each fragment is.

Agarose Gels for DNA and RNA

The most common gel material for separating nucleic acids is agarose, a polysaccharide extracted from seaweed. When dissolved in hot buffer and allowed to cool, agarose polymers associate and form a network of bundles whose pore sizes determine the gel’s sieving properties.1PubMed Central. Agarose gel electrophoresis for the separation of DNA fragments Think of it like a bowl of tangled spaghetti: the strands cross over each other and leave gaps of varying sizes. Higher concentrations of agarose produce smaller pores, useful for resolving short fragments, while lower concentrations create larger pores suited to separating bigger pieces of DNA.

Agarose gels typically range from about 0.5% to 2% concentration and work well for DNA fragments between roughly 100 and 25,000 base pairs. Below that range, the pores are too large to slow short fragments enough to separate them clearly. Above it, very large DNA molecules all pile up near the wells without separating, because the standard constant-field setup cannot push chromosomal-scale DNA through the mesh efficiently.

Polyacrylamide Gels for Fine Resolution

When you need to tell apart molecules that differ by just a few nucleotides or a few kilodaltons, polyacrylamide gels are the better choice. Polyacrylamide is a synthetic polymer whose pore size can be tuned very precisely by adjusting the ratio of acrylamide monomer to a cross-linker.2PubMed Central. Polyacrylamide gel electrophoresis: a versatile tool for the separation of nanoclusters The result is a tighter, more uniform mesh than agarose can provide, which means polyacrylamide can resolve fragments that differ by as little as a single nucleotide. That single-nucleotide resolution is exactly what early DNA-sequencing methods depended on.

The trade-off is that polyacrylamide gels cover a smaller size range. They are best suited to short DNA or RNA fragments (up to a few hundred base pairs) and to proteins. For proteins, the standard format is SDS-PAGE, which deserves its own explanation.

SDS-PAGE and Protein Separation

Proteins are trickier to separate than DNA because they come in wildly different shapes and carry different charges. A long, skinny protein might move through a gel differently than a compact, globular one of the same weight. To solve this, researchers add sodium dodecyl sulfate (SDS), a detergent that coats proteins in a uniform layer of negative charge and unfolds them into roughly rod-shaped structures. Now every protein’s migration depends primarily on its mass, not its natural shape or charge.

Standard SDS-PAGE denatures proteins, meaning it destroys their three-dimensional structure. That is fine if you just want to know how big a protein is, but it is a problem if you want to test whether the protein still works after separation. A modified version called native SDS-PAGE retains far more of a protein’s original properties. In one study, seven out of nine model enzymes kept their enzymatic activity through native SDS-PAGE, and proteins that would normally lose their bound metal ions in standard conditions retained nearly all of them under the modified protocol.3PubMed Central. Native SDS-PAGE: High Resolution Electrophoretic Separation of Proteins With Retention of Native Properties Including Bound Metal Ions

What the Buffer Actually Does

The gel sits submerged in a liquid buffer, and that buffer does more than just conduct electricity. It maintains a stable pH throughout the run, which matters because even small pH shifts change the net charge on nucleic acids and alter how they move. The buffer’s weak acid keeps the pH locked in a narrow range so that migration stays predictable.4GoldBio. Choosing Between TAE buffer and TBE Buffer for Agarose Gel Electrophoresis

Two buffer systems dominate DNA electrophoresis: TAE (Tris-acetate-EDTA) and TBE (Tris-borate-EDTA). TAE is the more common everyday choice, especially when you plan to cut a band out of the gel for downstream work. TBE has higher buffering capacity and works better for long runs or high-voltage separations, but it can interfere with some enzymatic reactions afterward. The choice comes down to what you plan to do with the DNA once the run is finished.

Seeing the Invisible Bands

DNA and protein bands are invisible to the naked eye in a plain gel. You need a staining or labeling step to see where things ended up. For decades, the go-to DNA stain was ethidium bromide, a small molecule that slots itself between the stacked base pairs of double-stranded DNA and fluoresces bright orange under ultraviolet light. The problem is that ethidium bromide is a mutagen, meaning it can damage DNA in living cells, and it poses a disposal headache.5PubMed. Comparative analysis of the DNA staining efficiencies of different fluorescent dyes in preparative agarose gel electrophoresis

Safer alternatives now exist, including SYBR Green I, SYBR Gold, and several other commercial dyes. SYBR Green I works by both intercalating into double-stranded DNA and binding along its surface; the surface binding is what produces its strong fluorescence signal.6PubMed Central. Investigations on DNA intercalation and surface binding by SYBR Green I, its structure determination and methodological implications These newer dyes are generally less toxic and can be more sensitive than ethidium bromide, making them increasingly standard in teaching and research labs alike.

Protein gels use different stains. Coomassie Brilliant Blue is the classic workhorse, turning protein bands a deep blue. Silver staining is far more sensitive and can detect extremely small amounts of protein, but it is fussier to perform. Fluorescent protein stains have also become popular for quantitative work where you need to measure band intensity precisely.

Variations for Special Jobs

Standard gel electrophoresis with a constant electric field cannot separate very large DNA molecules. Anything above roughly 50,000 base pairs migrates at roughly the same speed regardless of size, because all those large molecules end up in a single compressed zone near the top of the gel. Pulsed-field gel electrophoresis (PFGE) solves this by periodically switching the direction of the electric field. Each time the field shifts, the molecules have to reorient before they can start snaking through the gel again, and shorter molecules reorient faster. PFGE extends the separation range all the way up to entire chromosomes, on the order of a few million base pairs.7PubMed Central. Real-time imaging of the reorientation mechanisms of YOYO-labelled DNA molecules during 90 degrees and 120 degrees pulsed field gel electrophoresis

Isoelectric focusing (IEF) takes a completely different approach to protein separation. Instead of sorting by size, it sorts by a protein’s isoelectric point, the pH at which that protein carries no net charge. A gel with a pH gradient is set up, and when the current runs, each protein migrates until it reaches the spot in the gradient where its charge drops to zero and it stops. IEF can be combined with SDS-PAGE to create two-dimensional gel electrophoresis, where proteins are first spread out by charge in one direction and then by size in the perpendicular direction. The result is a map of spots scattered across the gel, each representing a different protein, which can resolve thousands of proteins in a single experiment.

Capillary Electrophoresis and the Human Genome

For high-throughput work, slab gels are slow. Capillary electrophoresis replaces the flat slab with a narrow glass tube filled with a polymer solution. A tiny amount of sample is injected at one end, separated as it travels through the tube, and read by a detector at the other end. Multicapillary systems can run dozens or even 96 samples in parallel, and the whole process is automated from start to finish.8PubMed. Automation and integration of multiplexed on-line sample preparation with capillary electrophoresis for high-throughput DNA sequencing

This kind of automated capillary electrophoresis was the backbone of the Human Genome Project. The earlier slab-gel sequencing methods were labor-intensive and could not scale fast enough. Multicapillary instruments with fluorescent labeling and multispectral imaging made it possible to sequence an entire human genome within a few years.9PubMed Central. DNA sequencing by CE Although newer “next-generation” sequencing technologies have since taken over much of the high-throughput sequencing market, capillary electrophoresis is still widely used in forensic labs, clinical genetics, and fragment-analysis work where validated accuracy matters more than raw speed.

Forensic and Clinical Uses

If you have ever watched a crime documentary, you have probably seen the image of glowing DNA bands on a gel. Modern forensic DNA profiling relies on short tandem repeats (STRs), sections of the genome where a short sequence is repeated a variable number of times from person to person. Forensic analysts amplify a set of STR markers from a crime-scene sample, then separate the resulting fragments by capillary electrophoresis to build a genetic profile. Matching that profile to a suspect’s can confirm identity with extreme confidence.10PubMed Central. Forensic DNA Profiling: Autosomal Short Tandem Repeat as a Prominent Marker in Crime Investigation

In clinical labs, gel electrophoresis helps diagnose diseases. Serum protein electrophoresis separates blood proteins and can flag abnormal patterns associated with conditions like multiple myeloma, liver disease, or immune deficiencies. Hemoglobin electrophoresis identifies variant hemoglobins that cause sickle cell disease and thalassemia. These tests have been part of diagnostic medicine for decades and remain frontline tools even as newer methods emerge.

Getting DNA Back Out of a Gel

Sometimes you do not just want to look at the bands. You want to physically recover a specific fragment so you can clone it, sequence it, or use it in another experiment. This is called preparative gel electrophoresis. The basic workflow is: run the gel, find the band you want, cut it out with a razor blade, and extract the DNA from the agarose chunk.

The earliest recovery methods involved electroeluting DNA out of the gel slice or binding it onto hydroxyapatite within a trough cut into the gel.11Nucleic Acids Research. A method for the recovery of DNA from agarose gels A later approach used glass beads in the presence of sodium iodide to bind DNA, which proved rapid, recovered DNA across all size ranges in high yield, and left the DNA clean enough for restriction enzyme digestion.12PubMed Central. Preparative and analytical purification of DNA from agarose Today, commercial gel extraction kits based on silica-membrane spin columns have made this a routine five-minute procedure. The quality of the recovered DNA matters because contamination with leftover agarose or buffer salts can poison downstream enzymatic reactions.

Blotting Techniques Built on Gel Electrophoresis

Gel electrophoresis does not always end with a photograph of bands. Three major blotting methods use the gel as a first step and then transfer the separated molecules onto a membrane for further analysis. Southern blotting transfers DNA, Northern blotting transfers RNA, and Western blotting transfers proteins. In each case, the molecules are moved out of the gel and onto a nitrocellulose or similar membrane, where they can be probed with labeled antibodies or nucleic acid probes to detect a specific target.13PubMed. Mechanism of DNA (Southern) and protein (Western) blotting on cellulose nitrate and other membranes

Western blotting, in particular, is a staple of biomedical research. If you want to know whether a specific protein is present in a sample and roughly how much of it there is, you run an SDS-PAGE gel, transfer the proteins to a membrane, and then use an antibody that sticks to your protein of interest. The antibody shows up as a band at the expected molecular weight, confirming the protein’s identity. Researchers publish Western blot images in thousands of papers every year.

Quantification and Image Analysis

A gel photograph is not just a pretty picture. Researchers often need to measure how much DNA or protein is in each band, compare bands across lanes, or track how a sample degrades over time. This is done through densitometry, which essentially measures how bright or dark each band is relative to the background. Free software tools like ImageJ are widely used for this. One approach involves plotting the gray-value intensity across each lane, calculating the area under the resulting curve for each peak, and using those areas to estimate relative amounts of material.14PLOS ONE. A convenient analytic method for gel quantification using ImageJ paired with Python or R

Quantitative gel analysis has its limits, though. The relationship between the amount of material and band brightness is only linear over a certain range. Overloaded gels saturate the stain, and very faint bands get lost in background noise. Gel-to-gel variability can make it hard to compare results across different experiments. For truly precise quantification, researchers often move to other methods and use gels mainly as a qualitative check.

Common Mistakes and Troubleshooting

Gel electrophoresis is one of the first techniques biology students learn, and that means there is a long tradition of things going wrong. Some of the most common problems:

  • Smeary bands: Usually caused by degraded DNA, overloaded wells, or running the gel at too high a voltage so that the bands overheat and diffuse.
  • No bands at all: Could mean the sample did not contain enough material, the stain was not concentrated enough, or the gel ran the wrong direction (yes, this happens) and the DNA migrated off the end.
  • Unexpected extra bands: Often caused by non-specific amplification during PCR before the gel step, or by partial digestion if you are cutting DNA with restriction enzymes.
  • Wavy or “smiling” bands: Usually a heat problem. The center of the gel gets hotter than the edges during a long run, causing molecules in the middle lanes to migrate faster than those at the edges, creating a curved front.

Most of these issues are fixable by adjusting voltage, loading less sample, preparing fresh reagents, or simply running the gel in a cold room. Experienced lab workers develop an instinct for reading a bad gel and diagnosing the problem at a glance.

Miniaturization and Microfluidic Chips

Traditional slab gels take up bench space, require manual handling, and run for anywhere from 30 minutes to several hours. Microfluidic chip electrophoresis shrinks the whole process onto a device roughly the size of a credit card. Sample volumes drop to nanoliters, separation happens in minutes, and the chips can be integrated with upstream sample preparation and downstream detection on a single platform.15PubMed Central. Microfluidic chip electrophoresis for biochemical analysis

Commercial instruments like the Agilent Bioanalyzer and similar systems have made chip-based electrophoresis a routine quality-control step in genomics and pharmaceutical labs. You load a microliter of sample, press a button, and get a digital “gel image” and size estimates in a few minutes. The trade-off is flexibility: chip systems use pre-designed cartridges optimized for specific applications, so they cannot be tweaked as freely as a homemade slab gel. For discovery work where you are troubleshooting an unusual protocol, the old-fashioned slab still has its place.

How the Technique Evolved

Electrophoresis as a concept dates back to the early twentieth century, when Arne Tiselius developed moving-boundary electrophoresis to separate proteins in free solution, work that earned him the Nobel Prize in Chemistry in 1948. By the early 1950s, researchers began replacing free-solution methods with “zonal” electrophoresis using supporting media like filter paper or starch grains, which gave much sharper separations.16PubMed. How It All Began: A Personal History of Gel Electrophoresis Starch gels gave way to polyacrylamide in the 1960s and agarose around the same era, and from there the technique branched into the many specialized formats described above.

The fact that the basic principle, a charged molecule dragged through a porous matrix by an electric field, has survived unchanged for over 70 years while the technique has adapted to genomics, proteomics, forensics, and clinical diagnostics says something about how robust the underlying idea is. Gel electrophoresis may look simple next to mass spectrometry or next-generation sequencing, but it remains the first thing most researchers reach for when they need a quick, reliable picture of what is in a sample.