Formula: Primer Tm & GC% Reference Equation
- countG: Count G (bases)
- countC: Count C (bases)
- countA: Count A (bases)
- countT: Count T (bases)
Compute primer length, GC%, basic & salt-adjusted Tm (°C), and annealing temperature.
It computes GC% = [(G + C) / N] × 100; T_m = 64.9 + 41 × (G + C − 16.4) / N and plots three custom SVG graphs showing parameter sensitivity and component breakdowns.
For primers of 14 nt or longer, the headline uses the basic formula, 64.9 plus 41 times the G and C count minus 16.4, divided by length. The interpretation sentence adds the Wallace rule, two degrees per A or T and four per G or C. For the default 20-mer they give 53.83 °C and 62 °C. The annealing temperature follows the headline figure.
No. There is no salt field and no salt term in the result. Both formulas assume fixed, typical conditions. If your buffer has unusual sodium or magnesium levels, or contains additives such as DMSO, the true Tm will differ. A nearest-neighbour calculator that accepts salt and primer concentrations gives a more realistic figure in that case.
Not on this page. It takes four separate counts for G, C, A and T. Count each letter in your sequence, enter the totals, and then check that the length shown on the result matches your primer. A mismatch means a base was missed or counted twice. Since order is ignored, the counts are all the calculator needs.
Below 14 nt the headline switches to the Wallace rule, because the basic formula gives unrealistically low values for short sequences. Two of each base, an 8-mer, returns 24 °C with an annealing temperature of 19 °C. From 14 nt upwards the basic formula takes over. The length line tells you which side of that boundary your oligo falls on.
They should be close. The annealing step runs at one temperature for both primers, so if one melts much lower than the other, one of them is either binding poorly or binding too loosely. Calculate each primer separately here, then set the annealing step from the lower of the two, and consider redesigning if the gap is large.
It depends on whether the length changes. Swapping an A or T for a G at fixed length adds 41 divided by the length, about 2.05 °C for a 20-mer. Adding a G to the end raises both the GC count and the length. Going from six to nine G bases on the default takes the Tm from 53.83 °C to 60.62 °C.
It is a common starting point, not a rule. Some polymerases and buffers are designed for annealing temperatures closer to or even above the calculated Tm, and their suppliers publish their own guidance. If the first reaction gives faint bands or extra products, run a temperature gradient around the calculated value and choose from the results.
Not on this calculator. Both formulas use only counts, so any rearrangement of the same bases gives the same Tm and GC content. In reality, neighbouring bases affect stacking stability, and two primers with identical composition can melt at different temperatures. Nearest-neighbour methods capture this, which is why they are preferred for final primer design.
Only as a rough guide. The formulas were developed for DNA oligos binding DNA. RNA duplexes, locked nucleic acids, fluorescent labels and other modifications change stability in ways these equations do not model. For modified oligos, use the melting temperature supplied by the manufacturer or a tool that handles that chemistry specifically.
High GC primers bind strongly and can tolerate mismatches, which raises the risk of off-target products. Shifting the primer a few bases along the template, or shortening it, often brings the GC content down. Recheck here after each change. The 70 % GC 20-mer example gives a Tm of 59.98 °C, noticeably above the default.
GC content is the G and C count divided by the length, times 100, so any length that does not divide evenly gives a fraction. The 23-base example with fourteen G and C bases comes out at 60.87 %. The decimals do not mean extra precision about the primer itself; they are just the exact ratio of your counts.
The default primer has six G, five C, five A and four T bases, twenty in all. Eleven of them are G or C, so the GC content is 55 %. The headline melting temperature is 53.83 °C and the suggested annealing temperature, five degrees lower, is 48.83 °C.
That headline number comes from the basic long-oligo formula shown on the page: 64.9 plus 41 times the G and C count minus 16.4, all divided by the length. For the default, eleven minus 16.4 is minus 5.4. Multiply by 41 and divide by 20 and you get minus 11.07. Add that to 64.9 and you have 53.83.
The sentence under the result also quotes a second figure, the Wallace rule Tm of 62 °C. That one is two degrees for every A or T and four for every G or C: nine times two plus eleven times four. For a 20-mer the page reports both, but only the basic formula drives the headline and the annealing temperature. Knowing which is which matters, because they disagree by more than eight degrees for this primer.
There is no salt input and no salt correction anywhere in the result. The calculator uses two formulas only, and it picks between them by length. From 14 nt upwards the headline is the basic formula above. Below 14 nt it switches to the Wallace rule. The Wallace value is also quoted in the interpretation sentence for every primer, so you can always compare the two.
The basic formula is a length-weighted correction that becomes more reasonable as primers get longer. The Wallace rule was developed for short oligonucleotides hybridising under particular conditions, and it rises steeply with length because every base adds at least two degrees. For a 20-mer the Wallace figure already runs high. For longer oligos it becomes impossible: a 60-base oligo at 50 % GC gets a Wallace value well above boiling point, while the basic formula gives 74.19 °C.
Neither formula considers the order of the bases. Two primers with the same counts but different sequences get identical answers here, even though their real stability can differ. Nearest-neighbour models, which look at each pair of adjacent bases and use salt and primer concentrations, are what most current primer design software uses. Treat this page as a quick first check of base composition, not as the final Tm for a sensitive assay.
At a fixed length, swapping an A or T for a G or C raises the basic Tm by 41 divided by the length. For a 20-mer that is 2.05 °C per swap. The calculator shows this clearly. Five of each base gives 50 % GC and a Tm of 51.78 °C. Shift to seven G, seven C, three A and three T, still twenty bases, and the GC content becomes 70 % with a Tm of 59.98 °C. Four swaps, a little over eight degrees.
Going the other way, three G, three C, seven A and seven T gives 30 % GC and a Tm of 43.58 °C, with an annealing temperature under 40 °C. Low GC primers like this tend to bind weakly and need lower annealing temperatures, which lets more off-target priming through.
The per-base effect shrinks as the primer gets longer, because the same 41 is spread over more bases. That is one reason long primers are less sensitive to a single substitution in their composition.
A practical way to use this is in reverse. If a primer comes out three or four degrees below its partner and the length is fixed by the target region, you know roughly two G or C swaps will close the gap at 20 bases. Whether such a swap is possible depends on the template, since the primer still has to match it, so the more common move is to slide the primer a few bases along the sequence and count again.
Length raises Tm too, even if the GC content stays fixed. Six of each base gives a 24-mer at 50 % GC and a Tm of 57.38 °C, about five and a half degrees above the 20-mer at the same percentage. The Wallace figure for the same primer is 72 °C, which shows how much faster the simple rule climbs.
The scenario that adds G bases to the default demonstrates both effects at once. With nine G instead of six, the primer grows to 23 nt and its GC content to 60.87 %, and Tm rises to 60.62 °C with an annealing temperature of 55.62 °C. Removing two G bases instead gives an 18-mer at 50 % GC, a Tm of 48.04 °C and an annealing temperature of 43.04 °C.
When you are trimming or extending a primer to match its partner, length is often the easier lever. Adding a base or two at the 5 prime end changes Tm without touching the 3 prime end, where the polymerase starts extension.
The basic formula is meant for oligos of moderate length and above. Applied to very short sequences it gives temperatures far too low to be useful, which is why the calculator switches to the Wallace rule for anything shorter than 14 nt. Enter two of each base, an 8-mer at 50 % GC, and the headline reads 24 °C with an annealing temperature of 19 °C. That is the Wallace figure: eight bases at two or four degrees each.
The switch shows up as a small step at the boundary. Three G, four C, three A and three T make a 13-mer that gets a Wallace Tm of 40 °C. Add one G to make a 14-mer and the basic formula takes over at 40.3 °C. The two methods happen to agree closely here, so the step is small, but at other compositions the jump between 13 and 14 bases can be larger. If your oligo sits right at the boundary, look at both values in the interpretation sentence.
The headline label still reads basic primer melting temperature even when the Wallace rule produced the number, so use the length line to tell which formula is in play.
The page also checks the counts. Each must be a whole number, zero or more, and the four together must make an oligo of at least 6 nt; otherwise it shows an error instead of a temperature. Even so, check that the reported length matches the sequence you meant to enter before trusting anything else on the page.
The calculator does not take a sequence, only four counts, so the counting is on you. The safest method is to paste the sequence into a text editor and use find to count each letter, then check that the four counts add up to the length you expect. The length line on the result is a useful cross-check: if it says 19 when your primer is 20 bases, a letter was missed.
Watch for lowercase letters, spaces and line breaks copied from a database, which can confuse a manual count. Degenerate bases such as N, R or Y have no place in these formulas, and modified bases, labels or phosphorothioate linkages are not accounted for either. If your primer carries a tail, such as a restriction site added for cloning, decide whether you want the Tm of the binding region alone. For the first cycles only the matching part binds, so that is usually the figure that matters.
It also helps to keep the counts in a small table next to each candidate primer, along with the GC % and Tm the page returns. When you have five or six candidates for one target, comparing them side by side is much quicker than re-entering each one.
The annealing line simply subtracts five degrees from the basic Tm. For the default that is 48.83 °C. It is a long-standing rule of thumb and a reasonable starting point for a standard Taq reaction, but not a guarantee.
Primers work in pairs, so calculate both and start from the lower annealing temperature. A large gap between the two primers' Tm values means one of them binds less stringently than the other at any temperature you pick. If the gap is big, redesigning one primer is usually quicker than fighting it at the bench.
Many modern polymerases and buffers come with their own recommended annealing rules, which can differ from Tm minus five by several degrees. Follow the enzyme supplier's guidance where it exists. When the first run gives weak bands or extra products, a gradient PCR across a few degrees either side of the calculated value is the reliable way to settle on the best temperature.
A good GC content and a sensible Tm say nothing about secondary structure. Hairpins, self-dimers and dimers between the forward and reverse primers depend on sequence, not composition. Neither does the page look at the 3 prime end, where a run of G and C bases can promote mispriming, or check whether the primer matches elsewhere in the template.
Reaction conditions are missing too. Real melting temperatures depend on salt and magnesium concentrations, primer concentration, and additives such as DMSO or betaine, none of which appear here. Two labs using the same primer with different buffers can see noticeably different behaviour.
Use this page for what it does well: a fast composition check while you sketch out candidate primers, a quick comparison between a forward and reverse primer, or a sense of how many bases to add or swap to move Tm by a few degrees. For final design and for qPCR assays, confirm with a nearest-neighbour tool and then with an experiment.