Guide
Primer melting temperature: nearest-neighbour Tm, salt effects and design checks
A PCR primer anneals to its target as the reaction cools from the denaturation step, and the temperature at which half of the primer is bound is its melting temperature, Tm. Choosing an annealing temperature a few degrees below the Tm of the primer pair is the standard starting point. This calculator estimates Tm by four methods, lets you set the salt and primer concentration, and checks each primer for common design problems.
Four ways to estimate Tm
The simplest is the Wallace rule, Tm = 2(A + T) + 4(G + C), meant for short oligonucleotides under about 14 bases. The basic GC formula, 64.9 + 41 (G + C − 16.4) / N, includes length. The salt-adjusted formula, 81.5 + 16.6 log₁₀[Na⁺] + 0.41 (%GC) − 675/N, adds the effect of sodium. The nearest-neighbour method sums the thermodynamic contribution of each pair of adjacent bases and is the most reliable of the four, which is why the page puts it first.
The nearest-neighbour model
For a sequence the tool adds the enthalpy ΔH and entropy ΔS of its ten kinds of dinucleotide steps from the SantaLucia unified table, plus end corrections for each terminal A–T or G–C pair and a symmetry correction if the sequence is self-complementary. The sodium correction changes ΔS by 0.368 (N − 1) ln[Na⁺], and the melting temperature is Tm = ΔH × 1000 / (ΔS + R ln(C/4)) − 273.15 with R = 1.987 cal/(mol·K) and C the primer concentration. It needs plain A, C, G and T.
Entering sequences and conditions
Type one primer per line, 5′ to 3′, up to twelve, each at least 8 bases. Set the monovalent cations (Na⁺ or K⁺) in mM, the Mg²⁺ in mM and the primer concentration in nM. The defaults are 50 mM Na⁺, 0 mM Mg²⁺ and 250 nM. Magnesium is converted to a sodium equivalent using 120 × √[Mg²⁺] and added, which raises Tm; so does a higher primer concentration or more salt. Primers are DNA, so U is rejected.
Worked examples
The M13 forward primer GTAAAACGACGGCCAGT is 17 bases with GC 52.94%: nearest-neighbour Tm 51.674 °C, salt-adjusted 41.903 °C, GC formula 47.053 °C, Wallace 52 °C, with ΔH = −133.6 kcal/mol and ΔS = −378.34 cal/(mol·K). The reverse primer CAGGAAACAGCTATGAC is 46.09 °C, 5.581 °C lower, so the page notes that a pair should be within about 5 °C. A 24-mer AGCTGATCGATCGTACGTTAGCTA at 1.5 mM Mg²⁺ and 500 nM is 65.009 °C, and the 12-mer ATGCATGCATGC is 39.171 °C.
Design checks
Each primer is checked for length (usually 18 to 30 bases), GC content (40 to 60%), a GC clamp of one to three G or C in the last five bases, runs of four or more of one base, which can slip during extension, a palindromic sequence that can pair with itself and a 3′ end that can pair with another copy of the primer, a self-dimer risk. The M13 forward primer is flagged for being only 17 bases and for a run of four A. These are guidelines, not rules.
Choosing an annealing temperature
A common starting point is 3 to 5 °C below the lower Tm of the pair. For the M13 pair that is about 41 to 43 °C by nearest-neighbour. If a gradient PCR shows non-specific products, raise the temperature; if there is no product, lower it. Polymerase suppliers give recommended annealing rules for their own enzymes and buffers, which can differ from a generic calculation, so check the manufacturer’s tool for the final choice.
Limits
The model assumes a perfectly matched duplex of two strands at equal concentration. It does not account for mismatches, modified bases, formamide, DMSO, dNTPs, template concentration, secondary structure such as hairpins, or primer-dimer thermodynamics beyond a simple 3′ check. Ambiguous bases disable the nearest-neighbour value, and values may differ by a few degrees from other programs. Use the results as a starting point for optimisation.
Related tools
- DNA Reverse Complement Tool gives the reverse complement for a reverse primer.
- DNA to Protein Translator finds the ORF a primer pair should flank.
- Serial Dilution Calculator prepares primer and template dilutions.
- RPM to RCF Calculator converts the centrifuge speed in the same protocols.
Checked against the current version of the Primer Tm Calculator on .

