Skip to content
Omnikalc

Gel electrophoresis fragment size calculator: estimate the size of a DNA band from two ladder bands

Enter the sizes and migration distances of two ladder bands and the distance of your unknown bands to estimate their size in base pairs from the semi-log relation.

Updated on
Your inputs
bp

Value out of range

mm

Value out of range

bp

Value out of range

mm

Value out of range

mm

Value out of range

mm

Value out of range

Results

Estimated size of band A

514 bp

Estimated size of band B

330 bp

Position of band A between the two ladder bands
48%
Between the ladder bands The size is interpolated, which is the reliable way to read a gel.
Band A in kilobases
0.514 kb
Distance for a tenfold change in size
41.5 mm
Size ratio between band A and band B
1.56

After an agarose gel electrophoresis, you see bands of DNA that have moved from the wells towards the positive electrode. Small fragments slip through the gel faster and travel farther, and large ones lag behind. Over a useful range, the logarithm of the fragment size falls almost in a straight line with the distance travelled. This calculator uses two bands of a ladder (marker) of known size to draw that line and read the size of your unknown bands.

How the calculation works

  • log size of a band = log₁₀(size of band 1) + slope × (distance − distance of band 1)
  • Slope = (log₁₀ size 2 − log₁₀ size 1) ÷ (distance 2 − distance 1)
  • Size = 10 raised to the log size
  • Distance for a tenfold change = −1 ÷ slope

Example

A ladder has a 1000 bp band that travelled 20 mm and a 250 bp band that travelled 45 mm. The line drops by one tenfold step every 41.5 mm. Unknown band A ran 32 mm, which puts it 48 % of the way between the two ladder bands, and its size is about 514 bp (0.514 kb). Band B ran 40 mm and measures about 330 bp. Band A is 1.56 times longer than band B.

Why it matters

Reading a size from a standard curve checks whether a PCR product, a restriction digest or a plasmid has the expected length. A band that is 50 bp off may mean a primer artifact, an insertion or an incomplete digest. Because the relation is logarithmic, a small error in the position of a large fragment means a large error in base pairs, so it is wise to choose ladder bands that surround your fragment.

Good to know

The straight line holds only in the middle of the separation range of the gel. Very large fragments (above about 10 kb on a 1 % agarose gel) stop separating, and very small ones compress at the front. Using two bands gives an interpolation between neighbours, which is the best approach; with more bands, fit a line by least squares. Gel percentage, buffer, voltage and temperature all change the migration, and supercoiled plasmids run faster than linear DNA of the same length. Measure from the bottom of the well to the middle of each band, in the same lane geometry.

In practice

Photograph the gel with a ruler, measure each band the same way, and choose the two ladder bands just above and below your target. For quantitative work, repeat on a second gel. This tool gives an estimate of size, not a sequence confirmation.

Frequently asked questions

Why is the size plotted on a log scale?

In a gel, the distance travelled falls roughly in proportion to the logarithm of the fragment size, so a log scale turns the relation into a straight line that is easy to interpolate.

Which ladder bands should I choose?

Choose the two bands closest to your unknown band, one above and one below it. If the position shown is between 0 and 100 %, the estimate is interpolated and reliable.

How accurate is the estimate?

Within the middle of the gel range, expect an accuracy of about 5 to 10 percent. Outside the range or with distorted bands, the error can be much larger.

Does this work for RNA or proteins?

The same principle holds for denaturing RNA gels and for SDS-PAGE of proteins, but check that your gel gives a straight semi-log curve with your standards.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.