TM Calculator

How to Calculate Tm of a Primer: Formulas and Worked Example

How to calculate Tm depends on the accuracy you need: the Wallace rule takes seconds, the GC formula adds length, and nearest-neighbor thermodynamics with a salt correction is what modern calculators use. This guide works all three on the same 21-nt primer.

In short: Tm = ΔH° ÷ (ΔS° + R ln CT), then a salt correction. For GACGTAAACGGCCACAAGTTC that gives 57.7 °C at 50 mM Na⁺ and 250 nM, and 64.9 °C in Q5 buffer; the Wallace rule says 64.0 °C. Try your own primer in the Tm calculator.

How do you calculate Tm with the Wallace rule?

You calculate Tm with the Wallace rule by counting bases: Tm = 2 °C × (A + T) + 4 °C × (G + C). The example has 10 A/T and 11 G/C, so Tm = 20 + 44 = 64.0 °C. The rule was derived for 14–20 nt oligos in 0.9 M NaCl and overestimates the Tm of longer primers in PCR buffer.

How do you calculate Tm from GC content and length?

You calculate Tm from GC content and length with Tm = 64.9 + 41 × (G + C − 16.4) ÷ N, or with the salt-adjusted version Tm = 81.5 + 16.6 log[Na⁺] + 0.41 × %GC − 600 ÷ N. For the example primer these give 54.4 °C and 52.8 °C. Both ignore base order, so two primers with the same composition get the same Tm even when their real Tm differs by several degrees. Check composition with the GC content calculator.

Advertisement

How do you calculate Tm with the nearest-neighbor method?

You calculate Tm with the nearest-neighbor method by adding the enthalpy and entropy of every pair of adjacent bases, then dividing:

  1. Sum ΔH° and ΔS° over the 20 dinucleotide steps (SantaLucia 1998) plus the end terms: ΔH° = −168.8 kcal/mol, ΔS° = −457.1 cal/(mol·K).
  2. Add the primer concentration: Tm(1 M Na⁺) = 1000 × ΔH° ÷ (ΔS° + 1.987 × ln CT) − 273.15 = 73.2 °C at 250 nM.
  3. Correct for salt: 1/Tm = 1/Tm(1 M) + correction (Owczarzy 2004 for Na⁺, 2008 for Mg²⁺). At 50 mM Na⁺: 57.7 °C; in Q5 buffer: 64.9 °C.

Tm = ΔH° ÷ (ΔS° + R ln CT)  →  1/Tmsalt = 1/Tm + f(Na⁺, Mg²⁺, %GC, N)

Which Tm formula is most accurate?

The most accurate Tm formula for PCR primers is nearest-neighbor thermodynamics with a Mg²⁺-aware salt correction, which predicts measured Tm within about 1–2 °C. The quick formulas are fine for a rough check of short oligos only.

Same primer, seven answers: GACGTAAACGGCCACAAGTTC (21 nt, 52.4% GC)
MethodFormula / conditionsTm
Wallace rule2 °C × (A+T) + 4 °C × (G+C)64.0 °C
Basic GC formula64.9 + 41 × (G+C − 16.4) ÷ N54.4 °C
Salt-adjusted formula (50 mM Na⁺)81.5 + 16.6 log[Na⁺] + 0.41 %GC − 600 ÷ N52.8 °C
Nearest-neighbor, 1 M Na⁺SantaLucia 1998, no salt correction73.2 °C
Nearest-neighbor, 50 mM Na⁺, no Mg²⁺+ Owczarzy 200457.7 °C
Nearest-neighbor, Taq buffer (1.5 mM Mg²⁺)+ Owczarzy 2008, free Mg²⁺62.5 °C
Nearest-neighbor, Q5 buffer (2 mM Mg²⁺, 500 nM)+ Owczarzy 2008, free Mg²⁺64.9 °C

See why the numbers differ between tools on the Tm calculator page, and turn the Tm into a cycler setting with the annealing temperature calculator.

Advertisement

Frequently asked questions

What is the formula for melting temperature?

The formula for melting temperature in modern calculators is Tm = ΔH° ÷ (ΔS° + R ln CT) with nearest-neighbor ΔH° and ΔS° and a salt correction. Quick versions are the Wallace rule 2(A+T) + 4(G+C) and 64.9 + 41(G+C − 16.4)/N.

How do you calculate the Tm of a PCR product?

You calculate the Tm of a PCR product with Tm = 81.5 + 16.6 log[Na⁺] + 0.41 × %GC − 675 ÷ length. A 720 bp product at 61% GC melts at about 84.0 °C in 50 mM Na⁺.

Does the Wallace rule work for long primers?

The Wallace rule does not work well for long primers: for the 21-nt example it gives 64.0 °C against 57.7 °C by nearest-neighbor at 50 mM Na⁺. Use it only below about 14 nt.

Sources

Data reviewed on . How we calculate.