Home / Science / Molecular and cell biology / Molecular biology / Gel band size estimatorTool #169

Gel band size estimator: size DNA bands from a ladder (log-linear, cubic or point-to-point fit)

Type your ladder sizes and how far each band ran, or tap them on a gel photo that stays in your browser, then read the size of every unknown band with a fit line, R², a typical error and a warning when a band sits outside the ladder.

Keep it one tap away for everyday use.

Bookmark Gel band size estimator?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Ladder
  2. Bands
  3. Fit
  4. Sizes
Nothing is uploadedWorks offline once open

Ladder

Distances can be in mm, cm or pixels, as long as all use the same unit and are measured from the well. A straight line is the classic method; a cubic follows the bend at the ends of a real gel; point to point joins neighbouring ladder bands. The example ladder and bands are made up.

Gel photo (optional)

Open a photo, tap the wells first, then each ladder band from the top down (they take the sizes listed above in order, largest first), then your unknown bands. The distances above fill in as pixels. The photo stays on your device and is never uploaded.

Band sizes

Ladder fit, band by band
Download

What it does

DNA runs through an agarose gel at a speed that falls with the logarithm of its length, so over the useful part of a gel, log10(size) against distance is close to a straight line. This page fits that line to your ladder and reads off the size of every unknown band:

  • Three fits. Log-linear (a straight line through log10 size), the usual choice. Cubic bends to follow the curve that appears at the top and bottom of a gel, but needs at least 5 ladder bands. Point-to-point joins neighbouring ladder bands and is good when the ladder covers the band closely.
  • Error you can trust. The fit shows its equation, R² and a typical error in per cent, worked out from how far the ladder bands themselves sit from the line. Each band also gets a likely range.
  • Outside the ladder. A band that ran further or shorter than any ladder band is flagged, because the size there is a guess beyond your data.
  • Photo mode. Open a gel picture, tap the well, then the ladder bands from the top down (they take the sizes in the ladder box, largest first), then your bands. The distances (in pixels from the well) are typed into the boxes for you. The photo never leaves your device.

How to use it

  1. Ladder. One line per ladder band: size in bp, a comma, and how far it ran (mm, cm or pixels, as long as you use the same unit throughout). Paste from a spreadsheet or open a CSV or Excel file (2 columns, up to 200 rows).
  2. Bands. One line per unknown band: a name, a comma and its distance. A distance alone also works.
  3. Fit. Pick log-linear, cubic or point-to-point.
  4. Sizes. Read the sizes, look at the chart and download the report as an image, PDF or Word file.

Measure every distance from the bottom of the well to the middle of the band, on the same photo.

Worked example

The example uses a made-up 12-band ladder from 10,000 to 100 bp, which ran from 6.2 to 52.7 mm, and three unknown bands at 20.5, 31.0 and 47.2 mm.

The log-linear fit is log10(size) = 4.19 − 0.0427 × distance with R² = 0.9966. The ladder bands sit on average 0.036 log units from the line, which is a typical error of about ± 8.7 %. The three bands come out at 2,073, 739 and 150 bp. Switch to cubic and they become 1,968, 693 and 160 bp; point-to-point gives 2,020, 713 and 162 bp. The spread between fits (about 5 %) is a fair reminder that a gel gives sizes to within a few per cent, not to the base.

Tips

  • Use a ladder whose bands bracket your band, and run it on the same gel, ideally next to your sample.
  • Supercoiled plasmid runs faster than linear DNA of the same length, so uncut plasmid sizes will look too small.
  • Very large bands bunch together near the well. If your band is there, a lower agarose percentage separates them better.

FAQ

Which fit should I use? Log-linear for most gels. If the ladder points clearly curve away from the line at either end, try cubic or point-to-point and compare.

Why is the range empty for point-to-point? That fit goes through every ladder band exactly, so there is no spread to estimate an error from.

Can I use RNA or protein ladders? The maths is the same for any marker that runs in log-linear fashion, including SDS-PAGE protein markers (use kDa instead of bp, the numbers are just labels).

Where the numbers come from

  • Log-linear (log10 size against distance), cubic and point-to-point fits written by fibub and checked in the tests against NumPy polyfit and interp.
  • The example ladder sizes, distances and unknown bands are made up. They are not taken from any supplier's ladder chart.
  • A gel photo you open is drawn on the page only. It is never uploaded or stored.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Change log for Gel band size estimator

  1. Add #169 gel band size estimator (log-linear, cubic or point-to-point ladder fit, photo taps) Details on GitHub

Every change to fibub

Related tools

Gel and western blot densitometry #180 Open a photo of an SDS-PAGE gel, a DNA gel or a western blot and measure every band: lane profiles, a straight-line or rolling background, band volumes, amounts relative to a reference lane and divided by a loading control, with a warning for saturated bands. The photo stays in your browser. DNA, RNA and protein concentration #164 Turn spectrophotometer readings into concentration for double- or single-stranded DNA, RNA or protein, with background correction, dilution and path length. Check purity with 260/280 and 260/230, get nM and copies per µL from the length or sequence, and see how much stock to dilute to any target. Many samples at once. Ligation and assembly calculator #166 Set up a ligation or a multi-fragment assembly. Enter the vector and inserts with their lengths, concentrations and molar ratios, and get the ng, fmol and µL of each, the buffer, enzyme and water volumes, a check that it all fits, and the insert amount at other ratios. Primer checker #167 Check a PCR primer pair before you order it. Get the length, GC %, melting temperature by three simple formulas, the G/C clamp, runs and repeats, the longest hairpin, self- and cross-dimers with a picture of the worst one, and, with a template, every binding site and the product size. Restriction digest simulator #168 Paste a plasmid or other DNA, pick classic enzymes or type your own sites, and see every cut on both strands, the fragment sizes for single and combined digests, a circular or linear map, single cutters for cloning, and a virtual gel next to your ladder. Plasmid map viewer and editor #170 Open or paste a GenBank or FASTA file and get a clean circular or linear plasmid map with feature arrows, single-cutter sites and a size ruler. Rename, recolour, move or add features, move the origin, and download the map as SVG, PNG or PDF and the plasmid as GenBank.