Biology · Molecular Biology
Primer Tm calculator icon with a short DNA primer annealing to a template strand and a thermometer

Primer Tm calculator

This primer Tm calculator estimates the melting temperature of a PCR or sequencing primer from its sequence: for primers of 14 nt or longer it uses Tm = 81.5 + 16.6 log₁₀[Na⁺] + 0.41(%GC) − 600/N, which gives 46.3 °C for the 20-nt T7 primer TAATACGACTCACTATAGGG at 50 mM Na⁺, and for shorter primers the Wallace rule Tm = 2(A+T) + 4(G+C). It reports the length, GC content, Tm by the Wallace rule, the basic GC formula and the salt-adjusted formula, the reverse complement, and checks a primer pair for matching Tm values.

Type the primer 5′ to 3′; spaces, numbers, hyphens and lowercase letters are ignored, and U is read as T. The example is the T7 promoter primer TAATACGACTCACTATAGGG at 50 mM Na⁺. Mg²⁺, dNTPs and primer concentration are not part of these formulas.

Primer Tm calculator for one primer

Wallace: Tm = 2(A+T) + 4(G+C). Salt-adjusted: Tm = 81.5 + 16.6 log₁₀[Na⁺] + 0.41(%GC) − 600/N.
50 mM is the standard assumption; many PCR buffers have 50 mM KCl.

Primer Tm calculator for a primer pair

Tm of each primer, the difference between them and a starting annealing temperature.

How to use the primer Tm calculator

Type or paste one primer into the first panel, 5′ to 3′, and set the monovalent salt concentration of your buffer (50 mM if you are unsure). The primer Tm calculator shows the length and GC content, three melting temperature estimates with the formula used for each, the reverse complement, and a few design checks: GC content outside 40–60 %, more than three G or C among the last five bases at the 3′ end, and runs of four or more identical bases. The second panel takes a forward and a reverse primer and reports the Tm of each, the difference between them, a starting annealing temperature and a simple check for 3′ ends that could pair to form primer dimers.

Formulas in the primer Tm calculator

The melting temperature Tm is the temperature at which half of the primer molecules are paired with their complementary strand. G·C pairs have three hydrogen bonds and stack more strongly than A·T pairs, so GC-rich and longer primers melt at higher temperatures. Three classic empirical formulas capture this. The Wallace rule and the salt-adjusted formula are listed with their references in the Biopython MeltingTemp documentation; the basic GC formula is the one used by OligoCalc and many other online oligo tools:

Wallace rule: Tm = 2 °C × (A + T) + 4 °C × (G + C)

The Wallace rule (Thein and Wallace) is meant for short oligonucleotides, below about 14 nt, under standard conditions of about 50 mM Na⁺. The primer Tm calculator adds the salt term 16.6 log₁₀([Na⁺]/0.050) to it when you enter a different salt concentration.

Basic GC formula: Tm = 64.9 + 41 × (G + C − 16.4) / N

This form, derived from the Marmur and Doty relation between GC content and melting of DNA, is the “basic” Tm of many online tools for primers of 14 nt or more. It has no salt term.

Salt-adjusted: Tm = 81.5 + 16.6 × log₁₀[Na⁺] + 0.41 × (%GC) − 600 / N

Here [Na⁺] is in mol/L and N is the length in nucleotides. The 16.6 log₁₀[Na⁺] term (Schildkraut and Lifson) describes how cations stabilize the duplex by shielding the phosphate charges; the −600/N term corrects for the short length. This is the default formula in Primer3Plus for product Tm, and the primer Tm calculator uses it as the main result for primers of 14 nt and longer. Some sources use −675/N or −500/N instead, which shifts a 20-mer by a few degrees.

Worked example with the primer Tm calculator

The default of the primer Tm calculator, the T7 promoter primer TAATACGACTCACTATAGGG, has N = 20 nt with A = 7, T = 5, G = 4 and C = 4, so G + C = 8 and the GC content is 40 %.

  • Wallace rule: 2 × 12 + 4 × 8 = 56 °C.
  • Basic GC formula: 64.9 + 41 × (8 − 16.4) / 20 = 64.9 − 17.22 = 47.7 °C.
  • Salt-adjusted at 50 mM: 81.5 + 16.6 × log₁₀(0.050) + 0.41 × 40 − 600/20 = 81.5 − 21.60 + 16.40 − 30.00 = 46.3 °C.

The spread of almost 10 °C between the formulas is normal and is the main lesson of this primer Tm calculator example: a Tm is only meaningful together with the method and the conditions. The Wallace rule overestimates Tm for primers longer than about 14–15 nt. In the pair panel of the primer Tm calculator, the M13 forward (−20) primer GTAAAACGACGGCCAGT (17 nt, 52.9 % GC) and the M13 reverse primer CAGGAAACAGCTATGAC (17 nt, 47.1 % GC) come to 46.3 °C and 43.9 °C with the salt-adjusted formula, a difference of 2.4 °C, and a starting annealing temperature of 38.9 °C. That low value shows why the simple formulas are best used to compare primers: nearest-neighbor tools that include the Mg²⁺ of a PCR buffer give noticeably higher values, as the next section explains.

Reference values to use with the primer Tm calculator

PropertyTypical targetWhy
Length18–25 ntSpecific enough for a genome, short enough to anneal fast
GC content40–60 %Balanced stability; avoids GC-rich mispriming
Tm (salt-adjusted or nearest neighbor)52–65 °CWorks with standard cycling
ΔTm of the pair≤ 5 °C (ideally ≤ 2 °C)Both primers bind well at one annealing temperature
3′ end1–2 G or C in the last 5 basesA “GC clamp” helps extension; more than 3 promotes mispriming
Runs and repeatsNo run of 4 or more of one basePrevents slipping and false priming

These are common rules of thumb from primer design guides, not strict limits, and the primer Tm calculator flags them as warnings only. Many successful primers break one of them.

Why your polymerase supplier gives a different Tm

Modern Tm tools from polymerase and oligo suppliers use the nearest-neighbor model, which sums the stacking energy of every adjacent base pair and includes the primer concentration, Mg²⁺ and sometimes dNTPs and additives. The empirical formulas in this primer Tm calculator ignore sequence order (ACGT and AGTC give the same answer) and divalent cations. Because PCR buffers typically contain 1.5–2.5 mM Mg²⁺, which stabilizes duplexes strongly, nearest-neighbor values under PCR conditions are often several degrees higher than the salt-adjusted value at 50 mM Na⁺. Many high-fidelity polymerases also come with their own recommended annealing rule (for example Tm + 3 °C for some), which only works with the supplier’s own Tm calculation. Use this primer Tm calculator for quick checks, teaching and comparing primers with each other; use the supplier’s tool to set the annealing temperature of a specific kit.

How accurate is a primer Tm calculator, and which formula should you use?

No Tm calculator gives “the” melting temperature of a primer. Every result is a model estimate for a stated set of conditions, and the honest answer to “which calculator is most reliable” is: the one whose method and buffer conditions match your experiment. The formulas on this page are simple, transparent and free, but they are not the most accurate models available. They count bases rather than reading the sequence order, and they leave out Mg²⁺, dNTPs, primer concentration and additives such as DMSO, so their absolute values can be several degrees away from what a nearest-neighbor tool predicts for a real PCR buffer.

MethodUse it forLimits
Wallace ruleQuick check of short oligos, below about 14 ntOverestimates Tm for longer primers; salt only via a correction term
Basic GC formulaRough estimate for primers of 14 nt and longerNo salt term; ignores sequence order
Salt-adjusted formulaComparing primers with each other at a known Na⁺ or K⁺ concentrationNo Mg²⁺ or primer concentration; ignores sequence order
Nearest-neighbor model (supplier tools, Primer3)Setting the annealing temperature for a specific polymerase and bufferOnly as good as the conditions you enter; values differ between parameter sets

In practice: use this primer Tm calculator to screen and balance a primer pair, keep the same method for both primers, and use your polymerase supplier’s nearest-neighbor calculator with its recommended annealing rule when you set up the reaction. Whatever the tool, the final test is the bench: if the product is weak or not specific, run a gradient PCR across about 5–10 °C around the predicted annealing temperature and pick the temperature that gives one clean band.

Common mistakes with a primer Tm calculator

Comparing Tm values from different methods. A primer Tm calculator result is only comparable with one from the same formula, so a primer pair should be compared with the same formula. Including a 5′ tail in the Tm. Restriction sites and adapter tails do not bind the template in the first cycles, so compute the Tm of the annealing part only. Entering the reverse primer as the reverse complement. Primers are always written 5′ to 3′ as ordered; the reverse primer is the reverse complement of the top strand. Forgetting degenerate bases. Mixed positions (R, Y, N) give a range of Tm values; enter the lowest and the highest GC versions. Further tools: the DNA Concentration Calculator for template amounts, and the Dilution Calculator to make 10 µM working stocks from a 100 µM primer.

Related calculators

For template DNA amounts and copy numbers, use the DNA concentration calculator; for cloning, the ligation calculator.

Frequently asked questions

How do you calculate the Tm of a primer?

For short primers use the Wallace rule, Tm = 2(A+T) + 4(G+C). For 14 nt and longer use the salt-adjusted formula Tm = 81.5 + 16.6 log₁₀[Na⁺] + 0.41(%GC) − 600/N. The primer Tm calculator shows both with every step.

What is a good Tm for PCR primers?

Usually 52–65 °C, with the two primers of a pair within 5 °C of each other, ideally within 2 °C.

How do I choose the annealing temperature?

A common starting point is 5 °C below the lower Tm of the pair, then optimize with a gradient PCR. For high-fidelity enzymes, follow the supplier’s rule and Tm calculator, because they are matched to each other.

Why does the Wallace rule give a higher Tm than the other formulas?

It was fitted to short oligonucleotides and grows by 2–4 °C per base without limit, so for 20-mers and longer it overestimates. The length term −600/N in the salt-adjusted formula levels off instead.

Does salt concentration change the Tm?

Yes. Cations shield the negative phosphate backbone and stabilize the duplex: in the salt-adjusted formula, every tenfold increase in [Na⁺] raises Tm by 16.6 °C over the range where the formula holds. Mg²⁺ has a much stronger effect per mole, which the simple formulas do not include.

Which Tm formula is the most accurate?

For primers of normal length, nearest-neighbor models that include Mg²⁺ and primer concentration are generally closer to measured melting temperatures than the base-counting formulas on this page. Among the formulas here, the salt-adjusted formula is the best choice for primers of 14 nt and longer, and the Wallace rule only for shorter oligos.

Is this primer Tm calculator accurate enough for PCR?

It is accurate enough to compare primers, check GC content and balance a primer pair. To set the exact annealing temperature for a kit, use the polymerase supplier’s own Tm calculator and annealing rule, then confirm with a gradient PCR if needed.

Why do different Tm calculators give different results?

They use different methods (Wallace, GC formula, salt-adjusted or nearest neighbor), different parameter sets and different default salt, Mg²⁺ and primer concentrations. The T7 primer TAATACGACTCACTATAGGG, for example, comes to 56 °C by the Wallace rule and 46.3 °C by the salt-adjusted formula at 50 mM Na⁺.

Is this primer Tm calculator free?

Yes. It runs in your browser, needs no sign-up and does not store or send the sequences you enter.

Results are for study and lab preparation; check important results against your own protocol, kit instructions and controls. Back to biology calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: