200px|thumb|right|Digital printout of an agarose gel electrophoresis of cat-insert plasmid DNA

thumb|200px|DNA electropherogram trace

Gel electrophoresis of nucleic acids is an analytical technique to separate DNA or RNA fragments by size and reactivity. Nucleic acid molecules are placed on a gel, where an electric field induces the nucleic acids (which are negatively charged due to their sugar-phosphate backbone) to migrate toward the positively charged anode. The molecules separate as they travel through the gel based on the each molecule's size and shape. Longer molecules move more slowly because the gel resists their movement more forcefully than it resists shorter molecules. After some time, the electricity is turned off and the positions of the different molecules are analyzed.

The nucleic acid to be separated can be prepared in several ways before separation by electrophoresis. In the case of large DNA molecules, the DNA is frequently cut into smaller fragments using a DNA restriction endonuclease (or restriction enzyme). In other instances, such as PCR amplified samples, enzymes present in the sample that might affect the separation of the molecules are removed through various means before analysis. Once the nucleic acid is properly prepared, the samples of the nucleic acid solution are placed in the wells of the gel and a voltage is applied across the gel for a specified amount of time.

The DNA fragments of different lengths are visualized using a fluorescent dye specific for DNA, such as ethidium bromide. The gel shows bands corresponding to different nucleic acid molecules populations with different molecular weight. Fragment size is usually reported in "nucleotides", "base pairs" or "kb" (for thousands of base pairs) depending upon whether single- or double-stranded nucleic acid has been separated. Fragment size determination is typically done by comparison to commercially available DNA markers containing linear DNA fragments of known length.

The types of gel most commonly used for nucleic acid electrophoresis are agarose (for relatively long DNA molecules) and polyacrylamide (for high resolution of short DNA molecules, for example in DNA sequencing). Gels have conventionally been run in a "slab" format such as that shown in the figure, but capillary electrophoresis has become important for applications such as high-throughput DNA sequencing. Electrophoresis techniques used in the assessment of DNA damage include alkaline gel electrophoresis and pulsed field gel electrophoresis.

For short DNA segments such as 20 to 60 bp double stranded DNA, running them in polyacrylamide gel (PAGE) will give better resolution (native condition). Similarly, RNA and single-stranded DNA can be run and visualised by PAGE gels containing denaturing agents such as urea. PAGE gels are widely used in techniques such as DNA foot printing, EMSA and other DNA-protein interaction techniques.

The measurement and analysis are mostly done with a specialized gel analysis software. Capillary electrophoresis results are typically displayed in a trace view called an electropherogram.

Factors affecting migration of nucleic acids

A number of factors can affect the migration of nucleic acids: the dimension of the gel pores, the voltage used, the ionic strength of the buffer, and the concentration intercalating dye such as ethidium bromide if used during electrophoresis.

Size of DNA

The gel sieves the DNA by the size of the DNA molecule whereby smaller molecules travel faster. Double-stranded DNA moves at a rate that is approximately inversely proportional to the logarithm of the number of base pairs. This relationship however breaks down with very large DNA fragments and it is not possible to separate them using standard agarose gel electrophoresis. The limit of resolution depends on gel composition and field strength. and the mobility of larger circular DNA may be more strongly affected than linear DNA by the pore size of the gel. Separation of very large DNA fragments requires pulse field gel electrophoresis (PFGE). In field inversion gel electrophoresis (FIGE, a kind of PFGE), it is possible to have "band inversion" - where large molecules may move faster than small molecules.

thumb|280px|Gels of plasmid preparations usually show a major band of supercoiled DNA with other fainter bands in the same lane. Note that by convention DNA gel is displayed with smaller DNA fragments near the bottom of the gel. This is because historically DNA gel were run vertically and the smaller DNA fragments move downwards faster.

Conformation of DNA

The conformation of the DNA molecule can significantly affect the movement of the DNA, for example, supercoiled DNA usually moves faster than relaxed DNA because it is tightly coiled and hence more compact. In a normal plasmid DNA preparation, multiple forms of DNA may be present, and gel from the electrophoresis of the plasmids would normally show a main band which would be the negatively supercoiled form, while other forms of DNA may appear as minor fainter bands. These minor bands may be nicked DNA (open circular form) and the relaxed closed circular form which normally run slower than supercoiled DNA, and the single-stranded form (which can sometimes appear depending on the preparation methods) may move ahead of the supercoiled DNA. The rate at which the various forms move however can change using different electrophoresis conditions, for example linear DNA may run faster or slower than supercoiled DNA depending on conditions, and the mobility of larger circular DNA may be more strongly affected than linear DNA by the pore size of the gel.

Concentration of ethidium bromide

Circular DNA are more strongly affected by ethidium bromide concentration than linear DNA if ethidium bromide is present in the gel during electrophoresis. All naturally occurring DNA circles are underwound, but ethidium bromide which intercalates into circular DNA can change the charge, length, as well as the superhelicity of the DNA molecule, therefore its presence during electrophoresis can affect its movement in gel. Increasing ethidium bromide intercalated into the DNA can change it from a negatively supercoiled molecule into a fully relaxed form, then to positively coiled superhelix at maximum intercalation. Agarose gel electrophoresis can be used to resolve circular DNA with different supercoiling topology.

Gel concentration

The concentration of the gel determines the pore size of the gel which affects the migration of DNA. The resolution of the DNA changes with the percentage concentration of the gel. Increasing the agarose concentration of a gel reduces the migration speed and improves separation of smaller DNA molecules, while lowering gel concentration permits large DNA molecules to be separated. For a standard agarose gel electrophoresis, 0.7% gel concentration gives good separation or resolution of large 5–10kb DNA fragments, while 2% gel concentration gives good resolution for small 0.2–1kb fragments. Up to 3% gel concentration can be used for separating very tiny fragments but a vertical polyacrylamide gel would be more appropriate for resolving small fragments. High concentrations gel, however, requires longer run times (sometimes days) and high percentage gels are often brittle and may not set evenly. High percentage agarose gels should be run with PFGE or FIGE. Low percentage gels (0.1−0.2%) are fragile and may break. 1% gels are common for many applications.

Applied field

At low voltages, the rate of migration of the DNA is proportional to the voltage applied, i.e. the higher the voltage, the faster the DNA moves. However, in increasing electric field strength, the mobility of high-molecular-weight DNA fragments increases differentially, and the effective range of separation decreases and resolution therefore is lower at high voltage. For optimal resolution of DNA greater than 2kb in size in standard gel electrophoresis, 5 to 8 V/cm is recommended. This phenomenon can result in band inversion whereby larger DNA fragments move faster than smaller ones in PFGE.

Mechanism of migration and separation

The negative charge of its phosphate backbone moves the DNA towards the positively charged anode during electrophoresis. However, the migration of DNA molecules in solution, in the absence of a gel matrix, is independent of molecular weight during electrophoresis, i.e. there is no separation by size without a gel matrix. Hydrodynamic interaction between different parts of the DNA are cut off by streaming counterions moving in the opposite direction, so no mechanism exists to generate a dependence of velocity on length on a scale larger than screening length of about 10 nm. A globular protein or a random coil DNA moves through the connected pores large enough to accommodate its passage, and the movement of larger molecules is more likely to be impeded and slowed down by collisions with the gel matrix, and the molecules of different sizes can therefore be separated in this process of sieving. Other models, however, also exist.

Real-time fluorescence microscopy of stained molecules showed more subtle dynamics during electrophoresis, with the DNA showing considerable elasticity as it alternately stretching in the direction of the applied field and then contracting into a ball, or becoming hooked into a U-shape when it gets caught on the polymer fibres. This observation may be termed the "caterpillar" model. Other model proposes that the DNA gets entangled with the polymer matrix, and the larger the molecule, the more likely it is to become entangled and its movement impeded.

Visualization

thumb|right|250px|DNA gel electrophoresis

The most common dye used to make DNA or RNA bands visible for agarose gel electrophoresis is ethidium bromide, usually abbreviated as EtBr. It fluoresces under UV light when intercalated into the major groove of DNA (or RNA). By running DNA through an EtBr-treated gel and visualizing it with UV light, any band containing more than ~20 ng DNA becomes distinctly visible. EtBr is a known mutagen in vitro, and safer alternatives are available, such as GelRed, produced by Biotium, which binds to the minor groove.

SYBR Green I is another dsDNA stain, produced by Invitrogen. It is more expensive, but 25 times more sensitive, and possibly safer than EtBr, though there is no data addressing its mutagenicity or toxicity in humans.

SYBR Safe is a variant of SYBR Green that has been shown to have low enough levels of mutagenicity and toxicity to be deemed nonhazardous waste under U.S. Federal regulations. It has similar sensitivity levels to EtBr, Alternatively, a blue light excitation source with a blue-excitable stain such as SYBR Green or GelGreen may be used.

Gel electrophoresis research often takes advantage of software-based image analysis tools, such as ImageJ.

{| class="wikitable"

|-

! 1

! 2

! 3

|-

| 200px|thumb|top| A 1% agarose 'slab' gel under normal light, behind a perspex UV shield. Only the marker dyes can be seen

| 200px|thumb|top| The gel with UV illumination, the [[ethidium bromide stained DNA glows orange]]

| 200px|thumb|top| Digital photo of the gel. Lane 1. Commercial DNA Markers (1kbplus), Lane 2. empty, Lane 3. a [[Polymerase chain reaction|PCR product of just over 500 bases, Lane 4. Restriction digest showing a similar fragment cut from a 4.5 kb plasmid vector]]

|-

|}

References