Nearest-neighbor Tm vs the Wallace rule

There are two common ways to estimate a primer’s melting temperature. One is quick and rough; the other is slower but accurate. Knowing when each is good enough saves a lot of failed PCRs.

What melting temperature is

The melting temperature (Tm) of a primer is the temperature at which half of it is bound to its target and half is free. It matters because your annealing temperature is set relative to it — usually a few degrees below the lower of your two primer Tm values. Set it too high and the primer never binds; too low and it binds in the wrong places. A pair of primers with mismatched Tm values is a common reason a PCR misbehaves.

The Wallace rule: fast but approximate

The Wallace (“2 + 4”) rule is arithmetic you can do in your head: Tm = 2 °C × (A + T) + 4 °C × (G + C). For example, the 8-mer ACGTACGT has four A/T and four G/C bases, so (2 × 4) + (4 × 4) = 24 °C.

It is fast because it only counts bases — but that is also its weakness. It ignores the order of the bases and the way neighbouring bases stack on each other, which genuinely affects stability. Two primers with the same base composition always get the same Wallace Tm, even when they behave quite differently in practice.

Nearest-neighbor Tm: accounts for the thermodynamics

The nearest-neighbor model adds up the measured thermodynamics — the enthalpy (ΔH) and entropy (ΔS) — of each adjacent pair of bases along the primer, then corrects for salt concentration and primer concentration. Because it looks at each dinucleotide step rather than just totals, base order changes the answer, which is closer to reality.

A telling example: GGCCAATT and GCGCATAT both have four G/C and four A/T bases, so the Wallace rule scores both at exactly 24 °C. A nearest-neighbor calculation separates them, because runs of stacked G/C bases are more stable than alternating ones — the two primers really do melt at different temperatures. The calculator does the full computation (parameter table, salt and concentration terms); this page is just about the concept.

Which one to use

Use the Wallace rule for a quick sanity check on short primers (under roughly 14 nt), where it is close enough. Reach for the nearest-neighbor model for longer primers, for probes, and any time Tm precision matters to the result — qPCR, multiplex assays, or matching a primer pair — where a few degrees decide whether the reaction works.