Skip to content

Primer Tm Calculator

Enter a primer, or a forward and reverse pair, and get its melting temperature three ways — nearest-neighbour thermodynamics (SantaLucia 1998), the salt-adjusted GC formula and the Wallace rule — with GC content, ΔH, ΔS and ΔG, the effect of your oligo, Na⁺, K⁺, Tris, Mg²⁺ and dNTP concentrations, design-guideline checks and a suggested annealing temperature. It runs in your browser; nothing is uploaded.

Letters A, C, G, T (U is read as T). Spaces are ignored.

Reaction conditions

Sodium equivalent used for the salt correction: 50 mM

Results

Primer 1

5′-AGCCGCAGCCTTTGTGAACC-3′

60.3 °C

Nearest-neighbour (SantaLucia 1998)

20 nt

Length

60%

GC content

MethodTmFormula
Nearest-neighbour (SantaLucia 1998)60.3 °CΔH / (ΔS + R ln(C/4)), ΔS corrected for salt
Salt-adjusted GC formula50.8 °C81.5 + 16.6 log₁₀[Na⁺] + 0.41 (%GC) − 675 / N
Wallace rule64 °C2 (A + T) + 4 (G + C)

The Wallace rule was fitted to oligos of up to about 14 bases and runs high for longer ones; use the nearest-neighbour value for PCR primers.

ΔH = -159.2 kcal/mol, ΔS = -444.4 cal/(K·mol), ΔG at 37 °C = -21.4 kcal/mol.

  • Meets the guideline: Length of 18–30 bases
  • Meets the guideline: GC content of 40–60%
  • Meets the guideline: No more than 3 G or C among the last 5 bases at the 3′ end
  • Meets the guideline: No run of more than 4 identical bases (longest run: 3)

Primer 2

5′-TTCCACAATGCCACGCTTCTGC-3′

60.6 °C

Nearest-neighbour (SantaLucia 1998)

22 nt

Length

54.5%

GC content

MethodTmFormula
Nearest-neighbour (SantaLucia 1998)60.6 °CΔH / (ΔS + R ln(C/4)), ΔS corrected for salt
Salt-adjusted GC formula51.6 °C81.5 + 16.6 log₁₀[Na⁺] + 0.41 (%GC) − 675 / N
Wallace rule68 °C2 (A + T) + 4 (G + C)

The Wallace rule was fitted to oligos of up to about 14 bases and runs high for longer ones; use the nearest-neighbour value for PCR primers.

ΔH = -175.8 kcal/mol, ΔS = -493.8 cal/(K·mol), ΔG at 37 °C = -22.7 kcal/mol.

  • Meets the guideline: Length of 18–30 bases
  • Meets the guideline: GC content of 40–60%
  • Meets the guideline: No more than 3 G or C among the last 5 bases at the 3′ end
  • Meets the guideline: No run of more than 4 identical bases (longest run: 2)

Primer pair

0.3 °C

Difference in Tm

55.3 °C

Suggested annealing temperature

The two Tm values are within 2 °C of each other.

Annealing temperature is taken as 5 °C below the lower Tm, a common starting point to optimise with a gradient.

No 3′-end complementarity found between the primers or within either one.

How to Use the Primer Tm Calculator

  1. 1. Enter the primers. Type or paste the forward primer, 5′ to 3′, and optionally the reverse primer. Only A, C, G and T are accepted; U is read as T.
  2. 2. Set the conditions. The oligo concentration and the ions in your buffer change the Tm by several degrees. Use the Typical PCR buffer button for 500 nM oligo, 50 mM K⁺, 10 mM Tris, 1.5 mM Mg²⁺ and 0.8 mM dNTPs, or type your own values.
  3. 3. Read the Tm. The nearest-neighbour value is the main result; the salt-adjusted and Wallace values are shown for comparison, with the formula for each.
  4. 4. Check the pair. The tool reports the difference in Tm, a suggested annealing temperature, and whether each primer meets common design guidelines or has a 3′ end that can pair with a primer.

Three Ways to Estimate Tm

MethodFormulaAccounts forBest for
Wallace ruleTm = 2 (A + T) + 4 (G + C)Base counts onlyA quick check on oligos of about 14 bases or fewer
Salt-adjusted GCTm = 81.5 + 16.6 log₁₀[Na⁺] + 0.41 (%GC) − 675 / NGC fraction, length and monovalent saltA rough estimate; the usual textbook formula
Nearest-neighbourTm = ΔH / (ΔS + R ln(C/4)) − 273.15 KSequence order, strand concentration and saltPCR primers and probes

The Wallace rule goes back to Wallace and colleagues (1979), who found that short oligonucleotides melted about 2 °C per A–T pair and 4 °C per G–C pair under high-salt conditions. It ignores sequence order, concentration and salt, and it runs well above the true value once an oligo passes 14 or so bases. The salt-adjusted formula is the long-standing empirical equation of Marmur and Doty (1962) with the sodium term of Schildkraut and Lifson (1965). Both are shortcuts. Modern primer design software, including Primer3, uses nearest-neighbour thermodynamics.

How the Nearest-Neighbour Calculation Works

A DNA duplex is more stable or less stable depending on which base pair sits next to which, because stacking contributes most of the free energy. The nearest-neighbour model sums ΔH and ΔS over every adjacent pair of bases using the ten unified parameters of SantaLucia (1998, PNAS 95:1460–1465), adds an initiation term for each end of the duplex (G·C or A·T) and, for a self-complementary sequence, a symmetry correction of −1.4 cal/(K·mol) in ΔS. Those parameters are measured in 1 M NaCl, so the tool applies the salt correction from the same paper, ΔS[Na⁺] = ΔS[1 M] + 0.368 × (N − 1) × ln[Na⁺], where N is the primer length.

Tm is the temperature at which half the strands are paired: Tm = 1000 × ΔH / (ΔS + R ln(C/4)) − 273.15, with ΔH in kcal/mol, ΔS in cal/(K·mol), R = 1.987 cal/(K·mol) and C the total oligo strand concentration. For a self-complementary primer the divisor 4 is dropped. Magnesium and other ions are converted to a sodium equivalent with the equation of von Ahsen and colleagues (2001): [Na⁺]eq = [Na⁺] + [K⁺] + [Tris]/2 + 120 × √([Mg²⁺] − [dNTPs]) in mmol/L. dNTPs bind Mg²⁺, so when they outnumber it the Mg²⁺ term is zero. The nearest-neighbour and salt-adjusted results agree with Biopython's Tm_NN and Tm_GC and with Primer3's calc_tm in the unit tests for 45 sequence-and-buffer combinations.

Worked Example: A Primer Pair for Human INS

Try an example loads a pair that amplifies a 217 bp stretch of the human insulin coding sequence (RefSeq NM_000207.3). At 250 nM oligo and 50 mM Na⁺:

PrimerSequence (5′→3′)LengthGCNearest-neighbourSalt-adjustedWallace
ForwardAGCCGCAGCCTTTGTGAACC2060.0%60.3 °C50.8 °C64 °C
ReverseTTCCACAATGCCACGCTTCTGC2254.5%60.6 °C51.6 °C68 °C

The two nearest-neighbour Tm values differ by 0.3 °C, so the pair is well matched, and a starting annealing temperature of 55.3 °C (5 °C below the lower Tm) is suggested. The Wallace rule reads about 4 and 7 °C higher for primers of this length, and the salt-adjusted formula about 9 °C lower — three methods, three answers. Switching to the typical PCR buffer (500 nM oligo) raises the nearest-neighbour values to 67.0 °C and 67.2 °C, because the 0.7 mM of Mg²⁺ left after the dNTPs bind theirs counts as about 100 mM of sodium. That is why a Tm quoted without its buffer is hard to interpret.

Primer Design Guidelines

  • Length of 18–30 bases for most PCR primers.
  • GC content of 40–60%.
  • Matched Tm between forward and reverse primers, ideally within 2 °C and at most about 5 °C apart.
  • A 3′ GC clamp of one or two G or C bases helps the polymerase start, but no more than three of the last five bases, which invites mispriming.
  • No long runs of one base (more than four) and no 3′ end that pairs with itself or with the other primer, which produces primer-dimers.

The 3′ check here is a screen, not a thermodynamic dimer model: it flags a primer whose last five bases are complementary to a stretch of itself or of the other primer. Test a short list of candidates with a specificity tool such as Primer-BLAST before ordering.

Frequently Asked Questions

How do you calculate the melting temperature of a primer?
For a quick estimate, add 2 °C for each A or T and 4 °C for each G or C (the Wallace rule), which is only reliable for short oligos. For a PCR primer use nearest-neighbour thermodynamics: sum the enthalpy and entropy of each adjacent base pair, correct for salt, and compute Tm = ΔH / (ΔS + R ln(C/4)). This calculator does both.
Why do different Tm calculators give different answers?
They differ in the method (Wallace, GC formula or nearest-neighbour), the parameter set, the salt correction and, above all, the assumed oligo concentration and ion concentrations. The same primer can differ by 5–10 °C between tools. Compare calculators only with the same buffer and concentration, and use the one your polymerase supplier recommends for their enzyme.
What annealing temperature should I use for PCR?
A common starting point is 5 °C below the lower primer Tm, then optimise with a temperature gradient: raise it if you see extra bands, lower it if the product is faint. Some polymerase makers publish their own rules and calculators for their buffers, and those take precedence over a generic rule.
What oligo concentration should I enter?
Enter the primer concentration in the reaction, in nM. Typical PCR uses 200–500 nM of each primer. The tool treats the value as the total strand concentration and uses C/4 in the nearest-neighbour formula, as Primer3 does; Primer3's own default is 50 nM, which gives a lower Tm than 250 or 500 nM.
Does magnesium change the melting temperature?
Yes, strongly. Divalent ions stabilise the duplex far more than monovalent ones, so adding Mg²⁺ raises Tm, while dNTPs lower the effective Mg²⁺ by binding it. The tool converts Mg²⁺, dNTPs, K⁺ and Tris to a sodium-equivalent concentration before correcting the entropy.
Can it handle mismatches, degenerate bases or modified oligos?
No. It accepts only A, C, G and T, and assumes a perfectly matched primer–template duplex with no dangling ends. Mismatches, LNA or other modifications, ambiguity codes and secondary structure all change the real Tm, so treat the result as an estimate for a clean primer.

Related Tools

More in Science & Lab Calculators

See all Science & Lab Calculators