⚡ Gel Electrophoresis — Separating Molecules by Size

Charged DNA fragments migrate through a gel mesh under an electric field, with smaller fragments outrunning larger ones. Use the ladder lane's calibration curve to size an unknown sample live.

ChemistryInteractive
Left: gel lanes (wells at top, anode at bottom) · Right: log(size) vs log(distance) ladder calibration · Press Play

How it Works

This simulation models vertical gel electrophoresis. Charged DNA fragments are loaded into wells at the top of a gel lane (the cathode end). When voltage is applied, the negatively-charged fragments are pulled downward toward the positive anode. As they move, the gel's polymer mesh acts like a sieve: small fragments slip through pores easily while larger ones are impeded more, so their migration speed falls off with size. Over time, fragments that started together in a well separate into distinct bands ordered from smallest (furthest travelled) to largest (closest to the well).

A ladder lane containing fragments of known standard sizes is run alongside unknown samples. Because migration distance follows an approximately power-law relationship with fragment size in the Ogston sieving regime, plotting log(distance) against log(size) for the ladder gives a nearly straight calibration line. Locating an unknown band's migration distance on that line and reading across lets you estimate its size — exactly how real gels are sized in a lab.

Migration distance: d(size) = k · V / (C · size^n)
Sieving exponent: n = 0.35 + 0.25·C (steeper for higher gel % C)
Calibration: log(d) ≈ log(k·V/C) − n·log(size)
Band spread (diffusion): σ(t) grows roughly with √t

Frequently Asked Questions

How does gel electrophoresis separate molecules by size?

An electric field pulls charged molecules through a porous gel mesh. The mesh acts as a sieve: larger molecules get tangled and slowed more than smaller ones, so after a fixed run time molecules of different sizes end up spread into separate bands ordered by size.

Why do DNA fragments and most proteins migrate toward the positive electrode?

DNA carries a strong net negative charge from its phosphate backbone, so it is drawn toward the positive anode. Proteins have variable native charge, but in SDS-PAGE they are coated with the negatively-charged detergent SDS, which makes them migrate uniformly toward the anode too.

Why do smaller fragments migrate faster than larger ones?

Smaller molecules slip through the gel's random pore network with less obstruction, while larger molecules must repeatedly squeeze or route around mesh fibers, which slows their net velocity. This size-dependent drag is what turns a single field into a size-separation tool.

What does the % agarose or polyacrylamide concentration control?

Gel concentration sets the average pore size. A higher percentage gel has smaller pores, resolving small fragments well but running slowly, sometimes almost trapping large fragments. A lower percentage gel has larger pores, better for separating large DNA but with poorer resolution among similarly-sized small fragments.

What is a DNA ladder used for?

A DNA ladder is a mixture of fragments of known, standard sizes run in its own lane alongside samples. Plotting log(size) against migration distance for the ladder gives a near-linear calibration line; measuring how far an unknown band travelled and reading its position on that line estimates its size.

Why do bands broaden or blur over long run times?

Even molecules of identical size diffuse randomly as they move, so a band that starts as a sharp line gradually spreads into a wider, fainter zone. Running a gel too long trades resolution for spreading, which is why runs are stopped once the smallest fragments near the gel's far edge.

What are real-world applications of gel electrophoresis?

Gel electrophoresis underlies DNA fingerprinting and forensic profiling, verifying PCR product sizes, SDS-PAGE protein analysis, and the initial separation step in Southern, Northern, and Western blotting workflows used across molecular biology and diagnostics.

What is the difference between agarose and polyacrylamide gels?

Agarose gels have larger, less uniform pores and are typically used for DNA fragments from about 100 bp to tens of kilobases. Polyacrylamide gels have finer, more tunable pores and are used for high-resolution separation of small DNA fragments or proteins, as in SDS-PAGE.

Why is a constant voltage applied during a run?

A steady field keeps the electrophoretic force on each charged molecule constant, so migration speed depends predictably on size and pore structure rather than a changing field. This makes the ladder's calibration line reliable for sizing unknown samples.

About this simulation

Written by MySimulator Team · Reviewed by MySimulator Editorial Review

Last updated: 11 July 2026

This simulator animates a vertical gel run: a ladder lane of known fragment sizes and one or two sample lanes load their bands into wells at the top, then migrate downward once voltage is applied. Because the gel mesh impedes larger fragments more than smaller ones, the bands that start stacked together in a well spread apart over time, ordered from smallest (fastest) to largest (slowest). The calibration panel on the right turns this into a measurement tool — it plots log(migration distance) against log(fragment size) for the ladder and marks where an unknown sample's own distance falls on that line, reading off its estimated size exactly the way a real lab gel is analyzed.

🔬 What it shows

A multi-lane gel view with wells at the top and the anode at the bottom, animating charged DNA fragments as they separate by size under a field, alongside a live log-log calibration chart built from the ladder lane's migration distances.

🎮 How to use

Press Play to start the run, adjust the voltage slider to speed up or slow down all bands proportionally, and drag the gel % slider to change pore size — higher % sharpens resolution of small fragments but slows everything and steepens the size dependence. Switch sample presets to compare a forensic-style panel or a PCR product check against the reference ladder.

💡 Did you know?

In a real DNA ladder, spacing between reference bands is chosen so common sample sizes fall between two known rungs, giving a reliable interpolation range — the same idea this simulation's calibration line demonstrates when it marks an unknown fragment's estimated size.

Frequently asked questions

What do the voltage and gel % sliders actually change in this model?

Voltage scales migration speed for every band proportionally — doubling it roughly doubles how far each fragment travels in the same time. Gel % divides overall speed (higher % gels run slower) and also raises the sieving exponent that controls how steeply migration distance falls off with fragment size, which is what improves resolution between similarly-sized small fragments.

How is the calibration curve on the right computed?

The ladder's known fragment sizes and their current migration distances are plotted as log(size) versus log(distance). Because the underlying migration model follows a power law, these points fall on a straight line; the unknown sample's own distance is located on that same line and traced back to an estimated size.

Why does the ladder lane have evenly spaced known sizes?

Spreading reference fragments across the expected size range (100 bp to 5000 bp here) ensures any unknown sample distance falls between two calibration points, so its size can be estimated by interpolation rather than guesswork far outside the known range.

What does "read off the unknown's size" mean in practice?

Once the unknown band has migrated a measurable distance, that distance is located on the ladder's calibration line and converted back into a size estimate — shown in the stats panel next to the fragment's actual size so you can see how closely the method tracks the true value.

Why does increasing gel % improve resolution but slow everything down?

A denser gel has smaller, more numerous pores, which forces every fragment to take a more tortuous path — this exaggerates the speed difference between similarly-sized fragments (better resolution) but also reduces the average speed of all fragments (slower runs).

Is migration distance exactly proportional to time in reality?

In this simplified model distance scales linearly with elapsed time once the field is on. Real electrophoresis approximates this reasonably well for a fixed field and gel, though effects like Joule heating and depleted buffer over very long runs can gradually change mobility.