SDS-PAGE Protein Migration Distance Calculator
Calculate relative mobility (Rf), build a log(MW) vs Rf calibration curve from your marker standards, estimate an unknown protein's molecular weight from its band position, and get a resolving-gel percentage recommendation.
Choose which calculation you need.
Measure both distances from the top of the resolving gel (bottom of the wells) to the center of the band and to the dye front, in the same units.
Relative Mobility (Rf)
Step-by-Step: SDS-PAGE Migration Calculation
Here's exactly how this answer was calculated, one step at a time.
Given: Distance = 35 mm, dye front = 70 mm
Step 1: Apply the relative mobility (Rf) formula
Rf is always between 0 (band stayed at the well) and 1 (band ran with the dye front). Larger proteins have smaller Rf values because they move more slowly through the gel matrix.
Rf = distance migrated by protein / distance migrated by dye front = 35 / 70 = 0.5
Rf:
0.5
SDS-PAGE Protein Migration Distance Calculator: The Complete Free Tool
This SDS-PAGE Protein Migration Distance Calculator is built for students, lab researchers, and anyone who runs or reads polyacrylamide gels and needs a fast, reliable way to turn a band's position into a molecular weight estimate. It takes the same math biochemists have used for decades to read out gel images, and puts it into one free, simple, easy-to-use online tool. In plain words, this calculator tells you how far a protein travelled relative to the dye front, what that means for its size, and roughly what percentage gel you should be running in the first place.
You do not need any special software or a densitometry program to use this tool. Just measure your bands with a ruler (or read the pixel positions off a gel image), type the numbers in, and get an instant, accurate answer — along with a complete, plain-language, step-by-step breakdown of exactly how the calculation works. This makes it equally useful for a fast lab-notebook check, a homework problem, or actually learning the method behind gel-based molecular weight estimation for an exam or a qualifying committee.
What Is SDS-PAGE, and Why Do Proteins Migrate at Different Speeds?
SDS-PAGE stands for sodium dodecyl sulfate–polyacrylamide gel electrophoresis. It is one of the most widely used techniques in all of biology and biochemistry for separating proteins by size. SDS is a strong detergent that coats proteins with a uniform negative charge and unfolds them into rod-like shapes, which cancels out each protein's own natural charge and shape. This is the key trick that makes SDS-PAGE work: once every protein is coated in SDS, the only thing left that determines how fast it moves through the gel is its size.
When an electric field is applied across the gel, all the negatively charged, SDS-coated proteins are pulled toward the positive electrode. Smaller proteins slip through the tangled mesh of the polyacrylamide gel more easily and travel farther in a given amount of time. Larger proteins get held back by the mesh and travel a shorter distance. This size-based separation is what turns a simple mixture of proteins into a neat ladder of bands, with the smallest proteins at the bottom of the gel (closest to the dye front) and the largest proteins near the top (closest to the wells).
Relative Mobility (Rf): The Number That Makes Gels Comparable
Every gel run is a little bit different — run times, voltages, and even room temperature can all subtly change exactly how far every single band travels. To make results comparable between different gels, biochemists don't usually work with raw migration distance directly. Instead, they calculate relative mobility, Rf, which is simply the migration distance of a band divided by the migration distance of the dye front (the leading edge of the tracking dye, usually bromophenol blue): Rf = distance migrated by protein ÷ distance migrated by dye front.
Rf is always a number between 0 and 1. A band that barely left the wells has an Rf close to 0. A band that ran almost as fast as the dye front itself has an Rf close to 1. Because Rf is a ratio, it largely cancels out small run-to-run differences in gel length and run time, which is exactly why it — not raw distance — is the number used to build a calibration curve.
How This Calculator Works: Three Simple Modes
This tool is split into three focused modes, so you can go straight to the exact calculation you need.
Mode 1, 'Rf Calculator', is the simplest starting point — enter the distance a single band travelled and the distance the dye front travelled, and it instantly calculates Rf for that band.
Mode 2, 'MW From Calibration Curve', is the full standard-curve method used to estimate an unknown protein's molecular weight. Enter your marker (ladder) standards — their known molecular weights and how far each one travelled on your gel — plus the dye-front distance, and the calculator fits a straight line through log10(molecular weight) plotted against Rf, exactly the way it's done by hand on graph paper or in a spreadsheet. It then uses that fitted line to estimate the molecular weight of an unknown band from its migration distance, or to work in reverse and predict exactly where a protein of a known molecular weight should be expected to run.
Mode 3, 'Gel % Recommendation', helps you plan an experiment before you even pour a gel. Enter the molecular weight of the protein you're trying to study, and the calculator suggests which standard single-percentage acrylamide gel (or whether a gradient gel) will give you the best separation and resolution for that size range.
The Math Behind the Calibration Curve
Within the normal working range of an SDS-PAGE gel, there is a well-established, approximately linear relationship between the logarithm of a protein's molecular weight and its relative mobility: log10(MW) = slope x Rf + intercept. This is why molecular weight markers are plotted on a logarithmic axis, and why the calibration line is fitted to log10(MW), not to MW directly — the raw relationship between MW and Rf is a curve, but the log-transformed relationship is a straight line, which is far easier and more accurate to fit and interpolate.
This calculator performs a proper least-squares linear regression on your marker data, exactly like drawing a best-fit line by hand through a scatter plot, and reports the slope, the intercept, and the R² value (a measure of how well the markers actually fall on that line). Once the line is fitted, it is used both to estimate an unknown protein's molecular weight from its Rf, and to predict, in reverse, the migration distance expected for any protein of known molecular weight.
Choosing the Right Gel Percentage
The percentage of acrylamide in a resolving gel controls how tightly the gel matrix is cross-linked, and therefore which size range of proteins it separates best. A low-percentage gel (like 7% or 8%) has a looser mesh, which lets large proteins move through and spread apart from each other, but small proteins run straight through it and pile up near the dye front without separating well. A high-percentage gel (like 12% or 15%) has a much tighter mesh, which is excellent for separating small proteins that would otherwise run together on a looser gel, but large proteins struggle to enter the gel at all and barely move.
As a practical rule of thumb, a 7-8% gel works well for large proteins in roughly the 40-500 kDa range, a 10% gel is a good general-purpose choice for proteins in the 20-150 kDa range, and a 12-15% gel is better suited to smaller proteins and peptides in the 8-100 kDa range. If a single sample contains proteins spanning a very wide range of sizes, a gradient gel (commonly 4-20%) is usually the better choice, since it combines a loose mesh at the top with a tight mesh at the bottom in a single gel.
Advanced Features Built Into This Calculator
This tool goes well beyond a single plug-and-chug formula. The calibration curve mode accepts as many marker standards as you have data for (with a built-in example ladder you can load instantly), automatically calculates Rf for every marker, and performs a genuine least-squares linear regression, reporting the fitted slope, intercept, and R² so you can judge the reliability of the fit for yourself. It works in both directions — estimating an unknown protein's molecular weight from its migration distance, or predicting exactly where a protein of a known molecular weight should run — which is extremely useful both for interpreting a finished gel and for planning where to expect a band before you even run one.
The calculator also renders a full interactive calibration curve chart, plotting your marker points alongside the fitted regression line, so you can visually confirm your unknown protein falls within the reliable, linear part of the curve rather than out in an extrapolated region where estimates become less trustworthy. Every single mode also generates a complete, plain-language, step-by-step written solution beneath the results, showing every formula, every substituted number, and a short explanation of what each step actually means — useful whether you just need a fast number for a lab notebook or you're trying to genuinely learn the method for a class or exam.
Real-World Uses: Research Labs, Diagnostics, and Coursework
SDS-PAGE and the Rf-based molecular weight estimate it produces show up constantly across biology, biochemistry, and medicine. In research labs, it is one of the very first checks used to confirm that a protein purification worked, that a recombinant protein expressed at its expected size, or that a western blot band lines up with the correct target protein. In clinical and diagnostic labs, gel electrophoresis patterns are used to help characterize antibodies, blood proteins, and other clinically relevant molecules.
In university biochemistry and molecular biology courses, students are very commonly asked to calculate Rf values from a gel image, build a calibration curve from marker data, and estimate an unknown protein's molecular weight — exactly the kind of problem this calculator is built to solve quickly, transparently, and correctly, while still showing every step of the underlying math.
Common Mistakes to Avoid When Reading SDS-PAGE Gels
One of the most common mistakes is measuring migration distance from the wrong reference point. Distances should always be measured from the same starting line — typically the bottom of the loading wells, or the interface between the stacking gel and the resolving gel — all the way to the center of each band, and the same starting line must be used for the dye front measurement too.
A second common mistake is trying to estimate the molecular weight of an unknown protein that runs far outside the size range covered by your marker standards. The log(MW) vs Rf relationship is only reliably linear within the range your markers actually span; extrapolating far beyond your smallest or largest marker can give a misleading estimate, especially near the very top or very bottom of the gel where the relationship often bends away from a straight line.
A third common mistake is forgetting that some proteins simply do not migrate at their true molecular weight on SDS-PAGE. Heavily glycosylated proteins, proteins with unusual amino acid composition, and certain membrane proteins can run anomalously — appearing larger or smaller on a gel than their actual mass — because SDS binding and unfolding is not perfectly uniform for every protein. When a gel-based estimate disagrees sharply with a known sequence-based molecular weight, this is usually the explanation, not a calculation error.
Quick Reference: All the Formulas Used in This Calculator
Relative mobility: Rf = distance migrated by protein / distance migrated by dye front. Calibration line (least-squares fit through markers): log10(MW) = slope x Rf + intercept. Molecular weight from Rf: MW = 10^(slope x Rf + intercept). Rf from a known MW: Rf = (log10(MW) - intercept) / slope. Migration distance from a known MW: distance = Rf x dye front distance.
This calculator is a free educational and lab-planning tool intended to support coursework, gel-reading practice, and experiment design. For results feeding into a publication or a regulatory submission, always confirm your molecular weight estimates against your own raw gel image, a proper standard curve fit in dedicated imaging software, and, where possible, mass spectrometry or another orthogonal method.
Frequently Asked Questions
What is Rf in SDS-PAGE?
Rf, or relative mobility, is the distance a protein band travelled divided by the distance the dye front travelled on the same gel. It is always between 0 and 1, and it is used instead of raw migration distance because it corrects for small run-to-run differences between gels.
How do you calculate molecular weight from an SDS-PAGE gel?
First calculate Rf for each marker standard and for the unknown band. Then fit a straight line through log10(molecular weight) plotted against Rf for the markers. Finally, plug the unknown's Rf into that fitted line and take 10 to the power of the result to get its estimated molecular weight.
Why is molecular weight plotted on a log scale in SDS-PAGE?
The relationship between raw molecular weight and Rf is a curve, but the relationship between the logarithm of molecular weight and Rf is approximately a straight line within a gel's normal working range. Plotting log10(MW) makes the calibration curve linear and much easier to fit accurately.
What does a small Rf value mean?
A small Rf value means the band travelled only a short distance relative to the dye front, which corresponds to a larger, slower-migrating protein. A larger Rf value means the band travelled farther and corresponds to a smaller protein.
How do you choose the right acrylamide percentage for SDS-PAGE?
Lower percentage gels (7-8%) resolve large proteins best (roughly 40-500 kDa); mid-range gels (10%) suit a general 20-150 kDa range; higher percentage gels (12-15%) resolve small proteins and peptides best (roughly 8-100 kDa). For a wide size range in one sample, a gradient gel (e.g. 4-20%) usually works better than any single percentage.
Why doesn't a protein always run at its true molecular weight?
SDS-PAGE estimates size based on how a protein migrates through a gel after being coated with SDS detergent, not its exact mass. Heavy glycosylation, unusual amino acid composition, or incomplete SDS binding can cause a protein to run faster or slower than its true molecular weight would predict, producing an apparent size that differs from the calculated sequence mass.
What is R² in an SDS-PAGE calibration curve, and why does it matter?
R² measures how closely the marker points fit the straight line drawn through log10(MW) vs Rf. An R² near 1 means the fit is strong and the resulting molecular weight estimate is trustworthy; a lower R² suggests the markers don't fall on a clean line, often because one or more points fall outside the gel's normal linear resolving range.
Can I estimate a protein's size outside the range of my markers?
It's possible, but not recommended without caution. The log(MW) vs Rf relationship is only reliably linear within the size range spanned by your actual marker standards — extrapolating well beyond your smallest or largest marker can give a misleading result, especially near the top or bottom of the gel.
What is the dye front in SDS-PAGE?
The dye front is the leading edge of the tracking dye (commonly bromophenol blue) included in the sample loading buffer. It runs faster than any protein and marks the leading edge of electrophoretic migration, which is why it is used as the reference distance for calculating relative mobility (Rf).
How accurate is molecular weight estimation by SDS-PAGE?
SDS-PAGE typically estimates molecular weight within about 5-10% of the true value for well-behaved, globular proteins run within the linear range of a good calibration curve. For proteins that migrate anomalously (heavily glycosylated, unusually charged, or membrane proteins), the estimate can be considerably less accurate, and an orthogonal method like mass spectrometry is more reliable.