Primer Melting Temperature Calculator
- The primer is 10 bases long, under the 14-base limit of the Wallace rule: Tm = 2 x (A + T) + 4 x (G + C).
- A + T = 6 bases contribute 2 degrees each and G + C = 4 bases 4 degrees each (three hydrogen bonds instead of two): Tm = 2 x 6 + 4 x 4 = 28.0 degrees C.
- GC content = 4 / 10 = 40.0%. For a primer this short the Wallace estimate is rough - treat it as a starting point and verify empirically.
- Annealing temperature is usually set 3 to 5 degrees below the lower of the two primer melting temperatures in the pair.
This primer melting temperature calculator estimates the melting temperature (Tm) of a PCR primer from its base sequence. It applies two standard rules depending on primer length. For short primers under 14 bases, it uses the Wallace rule, Tm = 2 x (A + T) + 4 x (G + C) degrees C, so a 10-base primer with 6 A/T and 4 G/C bases gives 28.0 degrees C. For primers of 14 bases or more, it uses the basic formula Tm = 64.9 + 41 x (GC count - 16.4) / length. A balanced 20-base primer with 10 G/C bases gives 51.8 degrees C, and a GC-rich 22-base primer with 12 G/C bases (54.5% GC) gives 56.7 degrees C. The calculator also reports GC content, since design targets are usually 40 to 60% GC and a Tm around 58 to 65 degrees in this approximation. It also shows the annealing temperature, usually set 3 to 5 degrees below the lower of the two primer melting temperatures.
These formulas are the accepted standard for this kind of calculation: the Wallace rule for short primers and the GC-count formula for primers of 14 bases or more. That is why the calculator uses them rather than a single one-size-fits-all equation. To keep the result transparent and checkable, this page shows the formula used, step-by-step workings, worked examples and sources, so you can see exactly how each number was produced and confirm it against your own sequence.
Worked examples
Short 10-base primer (Wallace rule)
Melting temperature Tm = 28.0 deg C. GC content: 40.0%; Primer length: 10 bases; Method used: Wallace rule (short primer, under 14 bases). (3 · 3 · 2 · 2)
| Melting temperature Tm | 28.0 deg C |
| GC content | 40.0% |
| Primer length | 10 bases |
| Method used | Wallace rule (short primer, under 14 bases) |
Balanced 20-base primer
Melting temperature Tm = 51.8 deg C. GC content: 50.0%; Primer length: 20 bases; Method used: Basic formula for primers of 14 bases or more. (5 · 5 · 5 · 5)
| Melting temperature Tm | 51.8 deg C |
| GC content | 50.0% |
| Primer length | 20 bases |
| Method used | Basic formula for primers of 14 bases or more |
GC-rich 22-base primer
Melting temperature Tm = 56.7 deg C. GC content: 54.5%; Primer length: 22 bases; Method used: Basic formula for primers of 14 bases or more. (4 · 6 · 7 · 5)
| Melting temperature Tm | 56.7 deg C |
| GC content | 54.5% |
| Primer length | 22 bases |
| Method used | Basic formula for primers of 14 bases or more |
Two formulas, one threshold
A primer melting temperature calculator does not apply a single equation to every primer. The length of the primer decides which method is appropriate, and the cutoff is 14 bases. For short primers under 14 bases, the Wallace rule estimates Tm = 2 x (A + T) + 4 x (G + C) degrees C. This is a simple per-base tally: each A or T contributes 2 degrees and each G or C contributes 4 degrees. A 10-base primer with 6 A/T bases and 4 G/C bases gives (2 x 6) + (4 x 4) = 12 + 16 = 28.0 degrees C. The tally is quick and serviceable at that length, but it ignores how the bases are arranged and how long the primer is, which is why it is not trusted for longer sequences.
For primers of 14 bases or more, the basic formula takes over: Tm = 64.9 + 41 x (GC count - 16.4) / length. Here the GC count is divided by the primer length, so the estimate is corrected for how long the primer is. A balanced 20-base primer with 10 G/C bases gives 51.8 degrees C. A GC-rich 22-base primer with 12 G/C bases, which is 54.5% GC, gives 56.7 degrees C by the same formula. Notice that the GC-rich primer is two bases longer and carries two more G/C bases, and the formula returns a higher Tm for it. That is the kind of length-corrected behavior the Wallace tally cannot provide.
GC content is reported alongside the melting temperature because the two are read together during design. Design targets are usually 40 to 60% GC and a Tm around 58 to 65 degrees in this approximation. A Tm on its own does not tell you whether a primer sits in that window for the right reason, so the GC percentage is shown next to it. The 22-base example at 54.5% GC falls inside the 40 to 60% range, while its 56.7 degrees C Tm sits just below the 58 to 65 degree target band, which is exactly the kind of gap a designer needs to see before ordering.
The melting temperatures of both primers in a pair also feed the annealing step. Annealing temperature in PCR is usually set 3 to 5 degrees below the lower of the two primer melting temperatures. That makes the lower Tm the practical anchor: if one primer melts at 51.8 degrees C and the other at 56.7 degrees C, the annealing temperature is chosen relative to 51.8 degrees C, not the higher value. Running the primer melting temperature calculator on each primer separately, then comparing the two results, is therefore part of setting up the reaction rather than an optional extra step.
- Under 14 bases: Wallace rule, Tm = 2 x (A + T) + 4 x (G + C) degrees C; a 10-base primer with 6 A/T and 4 G/C bases gives 28.0 degrees C.
- 14 bases or more: basic formula, Tm = 64.9 + 41 x (GC count - 16.4) / length; a balanced 20-base primer with 10 G/C bases gives 51.8 degrees C.
- A GC-rich 22-base primer with 12 G/C bases (54.5% GC) gives 56.7 degrees C by the same formula.
- Design targets are usually 40 to 60% GC and a Tm around 58 to 65 degrees in this approximation.
- Annealing temperature in PCR is usually set 3 to 5 degrees below the lower of the two primer melting temperatures.
Working the Wallace rule
The Wallace rule is the simplest way to estimate a primer's melting temperature, and it is meant for short primers only — those under 14 bases. The rule counts bases rather than weighing their chemistry in detail: each A or T base contributes 2 degrees C, and each G or C base contributes 4 degrees C, reflecting the third hydrogen bond that a G–C pair carries. Written out, the estimate is Tm = 2 x (A + T) + 4 x (G + C) degrees C. It is the formula a primer melting temperature calculator applies when you enter a short oligo.
A 10-base primer shows how the arithmetic runs. Suppose the sequence has 6 A/T bases and 4 G/C bases. The A/T contribution is 6 x 2 = 12 degrees, and the G/C contribution is 4 x 4 = 16 degrees. Adding the two gives 28.0 degrees C. That single number is the whole calculation — no length correction, no salt term, no concentration adjustment.
The catch is how rough that estimate is. The Wallace rule treats every A/T pair as identical and every G/C pair as identical, so it ignores where the bases sit in the sequence, whether the primer folds back on itself, and the salt and primer concentrations in your reaction. It is a rule of thumb for short oligos, not a prediction of the real melting behavior of a duplex. Treat 28.0 degrees C as a starting point that tells you the primer is short and AT-leaning, not as a measured value.
For longer primers the calculation changes entirely. At 14 bases or more, the basic formula is Tm = 64.9 + 41 x (GC count - 16.4) / length. A balanced 20-base primer with 10 G/C bases gives 51.8 degrees C. A GC-rich 22-base primer with 12 G/C bases, or 54.5% GC, gives 56.7 degrees C by the same formula. These outputs are usually reported with GC content because design targets are commonly 40 to 60% GC and a Tm around 58 to 65 degrees in this approximation — so you can see at a glance whether a candidate falls in range.
Once you have Tm values for both primers, the annealing temperature in PCR is usually set 3 to 5 degrees below the lower of the two. That step is where the estimate earns its keep: the absolute number matters less than having a consistent, comparable figure for each primer in the pair.
- A/T bases: 6 x 2 = 12 degrees C
- G/C bases: 4 x 4 = 16 degrees C (the third hydrogen bond)
- Total: 12 + 16 = 28.0 degrees C for the 10-base primer
Working the basic formula
The basic formula for primers of 14 bases or more is Tm = 64.9 + 41 x (GC count - 16.4) / length, with the result in degrees Celsius. A primer melting temperature calculator applies this expression directly, so you can see how each part of the equation moves the answer. The clearest way to understand the formula is to run two contrasting primers side by side and watch how GC content and length pull the melting temperature in different directions.
Take a balanced 20-base primer with 10 G/C bases. Plugging those numbers in gives 51.8 degrees C. Now take a GC-rich 22-base primer with 12 G/C bases, which is 54.5% GC. The same formula returns 56.7 degrees C. The second primer is only two bases longer, yet its melting temperature is nearly 5 degrees higher. The extra G/C bases raise the GC count, and because G/C pairs contribute more to the calculation than A/T pairs, the result climbs quickly. Length alone does not explain the gap; the composition of those added bases does.
This is why GC content is reported alongside the melting temperature rather than left out. Design targets are usually 40 to 60% GC and a Tm around 58 to 65 degrees in this approximation. Checking both numbers together tells you whether a primer sits comfortably inside those ranges or whether one value is compensating for the other. A short, GC-rich primer and a long, balanced primer can land at similar melting temperatures, but they reach that point for different reasons, and the calculator makes the trade-off visible.
For short primers under 14 bases, a different rule applies: Tm = 2 x (A + T) + 4 x (G + C) degrees C. A 10-base primer with 6 A/T and 4 G/C bases gives 28.0 degrees C. Notice how low that is compared with the 20-mer and 22-mer above. Short primers simply do not carry enough bases to reach the working range, which is why the length threshold matters when you choose which formula to use.
Once you have both primer melting temperatures, the annealing temperature follows from them. In PCR it is usually set 3 to 5 degrees below the lower of the two primer melting temperatures. That single rule ties the whole calculation together: the formula gives you each Tm, the lower value sets the ceiling, and the annealing temperature is placed just beneath it.
From Tm to a working PCR
A melting temperature on its own is only half the story. What matters in a PCR is how the two primers behave together. A primer melting temperature calculator gives you a number for each primer, and the first thing to do with those two numbers is compare them. A well-matched pair should sit within a couple of degrees of each other. If one primer melts far above the other, the pair will not anneal evenly, and you are likely to see weak amplification or unwanted products. Adjusting length or GC content until the two values converge is usually more productive than tweaking the cycling program.
Once the pair is matched, the annealing temperature follows from the lower of the two Tm values. Annealing in PCR is usually set 3 to 5 degrees below that lower figure. Using the lower value is the cautious choice: it keeps the weaker-annealing primer in play rather than letting the reaction be governed by the stronger one. Within that 3 to 5 degree window you have some room to optimize, since the best annealing temperature for a given pair is often found by testing rather than by calculation alone.
It also helps to track GC content alongside Tm, because the two are read together during design. Typical design targets are 40 to 60% GC and a Tm around 58 to 65 degrees in this approximation. As a check on the arithmetic, a GC-rich 22-base primer with 12 G/C bases (54.5% GC) gives 56.7 degrees C by the basic formula, while a balanced 20-base primer with 10 G/C bases gives 51.8 degrees C. Those values tell you whether a candidate is in the usual working range before you commit to ordering it.
The formulas above are deliberately simple, and they have limits worth knowing. For short primers under 14 bases, the Wallace rule estimates Tm = 2 x (A + T) + 4 x (G + C) degrees C, so a 10-base primer with 6 A/T and 4 G/C bases gives 28.0 degrees C. For primers of 14 bases or more, the basic formula is Tm = 64.9 + 41 x (GC count - 16.4) / length. Neither version accounts for salt or primer concentration, so both are approximations that work best for short, simple primers.
When you need a closer estimate, graduate to a nearest-neighbour calculator that takes salt and primer concentration into account. Nearest-neighbour models treat Tm as a property of the stacking interactions along the sequence rather than a simple base count, and they respond to the buffer conditions your reaction actually uses. The practical path is straightforward: use the basic primer melting temperature calculator to screen candidates and match your pair, set annealing 3 to 5 degrees below the lower Tm, then confirm the final choice with a nearest-neighbour method once the primers matter enough to justify the extra input.
FAQs
Which formula should I use for my primer?
It depends on primer length. Under 14 bases, use the Wallace rule: 2 degrees per A/T base plus 4 per G/C. At 14 bases or more, use the basic formula 64.9 + 41 x (GC - 16.4) / length. Both are quick estimates; nearest-neighbour methods are more detailed.
What Tm does a 20-base primer have?
A balanced 20-base primer with 10 G/C bases estimates to 51.8 degrees C by the basic formula. Nearest-neighbour methods usually read a few degrees different, so treat the number as a starting estimate rather than an exact value.
Why does GC content raise Tm?
G-C pairs share three hydrogen bonds against A-T's two, so GC-rich primers hold on longer. That is why higher GC content gives a higher melting temperature. The 22-base example at 54.5% GC reaches 56.7 degrees C, showing how GC content lifts Tm.
How do I set annealing temperature from Tm?
Start 3 to 5 degrees below the lower primer's Tm, then optimize with a gradient run if the product is weak or non-specific. Using the lower Tm of the pair keeps both primers annealing reliably, and the gradient run lets you fine-tune the temperature for your reaction.
What GC content should a primer have?
Usually 40 to 60%. The examples here span 40.0% (the 10-mer) to 54.5% (the GC-rich 22-mer), so both ends of that range appear in practice. Staying within 40 to 60% keeps Tm predictable and helps both primers behave similarly.
Why does my Tm calculator give a different number?
Methods differ. Wallace and the basic formula ignore salt and primer concentration, while nearest-neighbour calculators model stacking energies. Expect a few degrees of spread between methods, so compare results from the same method rather than mixing calculators when setting temperatures.